howlake
howlake

Reputation: 11

nodejs: how to communicate between two processes on two servers

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

Answers (2)

mihai
mihai

Reputation: 38543

You're probably looking for dnode, a good very good system of communication between node.js processes.

Upvotes: 0

Daniel
Daniel

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

Related Questions