当前位置:网站首页>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
边栏推荐
- Pattern matching: The gestalt approach一种序列的文本相似度方法
- MeterSphere开发者手册
- Vite + TS quickly build vue3 project and introduce related features
- Chainlink brings us election results into blockchain everipedia
- 6.6.1 localeresolver internationalization parser (1) (in-depth analysis of SSM and project practice)
- Asp.Net Core learning notes: Introduction
- Construction of encoder decoder model with keras LSTM
- 視覺滾動[反差美]
- hdu3974 Assign the task線段樹 dfs序
- 这个项目可以让你在几分钟快速了解某个编程语言
猜你喜欢
Python Jieba segmentation (stuttering segmentation), extracting words, loading words, modifying word frequency, defining thesaurus
一部完整的游戏,需要制作哪些音乐?
Word segmentation, naming subject recognition, part of speech and grammatical analysis in natural language processing
Cglib 如何实现多重代理?
用一个例子理解JS函数的底层处理机制
小游戏云开发入门
Interface pressure test: installation, use and instruction of siege pressure test
一篇文章带你了解CSS对齐方式
What are the criteria for selecting a cluster server?
A course on word embedding
随机推荐
一篇文章带你了解CSS 分页实例
With the advent of tensorflow 2.0, can pytoch still shake the status of big brother?
React design pattern: in depth understanding of react & Redux principle
How to get started with new HTML5 (2)
Introduction to the structure of PDF417 bar code system
Python基础变量类型——List浅析
Read the advantages of Wi Fi 6 over Wi Fi 5 in 3 minutes
It is really necessary to build a distributed ID generation service
仅用六种字符来完成Hello World,你能做到吗?
Get twice the result with half the effort: automation without cabinet
前端工程师需要懂的前端面试题(c s s方面)总结(二)
[C] (original) step by step teach you to customize the control element - 04, ProgressBar (progress bar)
一篇文章带你了解CSS对齐方式
C#和C/C++混合编程系列5-内存管理之GC协同
Humor: hacker programming is actually similar to machine learning!
python100例項
一篇文章带你了解SVG 渐变知识
6.5 request to view name translator (in-depth analysis of SSM and project practice)
Asp.Net Core learning notes: Introduction
It's easy to operate. ThreadLocal can also be used as a cache