通过单个连接将数千个客户端连接到 Jabber 服务器
我们正在使用 Openfire (Jabber) 为我们的 MMORPG 启用聊天和在线功能。 在我们的服务器架构中,客户端仅打开与游戏服务器的单个连接,登录后,游戏服务器会为此新客户端创建与 Jabber 的新连接。
问题是,我们不想为每个登录的客户端打开与 Jabber 的新连接,如果我们的游戏服务器充当连接管理器并通过单个连接与 Jabber 服务器通信,我们会更好,但又能够管理数十万个“逻辑”客户。
这可能吗?
任何有关此事的链接或信息将不胜感激。 谢谢。
We are using Openfire (Jabber) to enable chat and presence capabilities to our MMORPG. In our server architecture clients only open a single connection with the game server, and upon login, the game server creates a new connection to Jabber for this new client.
The problem is, we don't want to open a new connection to Jabber for every client that logs in, we like it better if our game server acted as a connection manager and talked to the Jabber server through a single connection, yet being able to manage hundreds of thousands of 'logical' clients.
Is this possible?
Any links or info on this matter would be very much appreciated. Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
为什么不让本地 Jabber 服务器与您的游戏服务器分开,但位于同一网络上并让它处理所有混乱的细节?
如果您有大型游戏,您很可能还需要大型网络。
Why not have a local Jabber server separate from your game server, but on the same network and let it handle all the messy details?
If you have a massive game, you will most likely also need massive network.
已经有一个开源的 Openfire 连接管理器(尽管它确实还需要一个不是 OSS 的外部库)。 它连接到客户端,并从那里作为 jabber 组件 与主服务器进行通信。 听起来您希望能够用自己的系统做类似的事情。
There is already a connection manager for Openfire, open-sourced (though it does need an external library as well that is not OSS). It connects to the clients and from there talks to the main server as a jabber component. It sounds like you want to be able to do a similar thing with your own system.