goldfire / democracy.js Goto Github PK
View Code? Open in Web Editor NEWNode.js unicast discovery, leader-citizen elections and pub/sub.
License: MIT License
Node.js unicast discovery, leader-citizen elections and pub/sub.
License: MIT License
Is possible add new peers to the cluster only defining common port number and maybe using udp broadcast?.
Running different nodejs instances inside of docker containers but in the same virtual network.
Hi,
is there a way to get the peer's IP from dem.nodes() ?
thanks.
Hi @goldfire,
I have been trying to write a Jest test around my democracy module and am having issues due to democracy leaving open handles.
I tried dem.socket.close()
however due to heart beats etc it causes errors.
I've looked through the code and can't see any close, stop, or disconnect methods.
Do you have any suggestions?
This is a great package by the way. I wrote my own master/slave dgram modules before discovering democracy. Mine worked well however the master was static. This package with its election process is a far better solution.
Thanks for making this public.
Hi, I'm trying to port the code on C++ in a (just started) effort to port (at least partially) the awesome room-assistant to a ESP32, which is using democracy.js as a core component.
I've just started reverse engineering the code, but a protocol documentation or a flow diagram could be very useful,
Is there any of that available?
Thanks in advance
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.