Home / Companies / DataStax / Blog / Post Details
Content Deep Dive

Consensus on Cassandra

Blog post from DataStax

Post Details
Company
Date Published
Author
Jake Luciani
Word Count
572
Company Posts That Month
5
Language
English
Hacker News Points
-
Post removed?
No
Summary

Consensus in distributed systems is crucial for maintaining agreement among peers on the value of shared data. The Paxos protocol is used by Cassandra since version 2.0 to support consensus. Lease tables can be created in Cassandra to track owners of things, providing a leader election algorithm and a mental model that developers can easily understand. A lease has a name, optional value, owner, and a default TTL for fail-safe purposes. Clients acquire leases by issuing statements and periodically renew them using CQL. When the client no longer needs the lease, it can be explicitly dropped with another CQL statement. This approach allows for leader election of things, distributed locks, and distributed sequences to be built on top of Cassandra.

Trends Found in this Post

No tracked trend matches for this post yet.

Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.