摘要
MMO服务器设计过程中,需要关注整体结构、通讯模块和服务器的鲁棒性.结合经典设计模式,讨论MMO服务器构建的关键技术点.采用模块化的构建方法组织服务,通讯模块使用IOCP机制保证网络服务的并发性和高效性.融合油漆工、代理、观察者等多种模式,实现服务模块的低耦合结构.加入共享内存机制和进程通信机制,将服务数据与服务逻辑分离,保证服务器的鲁棒性.
Process of MMO server design should focus on the overall structure,communication module and the server robustness. This paper presents MMO servers key technologies and modular organization based on design patterns. The communications module uses IOCP mechanism to guarantee network service concurrency and efficiency. With low coupling,the MMO service module structure is designed with decorator,proxy,observer and other patterns. To ensure the robustness of the server,the service data and service logic are separated with shared memory mechanism and process communication mechanism.
出处
《微电子学与计算机》
CSCD
北大核心
2010年第7期97-101,共5页
Microelectronics & Computer