MQ load balancing method, device and equipment and storage medium

A load balancing and load balancing technology, applied in the field of communication, can solve the problems of poor message load balancing, inability to guarantee the availability of business servers, and order of concurrent performance messages, and achieve availability, order, and load. balanced effect

Inactive Publication Date: 2021-02-09
G NET INTEGRATED SERVICE
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, there are the following defects: when multiple business servers are used as message consumer instances to access the message engine through a proxy server, the message load balancing effect is not good, and the availability, concurrency performance, and orderliness of messages within the business scope cannot be guaranteed. sex

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
  • MQ load balancing method, device and equipment and storage medium
  • MQ load balancing method, device and equipment and storage medium
  • MQ load balancing method, device and equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0045] figure 1 A schematic flow diagram of an MQ load balancing method provided by an embodiment of the present invention, such as figure 1 As shown, the method includes:

[0046] S101. Establish a message queue according to business needs, wherein the message queue includes messages of the same conference;

[0047] Among them, such as figure 2 As shown, the front-end proxy module (mq-proxy) creates a message queue for each type of business according to the needs of the business during initialization. Each type of business creates multiple message queues, and the number of message queues for each type of business can be configured as needed.

[0048] Specifically, mq-proxy, as a consumer of messages, consumes messages sent to each business type from the message engine, and puts the messages into the message queue created when mq-proxy is initialized according to the business to which the messages belong. Ensure that the messages of the same meeting can be put into the sa...

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 provides an MQ load balancing method, device and equipment and a storage medium, and belongs to the technical field of communication. The method comprises the following steps: establishing a message queue according to service requirements, wherein the message queue comprises messages of a same conference; and carrying out load balancing according to the number of service servers andthe size of a set formed by the plurality of message queues, and storing the message queues in the service servers. According to the method provided by the invention, the message queue is establishedaccording to the service requirement to ensure the orderliness of the messages, and the set load balancing algorithm can fully ensure the availability of the service server.

Description

technical field [0001] The present invention relates to the technical field of communication, and in particular to an MQ load balancing method, device, equipment and storage medium. Background technique [0002] The cloud conference platform is a distributed software system that uses various business components in the system to provide business services to customers, such as audio servers, video servers, etc., and each service component mainly communicates through the message engine (RocketMQ). At present, by setting a front-end proxy (mq-proxy) in rocketMQ, it is used to connect the c / c++ service in the cloud conference system to the message engine system. However, there are the following defects: when multiple business servers are used as message consumer instances to access the message engine through a proxy server, the message load balancing effect is not good, and the availability, concurrency performance, and orderliness of messages within the business scope cannot be ...

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 & AuthorityApplications(China)
IPC IPC(8): G06F9/54G06F9/50G06Q10/10
CPCG06F9/5027G06F9/5083G06F9/546G06F2209/548G06Q10/1095
Inventor白志新
OwnerG NET INTEGRATED SERVICE