我知道 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 回复