<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>发布治理 on PlumePHP</title><link>https://plumephp.com/tags/%E5%8F%91%E5%B8%83%E6%B2%BB%E7%90%86/</link><description>Recent content in 发布治理 on PlumePHP</description><generator>Hugo</generator><language>zh-CN</language><lastBuildDate>Sat, 02 Oct 2021 09:41:00 +0800</lastBuildDate><atom:link href="https://plumephp.com/tags/%E5%8F%91%E5%B8%83%E6%B2%BB%E7%90%86/index.xml" rel="self" type="application/rss+xml"/><item><title>游戏服务器网关连接排空架构设计</title><link>https://plumephp.com/game-server-gateway-connection-draining-architecture/</link><pubDate>Sat, 02 Oct 2021 09:41:00 +0800</pubDate><guid>https://plumephp.com/game-server-gateway-connection-draining-architecture/</guid><description>&lt;p&gt;游戏服务器端架构设计最难的地方，不是把主流程写通，而是让系统在玩家重复操作、弱网、运营干预、版本切换和服务重启时仍然能解释。移动游戏的网关通常承载大量长连接。发布一个新网关版本时，如果直接踢掉旧连接，玩家会看到瞬断、重连、房间丢状态；如果永远等玩家自然离线，旧版本又很难下线。连接排空的目标，是让旧网关停止接新连接，逐步引导已有连接迁移或自然结束，同时把会话状态和路由关系安全交接给新节点。&lt;/p&gt;</description></item></channel></rss>