Flow limiting method and system based on long connection message channel

A technology of message channel and current limiting method, which is applied in the field of current limiting based on long connection message channel, which can solve the problems of unable to prevent service crash and client unable to reconnect, so as to reduce the problem of instantaneous high concurrency scene and achieve good current limiting effect Effect

Pending Publication Date: 2022-01-11
GUANGDONG ESHORE TECH
View PDF0 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, it is only limited from the server side. If the service fails, it cannot prevent a large number of clients from rushing in in a short period of time and cause the service to crash again. It will also affect the client's inability to reconnect for a long time

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
  • Flow limiting method and system based on long connection message channel

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0029] The present invention will be further described below in conjunction with the specific embodiments in the accompanying drawings.

[0030] refer to figure 1 , a method for limiting current based on long-connection message channels, including the steps of performing current limiting on the server side according to the current number of connections and the steps of performing current limiting on the client side according to the number of connection failures.

[0031] The steps to limit the flow based on the current number of connections on the server side include:

[0032] Set the initial threshold V of the number of connections degraded on the server side, and the maximum number of connections M allowed to be received; after the server receives the request from the client, it judges whether the server is currently downgraded according to the current number of connections;

[0033] If the current number of connections is less than the initial threshold V, the client’s req...

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 flow limiting method based on a long connection message channel, relates to the technical field of communication, solves the technical problem of service crash caused by access of a large number of clients in a short time. The flow limiting method comprises a step of carrying out flow limiting at a server according to the current connection number and a step of carrying out flow limiting at a client according to the connection failure number. The invention further discloses a flow limiting system based on the long connection message channel. According to the scheme of combining the server and the client, it is preferentially guaranteed that the server obtains a good current limiting effect, and meanwhile the instantaneous high-concurrency scene problem caused by the client is reduced.

Description

technical field [0001] The present invention relates to the technical field of communication, more specifically, it relates to a method and system for current limiting based on a long connection message channel. Background technique [0002] Current limiting technology is a technology used to protect the continuous normal operation of system services by implementing specific algorithms or introducing queues to control concurrent access when high-concurrency system services reach a certain rate or threshold. At present, the current limiting technology is generally realized by means of semaphore, sliding window, counter, etc., and the current limiting can also be achieved by introducing cache, message middleware, etc. [0003] A persistent connection system is generally composed of a client and a server. The client initiates a request to establish a persistent connection to the server, and starts interactive communication after the verification of the server is passed. In sce...

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): H04L47/10H04L67/141H04L41/045
CPCH04L47/10H04L67/141
Inventor 张文洁
Owner GUANGDONG ESHORE TECH
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