Reputation: 11
i am working on NodeJs, my question is:
process A runs on computer A, and process B runs on computer B, now i want to broadcast a message to both of them, how can i make it?
Upvotes: 1
Views: 2158
Reputation: 38543
You're probably looking for dnode, a good very good system of communication between node.js processes.
Upvotes: 0
Reputation: 38781
You should look into a message queue.
Redis has pub/sub capability and is a common backend component.
You could also consider ZeroMQ depending on what your requirements are.
Upvotes: 2