当前位置:网站首页>Message Queuing Message Storage Design (Architecture Camp Module 8 Jobs)
Message Queuing Message Storage Design (Architecture Camp Module 8 Jobs)
2022-08-01 03:39:00 【InfoQ】
Message table

Consume information table
consume_log table
- We support multiple consumer groups, each consumer group shares a consumption progress record, so the table needs to have a group field to distinguish which consumer isThe consumption record of the group;
- The consumption offset is the most important, which records the consumption data, which is identified by offset, that is, messageThe msg_id in the table, because msg_id is strictly increasing under one data group and one topic;
Index Analysis
Send messages
- CustomersThe end completes the shard routing, assigns it to a shard, and sends the message data
- The message queue server finds the corresponding message table according to the topic message_{topic}, and then insert data, msg_id auto-increment
Consume message
- The client completes the routing of the fragmentation and sends thePull the message from the corresponding server, bring the parameters topic, group
- to query the consumer_log table, find the corresponding data through the index according to topic, group, and take out the offset
- Query the corresponding message table according to the offset, find the next offset record through the primary key id, take it out and prepare to return
- Update the offset information of consumer_log
- return data
边栏推荐
- ARM 交叉编译
- Chinese version of Pylint inspection rules
- [uniCloud] Application and Improvement of Cloud Objects
- MYSQL Keyword Explain Analysis
- HCIP(14)
- Solve the problem that Excel opens very slowly after installing MySQL
- [SemiDrive source code analysis] series article link summary (full)
- HIRO: Hierarchical Reinforcement Learning 】 【 Data - Efficient Hierarchical Reinforcement Learning
- MYSQL two-phase commit
- 软件测试周刊(第82期):其实所有纠结做选择的人心里早就有了答案,咨询只是想得到内心所倾向的选择。
猜你喜欢

Unknown Bounded Array

How to download the Keil package

leetcode6133. 分组的最大数量(中等)

Solve the problem that Excel opens very slowly after installing MySQL

Open source project site must-have & communication area function

HCIP (14)

初出茅庐的小李第112篇博客项目笔记之机智云智能浇花器实战(1)-基础Demo实现

解决安装MySQL后,Excel打开很慢的问题

软件测试面试(三)

Completely closed Chrome updated and in the top right corner of the tip
随机推荐
带wiringPi库在unbutu 编译 并且在树莓派运行
device node结构体转换成platform_device结构体
By CSDN, torn
Hackers can how bad to what degree?
MySQL3
Four implementations of
batch insert: have you really got it? 内核的解压缩过程详解
The fledgling Xiao Li's 113th blog project notes: Wisdom cloud smart flower watering device combat (2) - basic Demo implementation
Basic use of vim - command mode
2022 CSP-J1 CSP-S1 Round 1 Preliminary Competition Registration Guide
How is the tree structure of the device tree reflected?
IDEA 找不到或无法加载主类 或 Module “*“ must not contain source root “*“ The root already belongs to module “*“
Soft Exam Senior System Architect Series: Basic Knowledge of System Development
785. Quick Sort
初出茅庐的小李第114篇博客项目笔记之机智云智能浇花器实战(3)-基础Demo实现
[cellular automata] based on matlab interface aggregation cellular automata simulation [including Matlab source code 2004]
普通用户无法访问hgfs目录
Handwritten binary search tree and test
IDEA修改注释字体
手写二叉查找树及测试