Redis-based distributed lock repeat notification solving method

A distributed lock and notification message technology, which is applied in the field of data processing, can solve problems such as repeated message consumption, misunderstandings and disputes, and respond to message queues, achieving the effect of solving repeated message consumption and ensuring stability
CN112463403APending Publication Date: 2021-03-09银盛支付服务股份有限公司

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
银盛支付服务股份有限公司
Publication Date
2021-03-09

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
Patent Text Reader

Abstract

The invention provides a Redis-based distributed lock repeat notification solving method. The method comprises the following steps: S1, adopting a Redis set as a filter; s2, storing the message ID, judging whether the ID value of the message ID is an integer or not by Redis internal storage, and storing the message ID in a Redis set; s3, checking whether the messages are repeated or not; s4, informing a message queue. A Redis set is adopted as a filter, a message ID is stored in the Redis set, whether the message is repeated or not is judged by checking whether the message ID exists in the Redis set or not, a message queue is informed that the message is processed for the repeated message, the message does not need to be informed again, the effect that the message queue cannot repeatedly inform the same message is achieved, and therefore, the problem of repeated consumption of messages is solved.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The present invention relates to the field of data processing, and specifically, the present invention relates to a method for solving repeated notification based on Redis distributed locks. Background technique

[0002] There will be requirements for asynchronous data processing or data batch processing between application systems, such as asynchronous notification of transaction results, asynchronous processing of large data file generation, data communication between operating systems and customer systems, etc. One of the solutions is The message queue is used as the transmission medium to realize asynchronous data transmission.

[0003] Normally, after the message queue receives the message, it will push it to the message consumer as low as possible in a timely manner. The consumer fetches the data from the message queue. After receiving the confirmation response from the message consumer within the specified response time , the message queue will...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More