吉奇 高并发场景下分布式实时信令系统的架构实践

QCon大会

2019/06/25 发布于 技术 分类

QCon  QCon2019 

文字内容
1. 高并发场景下分布式实时信令系统的架构实践 吉奇 Agora声网 RTM平台技术负责人
2. 自我介绍
3. 自我介绍 吉奇 声网Agora 资深技术架构师 硅谷回国码农一枚,现负责声网RTM实时信令云服务后台及SDK技术架构设计。毕业于中国科学技术大 学和Clemson University,曾就职于Verizon,负责视频广告业务API平台及服务端设计实现,在大型分 布式系统后台、网络传输优化及API架构设计和实践领域有深厚的经验积累。加入声网,全面负责RTM实 时信令产品的架构设计与实现。钟爱在国内按硅谷时间工作。
4. 目录 1. Overview 2. Region 3. Messaging Core 4. Event Center 5. Application Services 6. Inter-Regional Network
5. Region Region Region Inter-Regional Network Overview Region
6. Inter-Regional Network Region Region 四大子系统: 1.消息核心 Messaging Core Region 应用服务 2.事件中心 Event 3. Center 4.跨区网络 Region Application Services
7. Inter-Regional Network Region Region Messaging Core Messaging Core ● ● ● ● ● ● ● 完全排除单点故障 Gateway Server ● High Redundancy ● 接近100%可用 User Message Server ● High Throughput Group Message●Server Low Latency 端到端延迟 <● 100ms User Status Server ● High Availability ● 任何节点都可水平扩展 Group Status Server ● High Scalability ● 支持数百万人同频道(无理论上限) Group Distribution Server ● Core Features Only Etc... ● 大型活动中支持数百万QPS消息下发 ● ● 核心功能超高响应 Event Center Messaging Core Application Services
8. Scalability U F R R R U F F A A A Messaging Core BB
9. Availability O D O R Messaging Core F
10. Region Inter-Regional Network Messaging Core Region Application Services Event Center Event Center ● Random Read/Write ● Bulky Records ● Simple Structure ● 传输和状态隔离 ● Scalable ● 数据和索引隔离 ● Streaming ● Light Weight ● Index to Storage ● Scalable Event Storage Event Queue Event Center
11. Inter-Regional Network Region Application Services Micro Services ● ● ● ● Messaging Core ● ● ● 频道属性 Features ● Easy to Develop Monitoring ● Decoupled ● 历史消息 Billing ● Rich Features ● 等等... ... Troubleshooting Analytics And More... Event Center Application Services Region
12. Region Region Inter-Regional Network ● ● Messaging Core 实时路由 全球范围高峰期平 均RTT<250ms Event Center Inter-Regional Network Application Services
13. Routing A's Table B 20ms C 30ms D 40ms A C B D Messaging Core