Author
Abstract
MongoDB is a popular NoSQL database with high scalability, flexible schema management, and fast data performance. While this is similar to relational databases that require compliance with ACID principles, MongoDB takes an eventual consistency model instead, wherein even the partition tolerance is preferred over the consistency. This paper discusses MongoDB’s placement concerning the CAP theorem; that is, it is a CP (Consistency and Stability) database, and it guarantees data reliability while at the same time, performance bottlenecks could be an issue for MongoDB because it happens on a single node by default when performing reads and writes. Tuning MongoDB for better performance allows one to distribute read operations over secondary nodes and, in turn, reduce the workload on the primary node. This, however, brings eventual consistency as depending on where you request the data from, it might not be completely up to date. The paper presents MongoDB’s replication methods, read/write concerns, sharding strategies, indexing, caching, and concurrency control techniques. MongoDB is a genius in large-scale apps but lacks strict consistency in supporting financial transactions and managing healthcare data. The paper addresses that distributed database environments require adaptive consistency models and AI-driven optimization to bridge the performance and reliability gap.
Suggested Citation
Mukesh Reddy Dhanagari, 2024.
"MongoDB and Data Consistency: Bridging the Gap between Performance and Reliability,"
Journal of Computer Science and Technology Studies, Al-Kindi Center for Research and Development, vol. 6(2), pages 183-198, April.
Handle:
RePEc:alk:jcsts0:v:6:y:2024:i:2:id:8930
DOI: 10.32996/jcsts.2024.6.2.21
Download full text from publisher
Corrections
All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:alk:jcsts0:v:6:y:2024:i:2:id:8930. See general information about how to correct material in RePEc.
If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.
We have no bibliographic references for this item. You can help adding them by using this form .
If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.
For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Al-Kindi Center for Research and Development (email available below). General contact details of provider: https://al-kindipublisher.com/index.php/jcsts .
Please note that corrections may take a couple of weeks to filter through
the various RePEc services.