ACID transactions without replication

63 views
Skip to first unread message

jmma...@gmail.com

unread,
Oct 24, 2018, 6:07:11 PM10/24/18
to mongodb-user
Hello,

According to the documentation, ACID transactions are only possible when replication is activated.

Is there a way to manage ACID transactions on a single node without replication or does MongoDB intend to implement such a functionality in a near future?

Thanks in advance...

Kevin Adistambha

unread,
Oct 30, 2018, 6:46:57 PM10/30/18
to mongodb-user

Hi,

According to the documentation, ACID transactions are only possible when replication is activated.

Correct. This is because the multi-document transaction feature depends on the oplog, which is only available in a replica set (see Transactions and Replica Sets).

Is there a way to manage ACID transactions on a single node without replication or does MongoDB intend to implement such a functionality in a near future?

This is not possible per the link above. Having said that, for development purposes you can create a single-node replica set (e.g. start a mongod process with a --replSet argument, do an rs.initiate() in it, but add no further nodes). Please note that a single-node replica set or a standalone deployment is strongly not recommended for a production setup.

There is no plan to implement multi-document transaction without the oplog.

Best regards,
Kevin

jmma...@gmail.com

unread,
Nov 8, 2018, 5:11:30 AM11/8/18
to mongodb-user
Hello,

Thank you very much for this information.

Kind regards,

Jean-Marc
Reply all
Reply to author
Forward
0 new messages