Method and device for realizing message queue reconnection, storage medium and device

A message queue and reconnection technology, applied in the computer field, can solve problems such as suspended animation, service connection interruption, service crash, etc.

Pending Publication Date: 2019-05-28
GREE ELECTRIC APPLIANCES INC
View PDF5 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, if the RabbitMQ message queue is directly used in the main business service, due to various reasons such as network instability, the

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
  • Method and device for realizing message queue reconnection, storage medium and device
  • Method and device for realizing message queue reconnection, storage medium and device
  • Method and device for realizing message queue reconnection, storage medium and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0032] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0033] Those skilled in the art can understand that, unless otherwise defined, all terms (including technical terms and scientific terms) used herein have the same meaning as commonly understood by those of ordinary skill in the art to which this invention belongs. It should also be understood that terms, such as those defined in commonly used dictionaries, should be understood to have meanings consistent with the meanings in the co...

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 method and device for realizing message queue reconnection, a storage medium and a device, and the method comprises the steps of executing a preset monitoring coroutine afterthe RabbitMQ connection is successfully established so as to monitor the connection state of the RabbitMQ connection; and when it is monitored that the RabbitMQ connection is in a connection failure state, calling a preset connection establishment program through the monitoring coroutine to reestablish the RabbitMQ connection. The invention provides a mode for realizing the message queue reconnection, so that the normal RabbitMQ connection is kept between the main service and the RabbitMQ service, when the RabbitMQ connection is interrupted or false dead, the automatic recovery of the connection is achieved, and the situation that a message communication mechanism is incomplete and the service processing is affected due to interruption or false dead of the connection is avoided.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a method, device, storage medium and equipment for realizing message queue reconnection. Background technique [0002] At present, the development of microservices is becoming more and more prominent, and the application of message queues that have emerged with it has become more and more popular. rabbitMQ is a messaging middleware based on the AMQP protocol, which can provide reliable message transmission between applications. Excellent performance in ease of use, scalability, and high availability, with a wide range of applications. However, if the RabbitMQ message queue is directly used in the main business service, due to various reasons such as network instability, the connection between the main business service and the RabbitMQ service will be interrupted, resulting in suspended animation and even service collapse. [0003] It can be seen that after the RabbitMQ connec...

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
IPC IPC(8): G06F11/14
Inventor 杨煜豪王沅召赵慧子
Owner GREE ELECTRIC APPLIANCES INC
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