当前位置:网站首页>Technical Selection of Message Queuing
Technical Selection of Message Queuing
2022-08-02 16:04:00 【zhangyu】
Message Queuing Enterprise Application Scenario Analysis
- Message Queue: A container for storing messages during message transmission. Producers and consumers do not communicate directly, relying on queues to ensure message reliability and avoid mutual influence between systems.
- Major roles of message queue: server, client
- The main functions of message queues: business decoupling, asynchronous calls, traffic peak shaving
- Advantages of decoupling: improve system stability, avoid multiple calls by broadcasting messages, and asynchronously process through message queues for scenarios where you don't need to pay attention to call results
Comparative analysis of message queue selection, why use RocketMQ
feature comparison | Maturity | Sequence Message | Delayed message | Transaction message | Message filtering | Message query | Consumption failure retry | Batch send |
---|---|---|---|---|---|---|---|---|
kafka | Log Field | Support | Not supported | Not supported | Support | Not supported | Not supported | Support |
RabbitMQ | Mature | Support | Not supported | Not supported | Not supported | Not supported | Support | Not supported |
RocketMQ | Mature | Support | Specific LV | Support | Support | Support | Support | Not supported |
Utility | Deployment method | Cluster Management | Select the main method | Master-slave switch | Data reliability | Performance | Availability | Stackability |
---|---|---|---|---|---|---|---|---|
kafka | Clusters | Zookeeper | Automatic elections | Auto switch | High | Very high | Distributed, master-slave | Very good |
RabbitMQ | Clusters | Erlang native support | The oldest joined node | Auto switch | High | in | Master-Slave | General |
RocketMQ | Clusters | Name Server | Not supported | Auto switching is not supported | High | High | Distributed, master-slave | Very good |
- Kafka: a data stream channel between systems
- RabbitMQ: Reliable Messaging
- RocketMQ: High-performance reliable messaging
Analysis of MQ High Availability and High Expansion Solutions
- RocketMQ Architecture
- Broker master-slave deployment, its own information is registered in NameServer
- Client gets broker information from NameServer
- NameServer nodes are independent of each other, no data interaction
- Reliability Analysis
- Sync Flash: low performance, high reliability
- Asynchronous flushing: high performance, low reliability
- Asynchronous replication
- Sync Double Write
- Usability Analysis
- Master-slave mode Master is down: Broker is readable but not writable
- How to build a cluster
- Single Master Mode
- Multi-Master Mode
- Multi-Master Multi-Slave Mode-Asynchronous Replication
- Multi-Master Multi-Slave Mode-Synchronous Double Write
Analysis of MQ service registration and discovery principles
- Registry Center—NameServer Design
- Service registration: Broker registers itself with information
- Service Discovery: Procucer/Consumer Find Broker Information
- Registry Center—NameServer Design Advantages
- Design goals are simple and efficient
- High availability solution: multiple nodes independent of each other
- Data Storage Design
- Cluster-
- Broker1 -
- Topic-
- Broker-heartbeat
- Cluster-
边栏推荐
猜你喜欢
随机推荐
golang内存相关文章-收集
光学好书推荐
Unity-Ads广告插件
Server-Sent Events 一种轻量级的Push方式
如何编辑VirtualLab Fusion结果的格式
HCIE学习记录——数据封装与常用协议(TCP/UDP)
Vert.x web 接收请求时反序列化对象 Failed to decode 如何解决?
The relationship between base classes and derived classes [inheritance] / polymorphism and virtual functions / [inheritance and polymorphism] abstract classes and simple factories
Priority table and Ascll table
shader入门精要3
Google AdSense注册流程
The use of a semaphore/interprocess communication 】 【 Shared memory
剑指offer:数值的整数次方
内存和硬盘、磁盘的区别
【线程网络】了解线程属性(fork/interview question)
线性结构,顺序结构
光栅区域衍射级数和效率的规范
仿真结果的格式&定制
移动拷贝构造函数
双链表(普通迭代器和常性迭代器)