Message sending method and device, computer device and storage medium

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

Active Publication Date: 2019-06-14
GUANGZHOU SHIYUAN ELECTRONICS CO LTD +1
View PDF9 Cites 20 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, compu

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 and device, computer device and storage medium
  • Message sending method and device, computer device and storage medium
  • Message sending method and device, computer device 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 invention relates to a message sending method and device based on RabbitMQ, a computer device and a storage medium. The method comprises the following steps of receiving a message and a queue identifier sent by a production end, determining a message queue corresponding to the queue identifier from a plurality of message queues declared in advance; then, delivering the messages needing to be sent by the production end to the message queue; and sending the message to a consumer side bound with the message queue through the message queue, so that the consumer end can process the message sentby the production end, the production end can set the corresponding queue identifier according to the actual demand to send the message to the specific consumption end for processing; all operationsof the production end can hit the specified consumption end, thereby preventing the message of the production end from being polled and sent to a plurality of consumption ends for processing, improving the flexibility of message sending, being able to avoid the concurrency problem only by locking the message on one consumption end, and improving the 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
IPC IPC(8): G06F9/54
Inventor 林锡鑫
Owner GUANGZHOU SHIYUAN ELECTRONICS CO LTD
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