[英]IPC between multiple processes on multiple servers
Let's say you have 2 servers each with 8 CPU cores each. 假设您有2台服务器,每台服务器都有8个CPU内核。
The servers each run 8 network services that each host an arbitrary number of long-lived TCP/IP client connections. 每个服务器运行8个网络服务,每个网络服务承载任意数量的长期TCP / IP客户端连接。
Clients send messages to the services. 客户端将消息发送到服务。
The services do something based on the messages, and potentially notify N>1 of the clients of state changes. 服务根据消息执行某些操作 ,并有可能将状态更改通知N> 1个客户端。
Sure, it sounds like a botnet but it isn't. 当然,这听起来像是一个僵尸网络,但事实并非如此。 Consider how IRC works with c2s and s2s connections and s2s message relaying.
考虑一下IRC如何与c2s和s2s连接以及s2s消息中继一起工作。
How would you coordinate which services on which host should receive and relay messages to connected clients for state change messages? 您将如何协调哪个主机上的哪些服务应接收消息并将消息中继到连接的客户端以获取状态更改消息?
There's an infinite number of ways to solve this problem efficiently. 有无数种有效解决此问题的方法。
I'm looking for a solution that: 我正在寻找以下解决方案:
What are your experiences? 你有什么经验?
What do you recommend? 您有什么推荐的吗?
Thanks! 谢谢!
客户端上的原始以太网广播和过滤怎么样?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.