Cassandra-Like Distributed Database
dev.to·18h·
Discuss: DEV
💿IndexedDB
Preview
Report Post

This semester, I worked on building a Cassandra-like Distributed Database in Python. In this article, I aim to delve into the distributed nature of Cassandra, its implementation, and its associated limitations.

Cassandra is a distributed key-value store, which addresses fault tolerance, consistency, replication, and membership management in a decentralised architecture.

Consistent Hashing and Distributed Partitioning

The distributed system that I’ve built uses consistent hashing for key distribution, which means that each node maps to a position on a ring via SHA-1. The ring in this case consists of multiple nodes connected to each other (refer to the figure above), where each node is an instance of Cassandra.

I use the SHA-1 hashing of node IDs. This consistent hashing min…

Similar Posts

Loading similar posts...