多人游戏服务器

发布于 2024-10-16 00:56:24 字数 179 浏览 3 评论 0原文

我想编写一个服务器端应用程序来管理多人游戏通信(可能适用于多个简单游戏,大部分是回合制游戏)。它应该是健壮的并且高度可扩展的。

我想更多地了解我所拥有的技术可能性。有人有使用 Erlang 的经验吗?创建服务器是否比使用其他语言花费更多的开发时间?它比其他的更快,或者具有更好的可扩展性吗?

您认为哪种语言最好?

I want to write a server-side app to manage multiplayer game communications (probably for multiple simple games, mostly turn-based). It should be robust and highly scalable.

I want to know a bit more about the technology posibilities I have. Does anyone have any experience with Erlang? Does it cost more development time to create a server than with other languages? is it much faster, or has better scalability than others?

What language would you say would be best?

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

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

发布评论

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

评论(1

疾风者 2024-10-23 00:56:24

如果不确切知道您要解决什么问题,就没有一个好的方法来回答您的问题。然而,Erlang 通常具有良好的扩展性,假设您的代码和架构都很好。如果您正在考虑将后端实现为 RESTful 服务,我会质疑任何使用 Erlang 的决定——也许它仍然很合适,但我会问您为什么。然而,如果您决定将游戏后端基于 XMPP,我建议 erlang 和 ejabberd 是绝佳的选择。这完全取决于您如何编写软件。

另外,与其他语言相比,它的开发时间是否会花费更多?很有可能。作为一名Python专家和Erlang学习者,我可以在10分钟内编写Python代码,而在Erlang中我需要2个小时才能完成。但我敢打赌 Joe Armstrong(Erlang 发明者)可以非常快地编写 Erlang 代码。

总之,你的问题无法准确回答。我试图提供一些信息来帮助您理解原因。

Without knowing exactly what problem you are trying to solve, there isn't a good way to answer your question. However, Erlang does generally scale well, assuming you both code it well and architect it well. If you are considering implementing your backend as a RESTful service, I'd question any decision to use Erlang -- maybe it's still a good fit, but I'd ask you why. However, if you decided to base the backend of your game on XMPP, I'd suggest that erlang and ejabberd is a superb fit. It all depends on how you are writing the software.

Also, does it cost more in development time compared to other languages? Quite possibly. As a python expert and an Erlang learner, I can write python code in 10 minutes which will take me 2 hours to do in Erlang. But I'd bet that Joe Armstrong (Erlang inventor) could write Erlang code pretty darn quickly.

In short, your question cannot be answered accurately. I've attempted to provide some information which may help you understand why.

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