LAN wide eventemitter, using multicast.
Want to see pretty graphs? Log in now!
npm install multicast-eventemitter
|18||downloads in the last week|
|19||downloads in the last month|
|Last Published By|
|Version||0.10.4 last updated 3 months ago|
Status: FIXED, now works with NodeJS v0.8.x and v0.10.x.
This package provides a cluster-wide event emitter. Events sent from any process on any machine on a LAN can be subscribed to by any other process on any other machine.
Multicast is more efficient than broadcast. If messages were broadcast, then each subscriber would need to discard the the events it wasnt't interested in. With multicast, this is done by the NIC.
It works efficiently by hashing event names into 24 bits of address space and 15 bits of port number - thus a 1 in half-a-trillion chance of event name collision.
This currently uses plain multicast. This has the following drawbacks:
Messages are limited to about 1.5KB in length - exceeding this may produce a parsing error on receivers.
It is potentially unreliable (though we receive 100% of sent messages on our LAN - YMMV)