Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

登录流程 #3

Open
ghost opened this issue Nov 18, 2017 · 6 comments
Open

登录流程 #3

ghost opened this issue Nov 18, 2017 · 6 comments
Labels

Comments

@ghost
Copy link

ghost commented Nov 18, 2017

客户端先请求game cluster 获取gate server list ,然后选择一个进入游戏吗?
有没有消息路线图呢?game server需要向cluster注册吗?

@jzyong
Copy link
Owner

jzyong commented Nov 18, 2017

暂时没制作,大体流程就是你问的这个流程,客户端通过http向集群服获取一个网关服务器,注册中心有负载均衡功能,选择一个空闲的网关服务器。所有网关,大厅,游戏都会向注册中心注册。大厅消息和游戏消息经过网关转发,每个玩家登陆连接网关后都会分配一个固定的大厅服务器和游戏服务器

@ghost
Copy link
Author

ghost commented Mar 4, 2018

这样的话,网关会不会压力很大

@jzyong
Copy link
Owner

jzyong commented Mar 5, 2018

不会,网关是水平扩展的

@ghost
Copy link
Author

ghost commented Jun 24, 2018

每个玩家登陆连接网关后都会分配一个固定的大厅服务器和游戏服务器
then client communicate with gamehall and gameserver directly?

@xm-tech
Copy link
Contributor

xm-tech commented Jun 24, 2018

不同网关的玩家会不会有进入相同场景的情况,(MMO)
如果有会不会有session重连的问题

@jzyong
Copy link
Owner

jzyong commented Jun 25, 2018

会进入相同场景,session不会重连,分配了一个固定的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants