I needed help from the forum on filling some gaps in my understanding of Axon as i’m relatively new with this. My working setup is as follows
- 2 separate Spring Boot microservices running in Cloudfoundry for Command & Query
- Using Kafka as event bus.
- Currently using Mongo as event store but plan to swtich over to JPA.
Here are the questions that i need help with
Does the Query microservice need to have a connection to the Event Store (one used by command) so that the Tracking Processor knows how/which events to replay? In my current setup the only way i was able to get event sourcing/replay working is by adding a tracking event processor on the Command Side and having it republish the event but this result in duplicate events being added to the event store each time I replay.
i.e 1 event store on command which the query connects to and 1 token store on the query side.
What is the mechanism in Axon to rehydrate the state of my aggregates when my command side restarts using the Event Store?