Re:A distributed, tag-based pub-sub service for modern web a...
by zwily on Monday November 16, 2015 @07:13PM
(#10578296)
How is this distributed?
[ Parent
| on HN ]
Re:A distributed, tag-based pub-sub service for modern web a...
by tylerflint on Monday November 16, 2015 @07:25PM
(#10578348)
When a node is brought online, it uses multicast discovery to learn about other nodes. You can see the gist here: https://github.com/nanopack/mist/blob/master/main.go#L68-L76
Propagating events is really simple: When a client subscribes to a particular node, the node will replicate the subscription to all nodes in the cluster, and relay any messages from the 'proxied' subscriptions back to the client.
Re:A distributed, tag-based pub-sub service for modern web a...
by tylerflint on Monday November 16, 2015 @07:27PM
(#10578359)
Also, if your network can't natively support multicast, you might want to check out red (https://github.com/nanopack/red) "A fast, in-kernel, ad-hoc point-to-point vxlan network."