Multiple eventstores

Hi, We have been using axon for our cqrs based microservice applications since more than a year now. We have a situation where in we need the aggregates to load up events/snapshots from different event stores/ snapshot collections residing in different db’s. Is there a way we could override the existing behavior to have control over how and where the events and snapshots load up from? What would be the best possible solution for this scenario?



I’ve seen people build a simple implementation of an EventStore interface that delegates certain calls to one implementation, and other calls to another. For example to load snapshots from one store and events from another one.
There also is an implementation of the EventStorageEngine, which allows you to combine two other engines, when using the EmbeddedEventStore. Check out the SequenceEventStorageEngine class. It may actually do what you want.

Kind regards,