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

Pending Publication Date: 2021-03-09
银盛支付服务股份有限公司
View PDF0 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, in the existing technology, in many scenarios, the message processing logic of the consumer is often more complicated. In many cases, the consumer may need to perform CRUD database operations, or may call remote interfaces such as the operator’s SMS interface, or the consumer’s Machine performance issues of physical machines, etc., to fulfill business requirements
In this case, the consumer's confirmation response cannot respond to the message queue within the specified response time, and the message queue will think that the other party has not received the message and push it to the consumer again. At this time, the problem of repeated message consumption will occur
For example, asynchronous notification of transaction results: when a 1 yuan transaction occurs in system A, system A notifies system B of the transaction result through the message queue, and system B is responsible for notifying users and merchants. System B is the consumer. If the processing is slow and exceeds Responding to the message queue without specifying the response time, there will be a problem of repeated message consumption. At this time, the user and the merchant will receive two 1 yuan transaction results, which will cause unnecessary misunderstandings and disputes

Method used

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
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Redis-based distributed lock repeat notification solving method
  • Redis-based distributed lock repeat notification solving method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0019] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.

[0020] The idea, specific structure and technical effects of the present invention will be clearly and completely described below in conjunction with the embodiments and accompanying drawings, so as to fully understand the purpose, features and effects of the present invention. Apparently, the described embodiments are only some of the embodiments of the present invention, rather than all of them. Based on the embodiments of the present invention, other embodiments obtained by those skilled in the art without creative efforts belong to The protection scope of the present invention. In addition, all the connection / connection relationships involved in the patent do not simply refer to the direct connection of components, but mean that a better connection structure can be formed by adding or reducing connection accessories according to specific implementat...

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

PUM

No PUM Login to view more

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.

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

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/54G06F16/242G06F16/2455
CPCG06F9/546G06F2209/548G06F16/242G06F16/2455
Inventor 陈思达吴海波郭勇郭倩邬伟林
Owner 银盛支付服务股份有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products