Mongo for write store

We are considering using Mongo for the event store. Given that Mongo does not have transactional support, we question if using it is a good idea, as we want to ensure an event is written to the store and also guaranteed to be written to the event bus (active MQ). Are there any comments and/or patterns for using Mongo in this manner, either using event sourcing or not?


Hi John,

there is a discussion related to this one here:!topic/axonframework/J3APCvLubgQ

To ensure either all events or none are stored in Mongo, Axon provides a DocumentPerCommitStrategy, where all events from a single Transaction are stored as a single document. However, there is no guarantees about those events being published as well. The thread mentioned above describes a solution.