Occurrent 0.14.1 is now available. It’s a small release that contains the following changes:
- Using
insertfromMongoTemplatewhen writing events in theSpringMongoEventStore. Previously, the vanillamongoClientwas (accidentally) used for this operation. -
When using the spring boot starter project for MongoDB (
org.occurrent:spring-boot-starter-mongodb), the transaction manager used by default is now configured to use “majority” read- and write concerns. To revert to the “default” settings used by Spring, or change it to your own needs, specify aMongoTransactionManagerbean. For example:@Bean public MongoTransactionManager mongoTransactionManager(MongoDatabaseFactory dbFactory) { return new MongoTransactionManager(dbFactory, TransactionOptions.builder(). .. .build()); } - Separating read- and query options configuration so that you can e.g. configure queries made by
EventStoreQueriesand reads from theEventStore.read(..)separately.
This useful if you want to e.g. allow queries fromEventStoreQueriesto be made to secondary nodes but still force reads fromEventStore.read(..)to be made from the primary. You can configure this by supplying areadOption(to configure the reads from theEventStore) andqueryOption(forEventStoreQueries) in theEventStoreConfig. This has been implemented forSpringMongoEventStoreandReactorMongoEventStore.