Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在研究 NodeJs,我的问题是:
进程A在计算机A上运行,进程B在计算机B上运行,现在我想向他们俩广播一条消息,我该怎么做?
您应该查看消息队列。
Redis具有发布/订阅功能,是一个常见的后端组件。
您还可以根据您的要求考虑ZeroMQ 。
您可能正在寻找dnode,这是一个非常好的 node.js 进程之间的通信系统。