Message queue multi-cloud adaptation method, device and equipment and readable storage medium

A message queue and multi-cloud technology, applied in the computer field, can solve the problems of reduced efficiency, large manpower consumption, high learning cost, etc., and achieve the effect of flexible adaptation

Pending Publication Date: 2022-05-17
GLODON CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] When migrating to the cloud environment, it is necessary to modify the code of the product line to use the message queue on the new cloud, but modifying the code requires a lot of manpower, resulting in a decrease in efficiency. In addition, although SpringCloud Stream can be used in the existing technology Binder is used to solve cloud environment migration, but using this method has high learning cost, complicated operation, and poor universality

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 multi-cloud adaptation method, device and equipment and readable storage medium
  • Message queue multi-cloud adaptation method, device and equipment and readable storage medium
  • Message queue multi-cloud adaptation method, device and equipment and readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0052] The embodiment of the present invention provides a message queue multi-cloud adaptation method, which is applied to the target object that needs to use the message queue on the cloud, such as figure 1 As shown, the method specifically includes the following steps:

[0053] Step S101: Receive a cloud migration instruction for switching an existing cloud interconnected with the target object to a target cloud.

[0054]Wherein, the cloud migration instruction is used to switch the existing cloud currently used by the target object to the target cloud, and the type of the message queue on the existing cloud is different from the type of the message queue on the target cloud.

[0055] A message queue is a queued carrier that saves messages in the form of queues during message transmission.

[0056] In this embodiment, based on the user's needs, it is necessary to switch from the message queue on the existing cloud to the message queue on the target cloud, and there are diff...

Embodiment 2

[0097] An embodiment of the present invention provides a method for message queue multi-cloud adaptation, including Figure 4 In the shown message-queue-starter software development package (ie, jar package), and the message-queue-starter software development package is used by the caller (equivalent to the target object in Embodiment 1), wherein, the The caller can be a product or a service that needs to send and receive messages. By introducing the message-queue-starter software development kit into the code of the caller and using different configuration file templates, you can switch to use different message queues , the method specifically includes the following steps:

[0098]Step S201: Receive a cloud migration instruction for switching an existing cloud interconnected with the caller to a target cloud.

[0099] Wherein, the cloud migration instruction is used to switch the existing cloud used by the caller to the target cloud, and the type of the message queue on the ...

Embodiment 3

[0144] An embodiment of the present invention provides a message queue multi-cloud adaptation device, such as Figure 7 As shown, it is applied to the target object that needs to use the message queue on the cloud. The device specifically includes the following components:

[0145] A receiving module 701, configured to receive a cloud migration instruction for switching the existing cloud connected to the target object to the target cloud;

[0146] A parsing module 702, configured to parse out the configuration file corresponding to the type of message queue on the target cloud from the cloud migration instruction;

[0147] The configuration module 703 is configured to configure a preset producer template according to the configuration file to obtain a producer instance, and configure a preset consumer template according to the configuration file to obtain a consumer instance;

[0148] The processing module 704 is configured to perform a message processing operation between 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 discloses a message queue multi-cloud adaptation method, device and equipment and a readable storage medium. The method comprises the following steps: receiving a cloud migration instruction for switching an existing cloud butted with a target object to a target cloud; analyzing a configuration file corresponding to the type of the message queue on the target cloud from the cloud migration instruction; configuring a preset producer template according to the configuration file to obtain a producer instance, and configuring a preset consumer template according to the configuration file to obtain a consumer instance; performing a message processing operation between the target object and a message queue on the target cloud through the producer instance and the consumer instance; the method can efficiently and flexibly adapt to various message queues on the cloud under the condition that product codes are not modified.

Description

technical field [0001] The present invention relates to the field of computer technology, and in particular to a message queue multi-cloud adaptation method, device, equipment and readable storage medium. Background technique [0002] With the development of cloud environment service technology, many companies need to connect to private cloud, public cloud or hybrid cloud cloud environment services. Message queues are used in cloud environments. Different types of message queues are deployed on different cloud environments, such as : Alibaba Cloud is RocketMQ, and Huawei Cloud is RabbitMQ. [0003] When migrating to the cloud environment, it is necessary to modify the code of the product line to use the message queue on the new cloud, but modifying the code requires a lot of manpower, resulting in a decrease in efficiency. In addition, although SpringCloud Stream can be used in the existing technology Binder is used to solve cloud environment migration, but using this metho...

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 Applications(China)
IPC IPC(8): H04L67/06H04L67/10H04L67/306
CPCH04L67/10H04L67/306H04L67/06
Inventor 王晓旭黄鹏
Owner GLODON 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