当前位置:网站首页>StickEngine-架构11-消息队列(MessageQueue)
StickEngine-架构11-消息队列(MessageQueue)
2020-11-06 21:14:00 【梦想游戏人】
整体概述是 https://my.oschina.net/kkkkkkkkkkkkk/blog/3190865
这里的 消息队列(MessageQueue) 和广义的概念有点区别,这里是为了解决服务器点对点通信中的多信道。
常规IPC方案之一是服务器之间之会有一条信道(TCP-socket),来就行双工工作。
在StickEngine中添加message queue 的目的是加强多线程化的进程 IPC性能。
该点对点的MQ有以下 规则和特点:
1.RPC模型中一问一答模式,他们通信的Channel是同一条。决定方为RPC调用发起方。
2.Channel负载算法为轮训+限流。
3.消息模型中,Channel则可能会不一致。
4.非同一条Channel的消息不保证顺序性
5.通信基础协议为TCP,Channel设计为双工 工作模式。
6.只要有一条Channel可用,那么就认为该MQ可用。
版权声明
本文为[梦想游戏人]所创,转载请带上原文链接,感谢
https://my.oschina.net/kkkkkkkkkkkkk/blog/4463276
边栏推荐
- C + + and C + + programmers are about to be eliminated from the market
- 6.1.1 handlermapping mapping processor (1) (in-depth analysis of SSM and project practice)
- Natural language processing - BM25 commonly used in search
- Discussion on the development practice of aspnetcore, a cross platform framework
- python100例項
- Elasticsearch数据库 | Elasticsearch-7.5.0应用搭建实战
- Details of dapr implementing distributed stateful service
- I've been rejected by the product manager. Why don't you know
- FastThreadLocal 是什么鬼?吊打 ThreadLocal 的存在!!
- html+vue.js 實現分頁可相容IE
猜你喜欢

NLP model Bert: from introduction to mastery (2)

How to encapsulate distributed locks more elegantly

一篇文章带你了解SVG 渐变知识

新建一个空文件占用多少磁盘空间?

keras model.compile Loss function and optimizer

01. SSH Remote terminal and websocket of go language

FastThreadLocal 是什么鬼?吊打 ThreadLocal 的存在!!

前端基础牢记的一些操作-Github仓库管理

【转发】查看lua中userdata的方法

零基础打造一款属于自己的网页搜索引擎
随机推荐
6.3 handlerexceptionresolver exception handling (in-depth analysis of SSM and project practice)
【自学unity2d传奇游戏开发】如何让角色动起来
What problems can clean architecture solve? - jbogard
I've been rejected by the product manager. Why don't you know
[actual combat of flutter] pubspec.yaml Configuration file details
Humor: hacker programming is actually similar to machine learning!
6.6.1 localeresolver internationalization parser (1) (in-depth analysis of SSM and project practice)
使用 Iceberg on Kubernetes 打造新一代雲原生資料湖
Azure data factory (3) integrate azure Devops to realize CI / CD
零基础打造一款属于自己的网页搜索引擎
Interpretation of Cocos creator source code: engine start and main loop
零基础打造一款属于自己的网页搜索引擎
vue-codemirror基本用法:实现搜索功能、代码折叠功能、获取编辑器值及时验证
Basic usage of GDB debugging
Brief introduction and advantages and disadvantages of deepwalk model
I think it is necessary to write a general idempotent component
Interface pressure test: installation, use and instruction of siege pressure test
一篇文章教会你使用Python网络爬虫下载酷狗音乐
5.4 static resource mapping
TensorFlow中的Tensor是什么?