Skip to main content

The Raft Protocol explained via SQL database | CockroachDB | consensus protocol

In this Cockroach University lesson titled “The Raft Protocol explained via SQL Database", you will learn about the Raft protocol (the consensus algorithm) and how it’s used to perform durable writes. Then we’ll discuss the concepts leaders, followers, leases, and leaseholders. CockroachDB will be used as an example of a SQL database. 0:00 What is the Raft Protocol 1:13 What you need to know about the Raft Protocol In this lesson, you will learn to define the following terms: •Raft •Leader •Follower •Lease •Leaseholder You will also learn: •How to describe the series of events that occur in a Raft group before a write can be shown to readers. Learn more about CockroachDB by signing up for free training at Cockroach University: https://university.cockroachlabs.com/ --------------------------------------------------------------------------------------------------------------------------- Reference Links •Scaling Raft: https://www.cockroachlabs.com/blog/scaling-raft/ (Cockroach Labs Blog post by Ben Darnell) •Replication Layer: https://www.cockroachlabs.com/docs/stable/architecture/replication-layer.html (CockroachDB Docs) •The Secret Lives of Data: http://thesecretlivesofdata.com/raft/ (visualization of the Raft protocol by Ben Johnson) --------------------------------------------------------------------------------------------------------------------------- Careers: https://www.cockroachlabs.com/careers CockroachCloud: https://www.cockroachlabs.com/product/cockroachcloud/ Blog: https://www.cockroachlabs.com/blog/ Docs: https://www.cockroachlabs.com/docs/stable/ Community Slack: https://cockroa.ch/Welcome-to-Slack Twitter: https://twitter.com/CockroachDB