go ahead... be a heretic | |
PerlMonks |
Re^2: Leader election in a distributed situation?by skx (Parson) |
on Mar 22, 2014 at 23:33 UTC ( [id://1079417]=note: print w/replies, xml ) | Need Help?? |
It isn't horrible, but it is an interface to the Apache library so there's a non-perl depdency there. In the ideal case I'd be looking for Net::Master class, or similar, with helper classes for different transports. I've been sketching out a prototype using Net::Master::UDP just adding send/recv methods and keeping the logic in the main module, which seems like a good direction. The biggest downside is that this is all async stuff, and I've little experience with perl and threading.. Update: I've got some simple code working for the case of UDP-broadcast only, using threads and threads::shared. I suspect this might be fragile, but I will see.
In Section
Seekers of Perl Wisdom
|
|