MMOPRG Service-Side architecture design

Source: Internet
Author: User

The early service-side architecture was the CLIENT-->GAMESERVER-->DB model, where all the business and data were processed together on the Gameserver, causing the server to be under a lot of pressure, a bug that could cause the server to crash all the way, causing the player to churn. There is also when the service, all players piled up in a server, a lot of scene messages and broadcast wind explosion caused the server card. Mid-term then by improving the increase of gameserver, to achieve the sub-line to alleviate the server pressure, the disadvantage is the operation to the later stage, with each line of players reduced, interaction greatly reduced. Later, the server was divided by map, which greatly eased the server's business and data pressure. Now the mainstream server architecture is as follows, the main increase in the gateway server.

Gateway Server Benefits:

(1) As a transit station for network communication, is responsible for maintaining the intranet and external network isolation, so that the external can not directly access internal servers, to ensure the security of intranet servers, to a certain extent, less plug-in attacks.

(2) The Gateway server is responsible for parsing packets, adding and decrypting, time-out processing and certain logic processing, so that the error packets and illegal packets can be filtered out in advance.

(3) The client program only need to establish a connection with the gateway server to enter the game, no need to establish multiple connections with other game servers, save the client and server programs network resource overhead.

(4) When the player jumps the server, does not need to disconnect with the gateway server connection, the player data in the different game server switch is the intranet switch, the switch work instantaneous question completes, the player almost imperceptible, this guaranteed the game smoothness and the good user experience.


1. Gateway server becomes a communication bottleneck problem under high load condition

2 A problem with a single node failure in the gateway that prevents the entire set of servers from being serviced externally

Solution: Multi-gateway technology. As the name implies, "multi-gateway" is the existence of multiple gateway servers, such as a group of servers can be configured three gateserver. When the load is large, you can increase your gateway's overall traffic by increasing the gateway server, and when one gateway server goes down, it only affects the clients connected to the server, and the other clients are unaffected.

MMOPRG Service-Side architecture design

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.