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

A method, device and storage medium for sending and consuming mq messages

A message and message receiving technology, which is applied in the computer field, can solve the problems of message content leakage, waste of limited resources by switching Mq framework, and difficult maintenance work, so as to achieve the effect of ensuring security

Active Publication Date: 2022-07-01
珠海市卓轩科技有限公司
View PDF10 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Usually, the message sender and message receiver belong to different microservices. In actual use, in order to ensure that the target microservice that consumes the message corresponds to the target microservice that the sender sends the message, the existing operation is, for each Each set of microservices creates a new topic and queue. When more and more microservices participate in message sending and receiving, multiple topics and queues need to be created. Because each topic and queue need to be declared and bound on the cloud server Each topic and queue must be configured in the configuration center according to different microservice environments. When there are more and more topics and queues, the maintenance work becomes more and more difficult. Based on the existing operation method, When there are more and more topics and queues, switching the Mq framework becomes more time-consuming and wastes limited resources. At the same time, based on the existing encryption method, when there are more and more topics and queues , the message may be acquired by other environments during the delivery process and cause the risk of leaking the content of the message

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
  • A method, device and storage medium for sending and consuming mq messages
  • A method, device and storage medium for sending and consuming mq messages
  • A method, device and storage medium for sending and consuming mq messages

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0026] The following describes in detail the embodiments of the present invention, examples of which are illustrated in the accompanying drawings. The embodiments described below with reference to the accompanying drawings are exemplary, only used to explain the present invention, and should not be construed as a limitation of the present invention.

[0027] In the description of the present invention, the meaning of several is one or more, the meaning of multiple is two or more, greater than, less than, exceeding, etc. are understood as not including this number, above, below, within, etc. are understood as including this number . If it is described that the first and the second are only for the purpose of distinguishing technical features, it cannot be understood as indicating or implying relative importance, or indicating the number of the indicated technical features or the order of the indicated technical features. relation.

[0028] Terminology Explanation:

[0029] M...

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 the technical field of computers, and discloses a method, a device and a storage medium for sending and consuming MQ messages, and specifically discloses a method for sending and consuming MQ messages, which includes a sending step and a receiving step. The sending step includes: based on a service Build a message model; configure field parameters for the message model and send it through the sdk after encryption; the receiving step includes: initializing the message receiving component, decrypting the message model, and comparing whether the field parameters in the message model are consistent with the target field parameters of the current message receiving component, if If it is consistent, ack is returned to the sender, and the message consumption is successful. The present invention has at least the following beneficial effects: it can automatically identify and switch to the currently used message queue framework, can automatically identify and match the target microservice for message sending and the microservice for message consumption, improve the efficiency of message transmission and save resources, and ensure that Security of messaging.

Description

technical field [0001] The present invention relates to the field of computer technology, and in particular, to a method, device and storage medium for sending and consuming MQ messages. Background technique [0002] At present, asynchronous messages are widely used in business middle-end architecture, mainly for asynchronous decoupling, traffic peak shaving, cache synchronization, distributed transaction messages, etc. Usually, the message sender and the message receiver belong to different microservices. In actual use, in order to ensure that the target microservice that consumes the message corresponds to the target microservice that the sender sends the message, the existing operation is, for each Each set of microservices creates a new topic and queue. When more and more microservices participate in message sending and receiving, multiple topics and queues need to be created. Since each topic and queue need to be declared and bound on the cloud server and each topic an...

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): H04L47/62H04L47/24H04L9/06H04L1/16
CPCH04L47/6245H04L47/24H04L9/0618H04L1/1607
Inventor 李珂辰何伟高智意
Owner 珠海市卓轩科技有限公司