当前位置:网站首页>游戏服务器中集群网关的设计
游戏服务器中集群网关的设计
2022-08-11 08:40:00 【zfoo-framework】
网关在游戏服务器中,其实是位于最上层,有以下基本功能:
1.客户端可以请求得到分区列表。
2.推荐服务器。
可见,如果网关挂了,那么玩家连分区列表都得不到了,就无法进入游戏了。
此时,为了避免单点问题,需要把网关设计为集群,目前我们游戏中,使用的是:nginx + 多个springboot工程实现集群的。nginx可以根据玩家的ip进行路由到指定的springboot工程进行处理,这样子就能分流,挂一个网关服务器,影响也不大。
边栏推荐
猜你喜欢
Analysys and the Alliance of Small and Medium Banks jointly released the Hainan Digital Economy Index, so stay tuned!
机器学习(二)线性回归
[C语言] sscanf如何实现sscanf_s?
Unity3D——自定义类的Inspector面板的修改
9、Neural Sparse Voxel Fields
几何EX3 功夫牛宣布停售,入门级纯电产品为何总成弃子
【TA-霜狼_may-《百人计划》】图形3.7.2 command buffer简
golang string manipulation
对比学习系列(三)-----SimCLR
One network cable to transfer files between two computers
随机推荐
golang 字符串操作
WiFi cfg80211
【43. 字符串相乘】
链式编程注解
matplotlib
Kotlin算法入门兔子数量优化及拓展
法律顾问成了律所鸡肋产品了吗?
Filesystem Hierarchy Standard
机器学习(一)数据的预处理
jenkins简单使用
软件测试常用工具的用途及优缺点比较(详细)
基于consul的注册发现的微服务架构迁移到servicemesh
轻量级网络(一):MobileNet V1,V2, V3系列
快速幂,逆元的求解
2021-08-11 For loop combined with multi-threaded asynchronous query and collect results
2022年值得关注的NFT发展趋势
Break pad source code compilation--refer to the summary of the big blogger
JUC Concurrent Programming
Filesystem Hierarchy Standard
gRPC系列(二) 如何用Protobuf组织内容