Hi
For MongoDB’s consistency model, please see Read Isolation, Consistency, and Recency and the MongoDB FAQ.
I want to ensure everytime transaction is done, means the record has been persisted into a permanent storage
I think you’re describing write concern, which is the level of acknowledgement requested from MongoDB for write operations to a standalone mongod or to replica sets or to sharded clusters. For a replica set and the use case you described, you want the write concern setting of “majority”. Please note that for production deployments, it is strongly recommended to use a replica set of at least 3 data-bearing nodes. The production notes also contains recommended production settings for MongoDB.
Best regards
Kevin
--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
For other MongoDB technical support options, see: https://docs.mongodb.com/manual/support/
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user+unsubscribe@googlegroups.com.
To post to this group, send email to mongod...@googlegroups.com.
Visit this group at https://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/0f52280e-0459-4149-b63c-7bace2e2a848%40googlegroups.com.