[jgroups-dev] RAFT consensus protocol

ugol <[email protected]> Sun, 26 Oct 2014 19:24:38 +0100
Newsgroups gmane.comp.java.javagroups.devel
Message-ID <CAAis47U87AdLQX29=-i7x601auXX-w=ei9fpjmMYpND5cUEkTw@mail.gmail.com>
--===============6947599477460428665==
Content-Type: multipart/alternative; boundary=f46d04426e10dc6b68050657868d

--f46d04426e10dc6b68050657868d
Content-Type: text/plain; charset=UTF-8

Hi all,
I am a JGroups dev newbie, and decided to try to implement RAFT [1]
consensus protocol on top of JGroups. RAFT is at the core of etcd and is
gaining momentum, I think a JGroups implementation could be useful either
for JGroups and for people needing a pure Java implementation.

I was skimming the documentation and JGroups code and have some questions,
hope to start with the right foot:

- first, is there an "hello world" Jgroups protocol to start with? Is it
the EXAMPLE protocol?
- it's not clear to me if I have to code "inside" JGroups (i.e. create
things like RAFT_LEADER_ELECTION, RAFT_SUSPECT and similar protocols) or I
can code everything "outside", i.e. using the MessageDispatcher class
- supposing the former, if I want to base everything on TCP do I need to
start extending BasicTCP?

I have many more questions but that should be enough to start :)

[1] I am sure everyone already knows it, but here is the link if needed
http://raftconsensus.github.io

-- 
uL

--f46d04426e10dc6b68050657868d
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hi all,<div>I am a JGroups dev newbie, and decided to try =
to implement RAFT [1] consensus protocol on top of JGroups. RAFT is at the =
core of etcd and is gaining momentum, I think a JGroups implementation coul=
d be useful either for JGroups and for people needing a pure Java implement=
ation.</div><div><br></div><div>I was skimming the documentation and JGroup=
s code and have some questions, hope to start with the right foot:</div><di=
v><br></div><div>- first, is there an &quot;hello world&quot; Jgroups proto=
col to start with? Is it the EXAMPLE protocol?</div><div><div>- it&#39;s no=
t clear to me if I have to code &quot;inside&quot; JGroups (i.e. create thi=
ngs like RAFT_LEADER_ELECTION, RAFT_SUSPECT and similar protocols) or I can=
 code everything &quot;outside&quot;, i.e. using the MessageDispatcher clas=
s=C2=A0</div><div>- supposing the former, if I want to base everything on T=
CP do I need to start extending BasicTCP?</div><div><br></div><div>I have m=
any more questions but that should be enough to start :)</div><div><br></di=
v><div>[1] I am sure everyone already knows it, but here is the link if nee=
ded <a href=3D"http://raftconsensus.github.io">http://raftconsensus.github.=
io</a></div><div><br></div>-- <br>uL<br><br>
</div></div>

--f46d04426e10dc6b68050657868d--


--===============6947599477460428665==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------

--===============6947599477460428665==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Javagroups-development mailing list


--===============6947599477460428665==--