做一个轻量级可扩展的 Node.js 游戏服务器框架,有没有人感兴趣
我知道 Pomelo 功能很强大,不过感觉过重了,上手不方便,有没人有兴趣一个做一个新的服务器框架,我大概列了下必要的功能,第一版将以卡牌,社交游戏为服务对象,但是架构设计将能缩放到实时性要求更高的 mmo.
Network Connection
- support different message flows such as request / response, push, broadcast
- protocol agnostic, support socket and web-socket by default
- user can change protocol with simple configuration
- other protocols such as http can be added lately without design change
Distribution
- dynamically increase / decrease server processes based on server load without the prior knowledge which server process will be bottlenecked
- In debug mode, automatically switch to module dependency for convenience
- default routing rule is least loaded
- routing rules are piped and customizable
- only need manually start the master server which will start the other servers in turn
Database solution
- default database is Mongodb to utilize its built-in memory cache, sharding for high read / write performance and scalability
Easy to use
- clearly documented
- user can start to use in one hour
- Source code obfuscation
11 回复
可以一试,我有兴趣,目前手头也正在做一个卡牌游戏。 node.js + redis + mongodb + mysql
有些东西写成中文别扭,然后开源的话是希望国外的开发者也参与进来,所以用英文较好
这个数据库方案略复杂啊
@Vizwind 这个只是我现在的这个项目中使用的,如果做框架得话,这些应该不用去实现吧。
pomelo 不重吧…只是约定比较多… …熟悉了,那套约定…其实,开发起来挺顺手的…
没必要的约定过多就是重的一种,Pomelo的设计更倾向于mmo
不错啊
要如何分工呢?
不错,有兴趣~
我也在自己写卡牌 就简单的mysql + express 楼主啥时候开始写 一起研究