Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Leader election in a distributed situation?

by tsee (Curate)
on Mar 25, 2014 at 20:33 UTC ( #1079733=note: print w/replies, xml ) Need Help??


in reply to Leader election in a distributed situation?

For what it's worth, I would welcome a good Raft implementation for Perl. I kind of wonder whether it makes sense to write it in Perl because you kind of want to be able to accept messages out-of-band with your normal application.

Maybe it's better to wrap a multi-threaded C library or to use the Go implementation (search for Go and Raft on github) and write a client for that. The latter ought to be pretty simple.

  • Comment on Re: Leader election in a distributed situation?

Replies are listed 'Best First'.
Re^2: Leader election in a distributed situation?
by skx (Parson) on Mar 27, 2014 at 17:14 UTC

    In the end I realized I'd almost certainly need to wrap something external, just due to pain with Perl threading, and handling out of bound accesses.

    I started a pure perl implementation of this, but realized that I couldn't share a "Net::Peer::State" singleton-object around threads because it was too complex for threads::shared, at that point I've stalled for the moment, and have looked at alternative implementations.

    Steve
    --

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1079733]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (1)
As of 2021-10-18 07:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (73 votes). Check out past polls.

    Notices?