MongoDB and Data Consistency: Bridging the Gap between Performance and Reliability
Open Access
- 6 April 2024
- journal article
- Published by Al-Kindi Center for Research and Development in Journal of Computer Science and Technology Studies
- Vol. 6 (2) , 183-198
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.Keywords
This publication has 6 references indexed in Scilit:
- Privacy-Breaching Patterns in NoSQL DatabasesIEEE Access, 2021
- An Empirical Study on System Level Aspects of Internet of Things (IoT)IEEE Access, 2020
- On the Fintech Revolution: Interpreting the Forces of Innovation, Disruption, and Transformation in Financial ServicesJournal of Management Information Systems, 2018
- Modeling temporal aspects of sensor data for MongoDB NoSQL databaseJournal of Big Data, 2017
- A Cloud Computing-Enabled Spatio-Temporal Cyber-Physical Information Infrastructure for Efficient Soil Moisture MonitoringISPRS International Journal of Geo-Information, 2016
- Networks on chips: a new SoC paradigmComputer, 2002