当前位置:网站首页>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
边栏推荐
- The dynamic thread pool in Kitty supports Nacos and Apollo multi configuration centers
- Humor: hacker programming is actually similar to machine learning!
- If PPT is drawn like this, can the defense of work report be passed?
- ES6学习笔记(四):教你轻松搞懂ES6的新增语法
- Common algorithm interview has been out! Machine learning algorithm interview - KDnuggets
- hdu3974 Assign the task線段樹 dfs序
- Recommendation system based on deep learning
- Vue.js Mobile end left slide delete component
- Music generation through deep neural network
- 6.1.1 handlermapping mapping processor (1) (in-depth analysis of SSM and project practice)
猜你喜欢
Network security engineer Demo: the original * * is to get your computer administrator rights! [maintain]
(1) ASP.NET Introduction to core3.1 Ocelot
If PPT is drawn like this, can the defense of work report be passed?
文件过多时ls命令为什么会卡住?
Brief introduction and advantages and disadvantages of deepwalk model
For a while, a dynamic thread pool was created, and the source code was put into GitHub
C#和C/C++混合编程系列5-内存管理之GC协同
What are the criteria for selecting a cluster server?
C + + and C + + programmers are about to be eliminated from the market
What to do if you are squeezed by old programmers? I don't want to quit
随机推荐
大道至简 html + js 实现最朴实的小游戏俄罗斯方块
Using NLP and ml to extract and construct web data
NLP model Bert: from introduction to mastery (1)
Jmeter——ForEach Controller&Loop Controller
Humor: hacker programming is actually similar to machine learning!
Unity性能优化整理
How to get started with new HTML5 (2)
Interface pressure test: installation, use and instruction of siege pressure test
Pattern matching: The gestalt approach一种序列的文本相似度方法
Python saves the list data
一篇文章带你了解CSS 渐变知识
Interpretation of Cocos creator source code: engine start and main loop
Basic usage of GDB debugging
一篇文章带你了解CSS3 背景知识
Get twice the result with half the effort: automation without cabinet
What are the criteria for selecting a cluster server?
Read the advantages of Wi Fi 6 over Wi Fi 5 in 3 minutes
What to do if you are squeezed by old programmers? I don't want to quit
vue任意关系组件通信与跨组件监听状态 vue-communication
What are the common problems of DTU connection