-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Introduction to Lord of Pomelo
Lordofpomelo (lordofpomelo) is a distributed MMO RPG game Demo based on pomelo framework.
Lordofpomelo covers core content of the mainstream MMORPGs: it has three game scenes, eight different role types, various game tasks, and a variety of items and weapons, as well as a variety of monsters and boss. Players can shuttle multiple virtual scene, complete various of tasks, enhance the level and interact with other players.
In order to investigate the ability of the pomelo server response, lordofpomelo with a real-time battle mode, most of the player's behavior behavior, including attack, use skills, the seizure of the props and the use of real time. After multiple rounds of optimization to achieve the load capacity of the single scene 800, the same time can guarantee a good response time, specific optimization of the process and results see (Link).
Lordofpomelo is develordofpomeloed under pomelo framework standard. by using cluster server management, it can support 800 concurrent access in a single scene. And the capability can be increased by adding more scene servers.
As shown above, lordofpomelo including two types of servers: game-server and web-server. web-server is a http web server, which used as the entry of the game demo. It also includes player register and OAuth authentication logic. After player complete registration and verification, he(or she) will enter the game-server, which supports real game experience. Game-server is the hard core of lordofpomelo server cluster, it includes a websocket server cluster as front-end server and a game logic server cluster as backend server, game-server architecture is shown below:
The Clients in the above picture can be any kind of client support support websocket。 The client in lordofpomelo is implement by html5, it can be run not only at PC browser, but also any html5 compatible terminal(such as iphone or high performance android device). Players in different platform can interaction with each others.
The Game-server also can be divided into two different types: Frontend server and Backend Server. Frontend server is a websocket server cluster, it is used to communicate with websoket clients, response the client request and forwarding or filtering message.Frontend servers are also used to broadcasting messages to client.
Backend Servers are mainly used to process the game logic, including various games server types. Wherein the area server is the most important server。 It is primarily responsible for the maintenance of the game scene: update the game data regularly and maintenance the game scene operation, these features need multiple modules cooperative work co complete. Scene server is also scalable, each scene corresponding to a single area server, by increasing the scenes in a game, you can balance the load to multiple servers.
- [Start process of lordofpomelo] (https://github.com/NetEase/pomelo/wiki/Start-process-for-lordofpomelo)
- [Code structure for lordofpomelo] (https://github.com/NetEase/pomelo/wiki/Lordofpomelo-Code-architecture)
- [Introduction to servers in lordofpomelo] (https://github.com/NetEase/pomelo/wiki/Introduction-to-servers-in-lordofpomelo)