当前位置:网站首页>Selection and comparison of message oriented middleware MQ
Selection and comparison of message oriented middleware MQ
2022-06-24 22:29:00 【follow_ me!】
One 、 frequently-used MQ:
1.1 At present commonly used MQ Yes :RocketMq、Kafka、RabbitMq、 The latest one pulsar; a MQ At least meet Low latency , High throughput , Data accumulation capacity Three characteristics
Two 、 frequently-used MQ Comparison of :
Generally from function 、 performance 、 other Three dimensions

- RabbitMq:Erlang Language development , Support priority queue , The disadvantage is that the message stacking capacity is weak , Performance is the weakest , The throughput of a single machine is 10000 , and rocketmq It's 100000 ,kafka In millions .
- rocketMq:JAVA Language development , Support message query
- kfaka:java And scala Language , High throughput connection , It is mostly used in big data scenarios , High data throughput may cause data loss
summary :
If the business scenario is available rocketMQ And rabbitMQ, If it is a big data scenario kafka; as for rocketMQ And rabbitMQ How to choose , Depending on the technology stack , If it is Erlang The language is chosen as much as possible rabbitmq, If it is java Language , Choose rocketMQ.
If the sensitivity of the message is not high , Allow less data loss , You can choose kafka; If the sensitivity requirement of the message is high, do not select kafka; If the message sensitivity requirements are extremely high , select rocketMq, because rocketMq It has the function of message query .
3、 ... and 、 mq Why so soon? :
Memory mapping ( Write to memory first , Increase of efficiency ), Efficient storage design ( Fixed file length , You can use subscripts to quickly locate ), Synchronous brush set ( But the internal is asynchronous batch disk brushing ), Memory level read / write separation and locking mechanism
Four 、 Message not lost
Synchronous brush set , Synchronous replication
notes : This paper mainly compares three kinds of message oriented middleware , If you want to know MQ For more information, please visit the following two articles :
RabbitMQ Brief description and docker install : Portal
actual combat :springboot Integrate rabbitMQ: Portal
边栏推荐
- 如何抓手机的包进行分析,Fiddler神器或许能帮到您!
- DX 的 HLSL 和 GL 的 GLSL的 矩阵构建的行列区别
- Common voting governance in Dao
- NIO、BIO、AIO
- [200 opencv routines] 209 Color image segmentation in HSV color space
- Reduce the pip to the specified version (upgrade the PIP through CMP and reduce it to the original version)
- KT6368A蓝牙芯片的主从机之前透传功能说明,2.4G跳频自动连接
- First order model realizes photo moving (with tool code) | machine learning
- 985 test engineer is hanged. Who is more important in terms of education and experience?
- 虚拟人的产业发展现状
猜你喜欢

波卡生态发展不设限的奥义——多维解读平行链

Docker 安装 MySQL 8.0,详细步骤

How to refine permissions to buttons?

Detailed explanation of agency mode

Rotate the square array of two-dimensional array clockwise by 90 °

AQS源码分析

EasyBypass

NiO zero copy

KT6368A蓝牙芯片的主从机之前透传功能说明,2.4G跳频自动连接

The process from troubleshooting to problem solving: the browser suddenly failed to access the web page, error code: 0x80004005, and the final positioning: "when the computer turns on the hotspot, the
随机推荐
为什么有的程序员能力一般却能拿到好offer?
波卡生态发展不设限的奥义——多维解读平行链
Technology inventory: past, present and future of Message Oriented Middleware
NiO, bio, AIO
华大04a工作模式/低功耗模式
Find the maximum value in each tree row [extension of one of the hierarchical traversals]
leetcode:515. Find the maximum value in each tree row [brainless BFS]
St Table + two points
985 test engineer is hanged. Who is more important in terms of education and experience?
Collective search + drawing creation
leetcode:45. Jumping game II [classic greed]
NIO、BIO、AIO
The process from troubleshooting to problem solving: the browser suddenly failed to access the web page, error code: 0x80004005, and the final positioning: "when the computer turns on the hotspot, the
How to refine permissions to buttons?
04A中断的配置
interrupt、interrupted 、isInterrupted 区别
Stl+ tree
How to automatically remove all . orig files in Mercurial working tree?
Flutter: Unsupported value: false/true
Junior college background, 2 years in Suning, 5 years in Ali. How can I get promoted quickly?