在 Google App Engine 上使用 XMPP 进行实时多人游戏?

发布于 2024-09-10 04:24:23 字数 254 浏览 4 评论 0原文

从理论上来说,这样的事情可能吗?

我知道 Google App Engine 无法建立套接字连接,因此我认为使用 XMPP 向客户端发送消息是可行的。 Google App 引擎上的 XMPP 低延迟足以支持实时游戏吗?

我正在研究像 Smartfox 之类的多人游戏服务器,但我认为软件的成本加上在我自己的服务器上运行它会太麻烦,所以我认为在 Google 的硬件上运行它会是一个好主意。

如果您对实时多人游戏服务器有任何其他建议,我很想听听。

Theoretically speaking, is such a thing possible?

I know that Google App Engine can't make socket connections, so I figured using XMPP to send messages to the clients would work. Is XMPP on Google App engine low-latency enough to work for a realtime game?

I was looking into multiplayer game servers like Smartfox and the like, but I figured that the cost of the software combined with running it on my own server would be too much of a hassle, so I figured that running it on Google's hardware would be a good idea.

If you have any other suggestions on realtime multiplayer game servers, I'd love to hear them.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

无畏 2024-09-17 04:24:23

正如 npdoty 指出的那样,我们刚刚发布了 Channel API,它正是针对此用例。它尚未发布,但最新的 SDK 中提供了初步版本供您试用。目前还没有文档,但您可以浏览Trivia Quiz示例应用来了解如何操作有用。

As npdoty points out, we've just announced the Channel API, which is intended for exactly this use-case. It's not released yet, but a preliminary version is available in the latest SDK for you to experiment with. There's no documentation yet, but you can explore the Trivia Quiz sample app to see how it works.

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