Preparation: Reconstructing the Game Application Architecture
Three application containerization modes are available. For details, click here. This section describes reconstruction on the architecture of a game application into microservices before the game application is containerized.
Only overall reconstruction suggestions are provided in this section, and the reconstruction process is not described in detail. For details about the reconstruction process, click here.
This section provides suggestions on reconstruction of the game application architecture. You do not need to perform any operation. To perform operations, go to Analyzing the Game Application.
Suggestions on Containerization Reconstruction
The original game application architecture is as follows:
As shown in Figure 1,
- The game application consists of three components: wow-auth login authentication system, wow-world game server, and MySQL database.
- The wow-auth login authentication system and its dependency are installed on one VM, the MySQL database and its dependency are installed on two or more VMs, and the wow-world game server and its dependency are installed on three or more VMs. In the current architecture, if there are multiple game servers, they must be installed on multiple VMs. In this case, multiple VMs must be prepared, and independence packages required by different components must be installed on each VM, featuring heavy workload.
- This architecture causes poor scalability and difficult scaling, and brings high costs in maintenance. A new VM must be installed before a game server is added. In addition, it is a difficult job to maintain multiple VMs.
- Difficult upgrade: Upgrading the VMs require you to upgrade the configurations of these VMs one by one, which is time-consuming and error-prone.
You are advised to reconstruct the original architecture as follows:
As shown in Figure 2, the three components (including the wow-auth login authentication system, wow-world game server, and MySQL database) of the game application are respectively containerized and deployed on VMs. The new feature has the following advantages:
In this tutorial, the MySQL database is used. During actual commercial use, select a proper database based on your service requirements.
- Easy deployment: The three components of the game application are made into container images, and the images are uploaded to a container image repository. You can directly deploy the containerized game application based on these images by using CCE.
- Good scalability and quick scaling: To add a game server, you only need to start a container. You can start a container in seconds.
- Easy upgrade: You can quickly upgrade the components by merely replacing the images. In addition, CCE provides rolling upgrade, causing no service interruption during the upgrade.
Last Article: Deployment Process
Next Article: Analyzing the Game Application


Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.