Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
238 views
in Technique[技术] by (71.8m points)

NoSQL database that is with ACID properties and support transaction management

I am new to NoSQL and want to find a NoSQL database that is with ACID properties and support transaction management for a payment service. Is there any NoSQL database which supports these requirements?

question from:https://stackoverflow.com/questions/65839798/nosql-database-that-is-with-acid-properties-and-support-transaction-management

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

From a recent MongoDB blog post, we can see that MongoDB as of major release 4.0 supports ACID:

MongoDB 4.0 will add support for multi-document transactions, making it the only database to combine the speed, flexibility, and power of the document model with ACID data integrity guarantees. Through snapshot isolation, transactions provide a globally consistent view of data, and enforce all-or-nothing execution to maintain data integrity.

If you happen to be using Spring, all you would have to do to make a method ACID compliant would be to annotate it with @Transactional. The framework and Mongo would automatically handle the rest.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...