Repository logo
Collections
Browse
Statistics
  • English
  • हिंदी
Log In
New user? Click here to register.Have you forgotten your password?
  1. Home
  2. Theses and Dissertations
  3. M Tech Dissertations
  4. Evaluation of Eventual Consistency and Linearizability in MongoDB

Evaluation of Eventual Consistency and Linearizability in MongoDB

Files

  • 202111017.pdf
    1.11 MB

Date

2023

Authors

Vora, Harshal Rajeshbhai

Journal Title

Journal ISSN

Volume Title

Publisher

Dhirubhai Ambani Institute of Information and Communication Technology

Abstract

Sharding and replication are crucial techniques for scaling distributed systems,enabling data distribution across multiple nodes. However, as the number ofreplicas increases, maintaining consistency across them becomes increasingly challenging.Developers require understanding the consistency guarantees offered bydifferent distributed systems to make informed decisions about the trade-offs betweenconsistency and low latency. The study of consistency is essential to maintaindata integrity and optimize performance and scaling.In this work, we focus on evaluating the eventual consistency and linearizabilityprovided by MongoDB, a popular distributed database system. The experimentconsiders various combinations of read and write concern levels and howthey affect the consistency of the system. We also take into account different sizesof the document as a parameter in measuring the consistency. By analyzing thesefactors, we aim to quantify the impact of different parameters on the system�sconsistency.We evaluate the performance of MongoDB by measuring the read and writelatency of the operations by varying the read and write concern levels as well asby varying the document size. The evaluation of linearizability is based on measuringthe occurrence of stale reads, that happen when a read operation accessesoutdated or inconsistent data. By analyzing these variables, the aim is to providea more comprehensive understanding of MongoDB�s eventual consistency andlinearizability and how it behaves in different scenarios.Our findings reveal that using "linearizable" readConcern has a significantimpact on the read latency and hence should only be used in scenarios wherestrong consistency guarantee is absolutely essential. Furthermore, document sizehas a significant impact on write latency and consistency but not on the read latency.Using "majority" readConcern and writeConcern provides a good balancebetween consistency and latency in MongoDB.

Description

Keywords

Scaling distributed systems, MongoDB, Linearizability

Citation

Vora, Harshal Rajeshbhai (2023). Evaluation of Eventual Consistency and Linearizability in MongoDB. Dhirubhai Ambani Institute of Information and Communication Technology. vi, 37 p. (Acc. # T01105).

URI

http://ir.daiict.ac.in/handle/123456789/1164

Collections

M Tech Dissertations

Endorsement

Review

Supplemented By

Referenced By

Full item page
 
Dhirubhai Ambani University
Quick Links
  • Home
  • Search Repository
  • Research Overview
  • About Us
Contact Us
  • DAU, Gandhinagar, Gujarat, India
  • library@dau.ac.in
  • +91 0796-8261-578

© 2025 Dhirubhai Ambani University. All rights reserved.
Designed by Library Team