当前位置:网站首页>Design of Cluster Gateway in Game Server

Design of Cluster Gateway in Game Server

2022-08-11 08:42:00 zfoo-framework

The gateway is actually located at the top layer in the game server and has the following basic functions:

1. The client can request the partition list.

2. Recommended server.

It can be seen that if the gateway is down, the player can't even get the partition list and can't enter the game.

At this time, in order to avoid single-point problems, the gateway needs to be designed as a cluster. At present, in our game, we use: nginx + multiple springboot projects to realize the cluster.Nginx can route to the specified springboot project for processing according to the player's ip, so that the traffic can be shunted and a gateway server can be hung with little impact.

原网站

版权声明
本文为[zfoo-framework]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/223/202208110839486653.html