Mongo DB - difference between standalone & 1-node replica set
问题 I needed to use Mongo DB transactions, and recently I understood that transactions don't work for Mongo standalone mode, but only for replica sets (Mongo DB with C# - document added regardless of transaction). Also, I read that standalone mode is not recommended for production. So I found out that simply defining a replica set name in the mongod.cfg is enough to run Mongo DB as a replica set instead of standalone. After changing that, Mongo transactions started working. However, it feels a