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

Message sending method, device, computer equipment and storage medium

A technology for sending messages and computer programs, applied in the Internet field, can solve the problems of poor flexibility in sending messages, and achieve the effect of improving concurrency performance, avoiding concurrency problems, and improving flexibility

Active Publication Date: 2021-04-13
GUANGZHOU SHIYUAN ELECTRONICS CO LTD +1
View PDF9 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Based on this, it is necessary to provide a method for sending messages based on RabbitMQ, a message sending device based on RabbitMQ, computer equipment, and a computer-readable storage medium for the technical problem of poor flexibility in sending messages in traditional technologies

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
  • Message sending method, device, computer equipment and storage medium
  • Message sending method, device, computer equipment and storage medium
  • Message sending method, device, computer equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0021] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0022] The RabbitMQ-based message sending method provided by the embodiment of the present invention can be applied to such as figure 1 In the application scenario shown, figure 1 It is an application scenario diagram of a message sending method based on RabbitMQ in an embodiment, wherein, the producer 110 can send messages to the consumer through the message queue 120, and for the same service, generally multiple nodes are deployed through the consumer cluster 130 to Listen to a message queue 120 of RabbitMQ to consume messages sent by the producer 110, and RabbitMQ provides a polling mechanism t...

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 present invention relates to a message sending method, device, computer equipment and storage medium based on RabbitMQ. The method includes the steps of: receiving a message and a queue identifier sent by a production end, and then determining a message corresponding to the queue identifier from a plurality of pre-declared message queues. The corresponding message queue can then deliver the message that the producer needs to send to the message queue, and send the message to a consumer bound to the message queue through the message queue, so that the consumer can process the message sent by the producer message, so that the producer can set the corresponding queue ID according to the actual needs and send the message to a specific consumer for processing, so that all operations of the producer can hit the specified consumer, avoiding the message of the producer from being polled and sent to Processing by multiple consumer ends improves the flexibility of message sending, and only needs to shackle messages on one consumer end to avoid concurrency problems and improve concurrency performance.

Description

technical field [0001] The present invention relates to the technical field of the Internet, in particular to a RabbitMQ-based message sending method, a RabbitMQ-based message sending device, computer equipment, and a computer-readable storage medium. Background technique [0002] RabbitMQ is a message middleware that follows the AMQP protocol. It receives messages from the producer and sends them to the consumer. During the message delivery process, the messages are routed, cached, and persisted according to the rules set by the producer. [0003] When the traditional technology uses RabbitMQ to send messages from the production end to the consumer end, for the same service, the consumer end cluster will deploy multiple consumer end nodes to monitor the message queue corresponding to the service in RabbitMQ, and then RabbitMQ will take turns to The polling method sends the messages in the message queue to each consumer in turn, but the technical flexibility of sending messa...

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 Patents(China)
IPC IPC(8): G06F9/54
Inventor 林锡鑫
Owner GUANGZHOU SHIYUAN ELECTRONICS CO LTD
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