Hi @alokshukla121:matrix.org -
There's no configuration to turn on. But it looks like there may be a configuration setting to turn off.
Looking at: https://github.com/scullxbones/akka-persistence-mongo/blob/master/common/src/main/scala/akka/contrib/persistence/mongodb/MongoDataModel.scala I see your type
is considered to be Legacy
. Do you have legacy serialization enabled? That may play havoc with tagging.
RecoveryFailed
. Logging is done via slf4j, but it is fairly limited, preferring instead to communicate failures through akka's plugin interface, e.g. Try[Unit]
realtime-enable-persistence
- is enabled by default ... https://github.com/scullxbones/akka-persistence-mongo/blob/master/common/src/main/resources/reference.conf#L34
Hi @jsarrelli - the plugin respects the calls that are made from the library. If multiple messages are passed via asyncWriteMessages
then they are stored as a batch in a single document in mongodb. This is because the unit of atomicity for mongodb is the document
This should be triggered by this documented usage or if you prefer classic