通过单个连接将数千个客户端连接到 Jabber 服务器

发布于 2024-07-27 17:39:53 字数 275 浏览 3 评论 0原文

我们正在使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

蓝海 2024-08-03 17:39:53

为什么不让本地 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.

蝶舞 2024-08-03 17:39:53

已经有一个开源的 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文