多人游戏服务器
我想编写一个服务器端应用程序来管理多人游戏通信(可能适用于多个简单游戏,大部分是回合制游戏)。它应该是健壮的并且高度可扩展的。
我想更多地了解我所拥有的技术可能性。有人有使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果不确切知道您要解决什么问题,就没有一个好的方法来回答您的问题。然而,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.