Unlock instant, AI-driven research and patent intelligence for your innovation.

Message queue system and method for realizing message communication

A message queue and message technology, applied in the computer field, can solve the problems that messages cannot be delivered to message consumers normally, memory does not support simultaneous read/write operations, and affects the real-time performance of message transmission, etc., so as to ensure reliability , Guarantee real-time performance and improve real-time performance

Active Publication Date: 2020-12-25
ALIBABA GRP HLDG LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] In order to solve the above technical problems, the embodiment of the present application provides a message queuing system and a method for realizing message communication, so as to solve the problems in the prior art that the real-time transmission of messages in the message queuing system is affected because the memory does not support simultaneous execution of read / write operations. sexual problems
In addition, it further solves the problem in the prior art that overflowed messages cannot be normally delivered to message consumers due to memory overflow in the message queue system

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 queue system and method for realizing message communication
  • Message queue system and method for realizing message communication
  • Message queue system and method for realizing message communication

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0050]Refer tofigure 1 As shown,figure 1 It schematically shows exemplary application scenarios in which the embodiments of the present invention may be implemented. Among them, there is a message producer 10 and a message consumer 20 on the server. When the message producer 10 communicates with the message consumer 20, the message producer 10 pushes the message 21 to the message queue system 30, and the message queue The system 30 is responsible for delivering the message 21 to the message consumer 20. In addition, to ensure the reliability of the message 21, the message queuing system 30 also needs to store the message 21 pushed by the message producer 10 in a persistent storage medium, such as a local disk on the server. Among them, "delivery" can be expressed in two modes, "push" and "pull". In the "push" mode, the message queue system 30 actively pushes the message 21 to the message consumer 20, and the "pull" mode It is the message consumer 20 that actively pulls the message 2...

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

Provided are a message queuing system and a method of realizing message communication. The system comprises: a first buffer area (21), a second buffer area (22) and a persistent storage (23). The first buffer area (21) and the second buffer area (22) are located in a memory of a server in which a message producer and a message consumer are located. The second buffer area (22) comprises a primary buffer area (221) and a secondary buffer area (222). The first buffer area (21) is configured to buffer a message pushed by the message producer, store the message in the persistent storage (23), and send the message stored in the persistent storage (23) to the second buffer area (22). The persistent storage (23) is configured to persistently store the message sent by the first buffer area (21). The secondary buffer area (222) is configured to buffer the message sent by the first buffer area (21). The primary buffer area (221) is configured to deliver the message therein to the message consumer, and after all of the messages is delivered to the message consumer, perform primary-secondary switching with the secondary buffer area (222). The system improves the real-time performance of message transmission in the message queuing system.

Description

Technical field[0001]This application relates to the field of computers, in particular to a message queue system and a method for realizing message communication.Background technique[0002]In computer systems, message queues are an important way to achieve communication between different processes or between different threads in the same process. In other words, different processes or different threads complete the message transmission in the message queue.[0003]In the existing related technologies, there have been a variety of implementation solutions for the message queue system. One of the solutions is that the message queuing system consists of a buffer area on the server where the process (or thread) is located and a local disk. Among them, the message pushed by the message producer is first stored in the cache area, and when the number of messages in the cache area reaches the configured value or the publishing time of the message exceeds the threshold, the messages in the cach...

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
CPCG06F9/54
Inventor 张俊何乐张杰
Owner ALIBABA GRP HLDG LTD