当前位置:网站首页>Message queue MySQL table that stores message data
Message queue MySQL table that stores message data
2022-06-11 22:27:00 【InfoQ】
Design thinking
General description
- A table describing the meta information of each message queue , Contains basic information about the queue , And queue configuration , Just a watch ;
- Record the consumer information subscribed to each message queue
- The specific message content table in the message queue ,One table per queue.
Process description
- Create a new message queue : Record the queue name and configuration to meta surface
- Consumers subscribe to message queues : Record client information to subscriber surface , It is convenient to notify consumers after subsequent messages enter the queue
- The message arrives at the message queue : According to the queue name , Find the message content table corresponding to the queue , Record the message id、 Message content to message surface
- Inquire about subscriber surface , Find the subscriber of the queue ip Etc , Send notification of arrival of new messages
- Consumers get messages , The customer service end queries the messages that have not been consumed , The queue passes subscriber The largest message recorded in id, Will be greater than the maximum message id The message is returned to the client
Table design
Queue meta information table
- id: queue ID
- name: Queue name
Subscription table
Message content table
边栏推荐
- Submit task to thread pool
- Leetcode stack topic summary
- 超標量處理器設計 姚永斌 第2章 Cache --2.4 小節摘錄
- Sword finger offer array question type summary
- Why is the printer unable to print the test page
- Dynamics 365 选项集操作
- 如果重来一次高考,我要好好学数学!
- 【NodeJs】Electron安装
- [Yu Yue education] Yancheng Normal University Advanced Algebra reference
- Read dense visual slam for rgb-d cameras
猜你喜欢

Conception du Processeur superscalaire Yao yongbin chapitre 2 cache - - sous - section 2.4 extrait

How to view computer graphics card information in win11

Daily question - Roman numeral to integer

Implementation stack and queue

Tkinter study notes (III)

仅需三步学会使用低代码ThingJS与森数据DIX数据对接

Explain asynchronous tasks in detail: the task of function calculation triggers de duplication

图的基本操作(C语言)

Precision twist jitter

Why is the printer unable to print the test page
随机推荐
How to adjust the font blur of win10
链表基本操作与题型总结
The device is in use when win10 ejects USB
Read dense visual slam for rgb-d cameras
超標量處理器設計 姚永斌 第2章 Cache --2.4 小節摘錄
C language implements eight sorts (3)
A simple example of linear regression in machine learning
详解异步任务:函数计算的任务触发去重
Superscalar processor design yaoyongbin Chapter 2 cache -- Excerpt from subsection 2.2
Implementation stack and queue
习题10-1 判断满足条件的三位数 (15 分)
Is it safe for qiniu business school to send Huatai account? Really?
Exercise 9-5 address book sorting (20 points)
Leetcode stack topic summary
[JS] 1347- high level usage of localstorage
C language implements eight sorts of sort merge sort
[matlab] second order saving response
学1个月爬虫就月赚6000?别被骗了,老师傅告诉你爬虫的真实情况
习题11-2 查找星期 (15 分)
Basic operation and question type summary of linked list