Build You A Raft - Part I
redixhumayun.github.io·96w
Preview
Report Post

What Is Raft?

Before starting, if you just want to look at the full code, go here

Raft is a famous distributed consensus algorithm which is implemented in various database engines now. The most famous is probably Yugabyte DB, a distributed SQL database.

First, we need to discuss what a distributed SQL database is and why we need distributed consensus on it. There are two classic concepts that come to mind when thinking of a distributed database - replication and sharding. Typically when you think of distributed consensus, its for a replicated database. That is, each copy of the database is identical.

Now, imagine that we have a distributed replicated SQL database with 3 nodes. Now there’s two ways to accep…

Similar Posts

Loading similar posts...