In which cases is it better to create a read model (spring component with spring data repository, that has event handlers that CRUD into a db) or an event sourced entity?
My understanding is that only the event sourced entity is strongly consistent but the read model is eventually consistent. Does that mean I can only use the entity in command/event handlers? And read models are only for serving API requests?
What if inside of a command/event handler I need access to many entities? For example, I see that the axon’s Repository only has methods that return a single entity but in my case I need to find all of such entities of a user and perform an action for each. I’ll be using a read model here for now