Distributed high concurrent real-time message pushing method and system

A real-time message, distributed technology, applied in transmission systems, electrical components, etc., can solve problems such as high server and browser resource overhead, long delay time for pushing data, and poor scalability.

Active Publication Date: 2018-08-10
成都博点科技有限公司
View PDF5 Cites 18 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] At present, the web real-time push technology mainly adopts two methods, one is to use the http polling method, which mainly uses the browser XHR technology to regularly send http requests to the web server, and re-renders the user according to the results returned by the web server Interface, in order to achieve the purpose of data refresh, so as to achieve the effect of instant push, but this method has many serious defects, such as long delay time for pushing data, relatively large server and browser resource overhead, and the existence of transmitted data volume. Bottlenecks, etc.; Another way is to use a separate websocket server to transmit data. This method is to build a separate websocket server, and then all websocket connections request the server, so that all websockets are connected to the server, so that Only need to manage a single websocket server to realize the distribution of messages to all users. This method results in poor scalability. When there are too many users, user partitions need to be isolated, and the load of the server has not been exceeded.

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
  • Distributed high concurrent real-time message pushing method and system
  • Distributed high concurrent real-time message pushing method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0067] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of 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.

[0068] Such as figure 1 As shown, it is a flow chart of Embodiment 1 of a distributed high-concurrency real-time message push method disclosed by the present invention. The method includes:

[0069] S101. Establish a message connection between the first user and the web server;

[0070] When a message needs to be pushed through the web server, a message connection between the first user and the web server is firstly established. Wherein, the first user is th...

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 a distributed high concurrent real-time message pushing method and a distributed high concurrent real-time message pushing system. The method comprises the steps of building a message connection between a first user and a web server, receiving a message sent by a second user to the web server after the second user logs in a web, verifying whether the message is valid, if no,ending an illegal access, if yes, performing high speed concurrent treatment on redis data, and performing kafka partition message treatment; synchronously consuming a kafka message via the web servers, and synchronously pushing same data via the multiple web servers to corresponding grouped users of a websocket connection, and receiving the message sent by the web server via the first user. According to the method and system provided by the invention, the retardance of the websocket instant messaging under the high concurrent scene can be reduced, and the expandability of the same can be improved.

Description

technical field [0001] The invention belongs to the technical field of message processing, and in particular relates to a distributed high-concurrency real-time message push method and system. Background technique [0002] At present, the web real-time push technology mainly adopts two methods, one is to use the http polling method, which mainly uses the browser XHR technology to regularly send http requests to the web server, and re-renders the user according to the results returned by the web server Interface, in order to achieve the purpose of data refresh, so as to achieve the effect of instant push, but this method has many serious defects, such as long delay time for pushing data, relatively large server and browser resource overhead, and the existence of transmitted data volume. Bottlenecks, etc.; Another way is to use a separate websocket server to transmit data. This method is to build a separate websocket server, and then all websocket connections request the serve...

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): H04L29/06H04L29/08
CPCH04L63/12H04L67/02H04L67/141H04L67/145H04L67/55
Inventor 李杰戴上静
Owner 成都博点科技有限公司
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