What are Consensus Algorithms? Definition & FAQs | ScyllaDB (2024)

Consensus Algorithms Definition

Consensus is a fundamental problem in distributed systems, in which multiple interacting components must agree on system state. Consensus algorithms are designed to enable a collection of distributed machines to work together as a coherent group, even in the presence of failures and outages. As such, consensus algorithms are fundamental building blocks of large-scale, fault-tolerant systems.

In practice, consensus provides a way for multiple servers to reach agreement on system state. Once they reach consensus, the result is final and indisputable. To define agreement, algorithms set a threshold, the quorum of members that must reach agreement to constitute consensus. This threshold number of members, whether they are thought of as machines, servers, or nodes, is required to achieve consensus before system state advances. For example, a consensus algorithm might cluster of 6 nodes can continue to operate even if 2 servers are faulty.

What are Consensus Algorithms? Definition & FAQs | ScyllaDB (1)

Consensus Algorithms FAQs

What Are Consensus Algorithms?

Consensus typically arises in the context of replicated state machines, a general approach to building fault-tolerant systems.

The best known consensus algorithms are Paxos and Raft. Raft defines not only how the group makes a decision, but also the protocol for adding new members and removing members from the group, making it a natural mechanism for managing topology changes in distributed systems.

Unlike the related consensus algorithm, Paxos, Raft is a leader-based log replication protocol. According to its inventors, Raft is more comprehensible than Paxos, in that it “reduces the degree of nondeterminism and the ways servers can be inconsistent with each other.”

With the invention of Bitcoin in 2009, a new generation of ‘decentralized’ consensus algorithms has emerged. Such algorithms enable distributed systems to achieve consensus even in adversarial, untrusted environments. As such, these algorithms provide ‘byzantine fault-tolerance’ (BFT). The Bitcoin protocol, for example, leverages BFT to solve the ‘double-spend’ problem, ensuring that Bitcoins are cryptographically secured against digital counterfeiting. The consensus mechanism used by Bitcoin is known as Proof-of-Work (PoW). Other notable BFT consensus algorithms include Proof-of-Stake, Proof-of-Stake (PoS), and Proof-of-Authority (PoA).

What Consensus Algorithms are supported by ScyllaDB?

ScyllaDB launched an initiative to improve ScyllaDB by adding greater capabilities for consistency, performance, scalability, stability, manageability and ease of use. As of December 2020, the core Raft protocol is implemented in ScyllaDB.

ScyllaDB supports Lightweight Transactions (LWT) using Paxos, but these transactions require three roundtrips. Raft is enabling ScyllaDB to execute consistent transactions without a performance penalty. Unlike Paxos, which is only used for LWT, most aspects of ScyllaDB will move to Raft, significantly improving manageability and consistency.

Beyond crucial operational advantages, application developers will be able to leverage Raft to enable strong transaction consistency at the price of a regular operation.

ScyllaDB’s Raft implementation covers the following system components:

  • Transactional Schema Changes — Our first user-visible value eliminates schema conflicts and allows full automation of DDL changes under any condition.
  • Transactional Topology Changes — Our next user-visible change will permit adding or removing any number of nodes simultaneously. Currently, ScyllaDB and Cassandra can only scale one node at a time. This means it can take long hours to double or triple the whole cluster’s capacity. Obviously, this is not the elasticity you’d expect if you have bursty intraday traffic.
  • Tablets — Once range ownership becomes transactional, it will allow many levels of freedom. We plan to improve more aspects of range movements, towards tablets and dynamic range splitting for load balancing.
  • Dynamic Tablets — Static Tablets enable ScyllaDB to scale multiple nodes at the same time. Reusing the tablet concept enables ranges to be split dynamically in order to load balance shards and to support unbalanced data models.

ScyllaDB’s short term and long-term Raft support roadmap was covered in detail at ScyllaDB Summit 2022.

Trending NoSQL Resources

What are Consensus Algorithms? Definition & FAQs | ScyllaDB (2)

ScyllaDB University

Get started on your path to becoming a ScyllaDB expert.

What are Consensus Algorithms? Definition & FAQs | ScyllaDB (2024)
Top Articles
What is ISO?
Brushing Up For Shedding Season
English Bulldog Puppies For Sale Under 1000 In Florida
Katie Pavlich Bikini Photos
Gamevault Agent
Pieology Nutrition Calculator Mobile
Hocus Pocus Showtimes Near Harkins Theatres Yuma Palms 14
Hendersonville (Tennessee) – Travel guide at Wikivoyage
Compare the Samsung Galaxy S24 - 256GB - Cobalt Violet vs Apple iPhone 16 Pro - 128GB - Desert Titanium | AT&T
Vardis Olive Garden (Georgioupolis, Kreta) ✈️ inkl. Flug buchen
Craigslist Dog Kennels For Sale
Things To Do In Atlanta Tomorrow Night
Non Sequitur
Crossword Nexus Solver
How To Cut Eelgrass Grounded
Pac Man Deviantart
Alexander Funeral Home Gallatin Obituaries
Energy Healing Conference Utah
Geometry Review Quiz 5 Answer Key
Hobby Stores Near Me Now
Icivics The Electoral Process Answer Key
Allybearloves
Bible Gateway passage: Revelation 3 - New Living Translation
Yisd Home Access Center
Home
Shadbase Get Out Of Jail
Gina Wilson Angle Addition Postulate
Celina Powell Lil Meech Video: A Controversial Encounter Shakes Social Media - Video Reddit Trend
Walmart Pharmacy Near Me Open
Marquette Gas Prices
A Christmas Horse - Alison Senxation
Ou Football Brainiacs
Access a Shared Resource | Computing for Arts + Sciences
Vera Bradley Factory Outlet Sunbury Products
Pixel Combat Unblocked
Movies - EPIC Theatres
Cvs Sport Physicals
Mercedes W204 Belt Diagram
Mia Malkova Bio, Net Worth, Age & More - Magzica
'Conan Exiles' 3.0 Guide: How To Unlock Spells And Sorcery
Teenbeautyfitness
Where Can I Cash A Huntington National Bank Check
Topos De Bolos Engraçados
Sand Castle Parents Guide
Gregory (Five Nights at Freddy's)
Grand Valley State University Library Hours
Holzer Athena Portal
Hello – Cornerstone Chapel
Stoughton Commuter Rail Schedule
Nfsd Web Portal
Selly Medaline
Latest Posts
Article information

Author: Ouida Strosin DO

Last Updated:

Views: 6033

Rating: 4.6 / 5 (56 voted)

Reviews: 87% of readers found this page helpful

Author information

Name: Ouida Strosin DO

Birthday: 1995-04-27

Address: Suite 927 930 Kilback Radial, Candidaville, TN 87795

Phone: +8561498978366

Job: Legacy Manufacturing Specialist

Hobby: Singing, Mountain biking, Water sports, Water sports, Taxidermy, Polo, Pet

Introduction: My name is Ouida Strosin DO, I am a precious, combative, spotless, modern, spotless, beautiful, precious person who loves writing and wants to share my knowledge and understanding with you.