当前位置:网站首页>Message queue table structure for storing message data
Message queue table structure for storing message data
2022-06-25 06:39:00 【InfoQ】
- One queue corresponds to one table , A queue only processes one business message , Therefore, the unified message data format reduces the complexity of message processing for producers and consumers , And simple 、 Efficient 、 Easy maintenance 、 Easy to expand ;
- Creating a queue will redundancy the same table structure on each database , The table name contains the queue name ,SDK Polling writes and reads messages ;
- Multiple message queuing patterns need to be considered , For this system, we only consider two queue modes , That is, work queue mode and publish subscribe mode .
- You need to consider the reliability of client consumption messages , It is divided into client confirmation and unconfirmed , Corresponding to different scenarios with different messaging reliability requirements ;
- news ID Is a key element of message queuing , You need to include meaningful information , Such as : Creation time , Serial number 、 producer 、 Business type, etc , To ensure rough order and improve index efficiency , It is convenient for fault diagnosis and subsequent data repair and processing in case of message delivery failure , such as : retransmission 、 Rereading or business data correction, etc .
- You need to record where consumers read messages and log them , So that the last message read from ID Continue reading unread messages at , Consumers can be configured to read one or more messages at a time .





边栏推荐
- Bcrypt password encryption kalrry
- SAP QM executes the transaction code qp01, and the system reports an error -material type food is not defined for task list type Q-
- Which of the top ten securities companies has the lowest Commission and is the most safe and reliable? Do you know anything
- Personal blog system graduation project opening report
- sin(a+b)=sina*cosb+sinb*cosa的推导过程
- Tp6 interface returns three elements
- Wechat applet simply realizes chat room function
- @Principle of preauthorize permission control
- Your local changes to the following files would be overwritten by merge: .vs/slnx.sqlite
- HCIP Day 16
猜你喜欢

3dmax软件的制作木桶过程:三步流程

keil debug查看变量提示not in scope

From file system to distributed file system

The perfect presentation of Dao in the metauniverse, and platofarm creates a farm themed metauniverse

At the age of 26, I was transferred to software testing with zero foundation. Now I have successfully entered the job with a monthly salary of 12K. However, no one understands my bitterness

@Detailed explanation of valid annotation usage

Laravel8+ wechat applet generates QR code

Acwing / 2004. Mauvaise écriture

Sophomores majoring in mechanics build a manipulator by hand -- full of compromise

TCP BBR as rate based
随机推荐
The "&" character will destroy the data stored in the web The "&" character breaks passwords that are stored in the web config
レレ / 蕾蕾
What is cloud primordial?
有能力的人从不抱怨大环境!
Kotlin reflection -- Notes
Analysis of common interview questions in redis
[no title] dream notes 2022-02-20
Are these old system codes written by pigs?
Sword finger offer II 095 Longest common subsequence
【ROS2】为什么要使用ROS2?《ROS2系统特性介绍》
原子Alpha开发板--SD卡和emmc烧录工具
Ht81293 built in adaptive dynamic boost 20W mono class D power amplifier IC solution
ASP. Net core - Safety of asynclocal in asp NET Core
How to realize the stable output of 3.3v/3.6v (1.2-5v) voltage of lithium battery by using the voltage rise and fall chip cs5517
ACWING/2004. 錯字
ACWING/2004. 错字
STL map的用法
Can TCP syn handshake messages transmit data
Uncaught TypeError: Cannot read properties of undefined (reading ‘prototype‘)
DataX tutorial (09) - how does dataX achieve speed limit?