当前位置:网站首页>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
边栏推荐
- 零基础打造一款属于自己的网页搜索引擎
- Details of dapr implementing distributed stateful service
- [actual combat of flutter] pubspec.yaml Configuration file details
- 開源一套極簡的前後端分離專案腳手架
- Using NLP and ml to extract and construct web data
- NLP model Bert: from introduction to mastery (2)
- 【自学unity2d传奇游戏开发】如何让角色动起来
- 一篇文章带你了解CSS3 背景知识
- 【應用程式見解 Application Insights】Application Insights 使用 Application Maps 構建請求鏈路檢視
- How to demote domain controllers and later in Windows Server 2012
猜你喜欢
axios学习笔记(二):轻松弄懂XHR的使用及如何封装简易axios
【自学unity2d传奇游戏开发】如何让角色动起来
The dynamic thread pool in Kitty supports Nacos and Apollo multi configuration centers
[C / C + + 1] clion configuration and running C language
零基础打造一款属于自己的网页搜索引擎
Free patent download tutorial (HowNet, Espacenet)
Recommendation system based on deep learning
I've been rejected by the product manager. Why don't you know
How to use Python 2.7 after installing anaconda3?
Individual annual work summary and 2019 work plan (Internet)
随机推荐
新建一个空文件占用多少磁盘空间?
Python filtering sensitive word records
Brief introduction of TF flags
Installing ns-3 on ubuntu18.04
Named entity recognition in natural language processing: tanford core LP ner (1)
一篇文章教会你使用Python网络爬虫下载酷狗音乐
What if the front end doesn't use spa? - Hacker News
Advanced Vue component pattern (3)
6.5 request to view name translator (in-depth analysis of SSM and project practice)
NLP model Bert: from introduction to mastery (2)
Basic principle and application of iptables
Three Python tips for reading, creating and running multiple files
How to use Python 2.7 after installing anaconda3?
只有1个字节的文件实际占用多少磁盘空间
有了这个神器,快速告别垃圾短信邮件
使用 Iceberg on Kubernetes 打造新一代雲原生資料湖
Even liver three all night, jvm77 high frequency interview questions detailed analysis, this?
Python saves the list data
一篇文章带你了解CSS 分页实例
It's easy to operate. ThreadLocal can also be used as a cache