Sharding and Master-Slave Replication of NoSQL Databases: Comparison of MongoDB and Redis

Anikó Vágner, Mustafa Al-Zaidi

2023

Abstract

One of the reasons that NoSQL databases were born is that they can be used in clusters, namely, computers work together, share data and from the client side, the clustered computers look as if there is only one computer. In this paper, the distribution models of two NoSQL databases are introduced. We chose the databases from the database ranking website (noa, 2023a), exactly the two first NoSQL databases: MongoDB and Redis. However they belong to two different NoSQL database categories, they use similar key-value pairs which is the main basis of the clustering. Additionally, the distribution models do not depend on the categories of the databases, both database management systems know sharding and master-slave replication, and can use these two distribution models together. These two database management systems do not know peer-to-peer replication. Our goal was to get to know whether there are similarities between the structures of clustered computers of each database management system. If we consider the theory, the answer should be yes, they are similar to each other: for the sharding 2 computers are enough, similarly for the replication 2 computers are also enough, and if both of the techniques are used, 4 computers should be enough.

Download


Paper Citation


in Harvard Style

Vágner A. and Al-Zaidi M. (2023). Sharding and Master-Slave Replication of NoSQL Databases: Comparison of MongoDB and Redis. In Proceedings of the 12th International Conference on Data Science, Technology and Applications - Volume 1: DATA; ISBN 978-989-758-664-4, SciTePress, pages 576-582. DOI: 10.5220/0012142700003541


in Bibtex Style

@conference{data23,
author={Anikó Vágner and Mustafa Al-Zaidi},
title={Sharding and Master-Slave Replication of NoSQL Databases: Comparison of MongoDB and Redis},
booktitle={Proceedings of the 12th International Conference on Data Science, Technology and Applications - Volume 1: DATA},
year={2023},
pages={576-582},
publisher={SciTePress},
organization={INSTICC},
doi={10.5220/0012142700003541},
isbn={978-989-758-664-4},
}


in EndNote Style

TY - CONF

JO - Proceedings of the 12th International Conference on Data Science, Technology and Applications - Volume 1: DATA
TI - Sharding and Master-Slave Replication of NoSQL Databases: Comparison of MongoDB and Redis
SN - 978-989-758-664-4
AU - Vágner A.
AU - Al-Zaidi M.
PY - 2023
SP - 576
EP - 582
DO - 10.5220/0012142700003541
PB - SciTePress