Server, message distribution method and storage medium

A message distribution and server technology, applied in the field of communication, can solve problems such as resource occupation, low system performance, and data loss, and achieve the effects of preventing accumulation, improving system performance, and avoiding disk IO problems

Active Publication Date: 2021-11-02
PING AN TECH (SHENZHEN) CO LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Because the consumer cluster will be occupied by user access threads, some machines consume messages very slowly.
When the message publishing speed is fast, and the slow consumption machine keeps occupying the message queue, the message will always accumulate in the message system, and the message system is prone to disk IO problems, such as insufficient disk space or data loss, etc. poor system performance

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
  • Server, message distribution method and storage medium
  • Server, message distribution method and storage medium
  • Server, message distribution method and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0043] 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. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0044] It should be noted that the descriptions involving "first", "second", etc. in the present invention are only for descriptive purposes, and should not be understood as indicating or implying their relative importance or implicitly indicating the number of indicated technical features . Thus, the features defined as "first" and "second" may explicitly or implicitly include at least one...

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 server, a message distribution method and a storage medium. The method includes: after the business systems of each message consumer access the message system, start a scanning process to check the backlog value and The amount of messages consumed per second is scanned; when the backlog value of the client consumption message queue of the business system is greater than the predetermined threshold, and the ratio of the backlog value of the consumption message queue to the amount of messages consumed per second is greater than the predetermined ratio, the The client of the business system marks as the first client, and sends the marking information to the first client; after receiving the balance request of the first client to reallocate the message queue, control the first client within a predetermined time The connection between the end and the message queue is disconnected, and the message queue is distributed to clients of other business systems that consume the message queue except the first client. The invention can prevent message accumulation and avoid disk IO problems.

Description

technical field [0001] The present invention relates to the technical field of communication, in particular to a server, a message distribution method and a storage medium. Background technique [0002] At present, the message system is becoming more and more popular. The message producer can use the message producer identity to apply for publishing related message topic topics in the message system, and the message consumer consumer can use the message consumer identity to apply for subscription in the message system. Message topic topic. The consumer is generally a cluster of multiple machines that consumes the consumption queue. Because the consumer cluster will occupy resources by user access threads, some machines consume messages very slowly. When the message publishing speed is fast, and the slow consumption machine keeps occupying the message queue, the message will always accumulate in the message system, and the message system is prone to disk IO problems, such a...

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): H04L12/863H04L29/08
CPCH04L47/50H04L67/53
Inventor 詹泽
Owner PING AN TECH (SHENZHEN) 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