Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Batch message queue verification method, electronic equipment and medium

A technology of message queue and verification method, applied in the direction of program control design, generation of response errors, electrical digital data processing, etc., can solve the problems of information transmission loss, downtime, high CPU pressure on downstream systems, etc., to simplify the complexity. , avoid excessive pressure, reduce the effect of development

Pending Publication Date: 2021-12-14
携程科技(上海)有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] Within modern enterprises and between enterprises, different systems will coordinate with each other and transmit data. At the current stage, the mechanism for consuming message queues is that the upstream system pushes one by one and the downstream system receives one by one. However, due to network jitter Or host failure and other reasons, information transmission may be lost or out of order
[0003] At the present stage, when enterprises deal with batch message data, they will receive and store all the messages in the system, and then extract the required data from the system internally. However, there are resource methods: when the amount of data in the upstream system is too large or When there are too many batches of data, the CPU pressure of the downstream system is too high, and there may even be a downtime during the peak period. The unified retrieval operation cannot achieve quasi-real-time performance, and can only be pre-agreed between the upstream and downstream systems Take out the unified data at a good time point, and then make batch judgments

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
  • Batch message queue verification method, electronic equipment and medium
  • Batch message queue verification method, electronic equipment and medium
  • Batch message queue verification method, electronic equipment and medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0034] see figure 1 , this embodiment provides a verification method for batch message queues. The verification method includes the following steps:

[0035] Step S1: The upstream system sends the message queue to the downstream system, and the message queue has a version number;

[0036] Step S2: The downstream system accepts the message queue;

[0037] Step S3: the downstream system checks the message queue;

[0038] In the step S1, when the message queue sent by the upstream system is the last message queue in several message queues with the version number, the last message queue includes a last flag bit and a message batch quantity field ;

[0039] In the step S2, the downstream system extracts the message queue with the version number into the database, identifies and counts the version number, and establishes a set corresponding to the version number in the database , storing the message queue with the version number in the set;

[0040] When the downstream system ...

Embodiment 2

[0072] image 3 A schematic structural diagram of an electronic device provided in this embodiment. The electronic device includes a memory, a processor, and a computer program stored in the memory and operable on the processor. The processor implements the method for batch message queue in Embodiment 1 when executing the program. image 3 The electronic device 30 shown is only an example, and should not limit the functions and scope of use of the embodiments of the present invention.

[0073] Such as image 3 As shown, electronic device 30 may take the form of a general-purpose computing device, which may be a server device, for example. Components of the electronic device 30 may include, but are not limited to: at least one processor 31 , at least one memory 32 , and a bus 33 connecting different system components (including the memory 32 and the processor 31 ).

[0074] The bus 33 includes a data bus, an address bus, and a control bus.

[0075] The memory 32 may include...

Embodiment 3

[0081] This embodiment provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the steps of the method for verifying a batch message queue in Embodiment 1 are implemented.

[0082] Wherein, the readable storage medium may more specifically include but not limited to: portable disk, hard disk, random access memory, read-only memory, erasable programmable read-only memory, optical storage device, magnetic storage device or any of the above-mentioned the right combination.

[0083] In a possible implementation manner, the present invention can also be implemented in the form of a program product, which includes program code, and when the program product runs on the terminal device, the program code is used to make the terminal device execute Steps of the method for processing data skew in Embodiment 1.

[0084] Wherein, the program code for executing the present invention can be written in any combinatio...

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 discloses a batch message queue verification method, electronic equipment and a medium, and is characterized in that the verification method comprises the following steps that: S1, an upstream system sends a message queue to a downstream system, the message queue has a version number, S2, the downstream system receives the message queue, and S3, the downstream system verifies the message queue. According to the method, the upstream system is prevented from sending information item by item and the downstream system is prevented from consuming information item by item, all message queues are prevented from being taken out at the same time, the use amount of a CPU (Central Processing Unit) is reduced, the risk of the system is reduced, the complexity of the system is also reduced, the code development of the system is facilitated, and the generalizability is enhanced.

Description

technical field [0001] The invention belongs to the field of information technology, and in particular relates to a method for checking batch message queues, electronic equipment and media. Background technique [0002] Within modern enterprises and between enterprises, different systems will coordinate with each other and transmit data. At the current stage, the mechanism for consuming message queues is that the upstream system pushes them one by one and the downstream system receives them one by one. However, due to network jitter Or host failure and other reasons, information transmission may be lost or out of sequence. [0003] At the present stage, when enterprises deal with batch message data, they will receive and store all the messages in the system, and then extract the required data from the system internally. However, there are resource methods: when the amount of data in the upstream system is too large or When there are too many batches of data, the CPU pressur...

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/54G06F11/07
CPCG06F9/546G06F11/0709G06F2209/548
Inventor 邵佳文
Owner 携程科技(上海)有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products