Is RAFT synchronous or asynchronous?

564 views
Skip to first unread message

Abhijeet Kumar

unread,
Sep 4, 2018, 7:23:03 AM9/4/18
to raft-dev
Hello All,
Sorry for asking a noob question. Plez don't mind. I started to learn about Raft consensus method yesterday only

Is Raft consensus method synchronous or asynchronous?

Please help me to understand the topic better. Thanks in adv

Henrik Ingo

unread,
Sep 6, 2018, 2:27:33 AM9/6/18
to raft...@googlegroups.com
Hi Kumar

For some reason academic literature doesn't use the synchronous/asynchronous vocabulary. But I would definitively classify Raft as synchronous. It replicates events first, and only after successful replication are they considered committed and success is returned to client.

It's further worth pointing out that Raft is a majority based protocol. Sometimes with synchronous protocols - such as 2 phase commit - the replication needs to happen to all cluster nodes in order to be successful. In Raft it is sufficient that a majority of nodes have replicated the event.

henrik

--
You received this message because you are subscribed to the Google Groups "raft-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to raft-dev+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
henri...@avoinelama.fi
+358-40-5697354        skype: henrik.ingo            irc: hingo
www.openlife.cc

My LinkedIn profile: http://fi.linkedin.com/pub/henrik-ingo/3/232/8a7
Reply all
Reply to author
Forward
0 new messages