当前位置:网站首页>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
边栏推荐
- 电脑强制关机 oracle登录不上
- [Matlab]二阶节约响应
- Determine whether the linked list is palindrome structure
- Neglected technique: bit operation
- 剑指offer数组题型总结篇
- Php+mysql library management system (course design)
- [nodejs] electron installation
- Start notes under the Astro Pro binocular camera ROS
- 常用分页方法总结
- [Yu Yue education] basic engineering English of Zhejiang industrial and Commercial University (wuyiping) reference materials
猜你喜欢

C language to achieve eight sorts (2)
![[data mining time series analysis] restaurant sales forecast](/img/9a/5b93f447e38fcb5aa559d4c0d97098.png)
[data mining time series analysis] restaurant sales forecast

机器学习之Logistic回归简单实例

MySQL事务简介

What is deadlock? (explain the deadlock to everyone and know what it is, why it is used and how to use it)

Precision twist jitter

Superscalar processor design yaoyongbin Chapter 2 cache -- Excerpt from subsection 2.4

Basic operation and question type summary of binary tree

NLP - fastText

Implementation stack and queue
随机推荐
Players must read starfish NFT advanced introduction
The device is in use when win10 ejects USB
206. reverse linked list
leetcode 257. Binary Tree Paths 二叉树的所有路径(简单)
Introduction to MySQL transactions
完好性简要介绍
Matlab point cloud processing (XXV): point cloud generation DEM (pc2dem)
One question of the day - delete duplicates of the ordered array
Why is the printer unable to print the test page
[Chongqing Guangdong education] college physics of Xiangtan University: mechanical and thermal reference materials
【Uniapp 原生插件】商米钱箱插件
Tkinter学习笔记(三)
剑指offer数组题型总结篇
[uniapp native plug-in] shangmi cashbox plug-in
Bit operation in leetcode
Leetcode - day 2
Superscalar processor design yaoyongbin Chapter 2 cache -- Excerpt from subsection 2.4
Tkinter study notes (IV)
仅需三步学会使用低代码ThingJS与森数据DIX数据对接
MATLAB点云处理(二十五):点云生成 DEM(pc2dem)