可扩展的网络
我正在设计一个游戏服务器,但我一直在思考如何以可扩展的方式设计网络。
首先,服务器应该如何连接(如何?),或者应该轮询后端的数据库获取消息?
任何书籍或网站将不胜感激!
I'm designing a game server and I'm stuck on how to design the network in such a way that scales..
First of all, should the servers be connected some how (how?) or should they poll a database in the backend to get messages?
Any books or websites would be greatly appreciated!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
查看 Red Dwarf Server 项目。它是用 Java 编写的,并且具有很强的可扩展性。
Sun 的团队正在致力于多节点支持(例如,在服务器节点之间动态移动客户端等),但后来 Oracle 来了并放弃了该项目。现在它是开源的。
查看他们的设计文档和代码。你会学到很多东西!
Check out the Red Dwarf Server project. It's written in Java and is very scalable.
The team at Sun was working on multi-node support (e.g. to dynamically move clients between server nodes, etc.) but then Oracle came and dropped the project. It's open source now.
Check out their design docs and the code. You'll learn a lot!