For smaller applications, I’d really like to have my read model in memory. And have the state loaded by replaying the events.
And for even simpler cases I’d like to just query the aggregate.
I’ll probably iterate away from those patterns as my application evolve, but they would be nice to use for proof of concepts and stuff like that.
I have only found examples on how to do JPA read models.
Can you point me to an example of how to build a read model, that is pure memory and replays when the ES aggregate a loaded?
Or how to query the actual aggregate?