Currently, I'm implementing Event Driven Architecture and have a service for command (write part) and another service for query (read part).
What I'm doing right now.
This sounds good if you listen to your own events. Let's say I listen to external event from CommandService
In this approach, I can see that there is double latency to update my read models. First latency -> CommandService time pull the event 2nd latency -> ReadService time to pull the event generated from CommandService.
I'm thinking If I update my ReadService to listen to CommandService eventstore directly without the need of event bus, then I can reduce one of this latency.
What do you think?
We did something similar some time ago. Basically, we've had
I hope it will help you!