Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A real-time message-based broadcasting method

A real-time message and message technology, applied in transmission systems, electrical components, etc., can solve the problems of large database load, high server overhead, and uncontrollable speed of server pulling messages, so as to solve the problem of large load and satisfy message pulling. the effect of demand

Active Publication Date: 2021-04-02
成都萌想科技有限责任公司
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Therefore, the present invention proposes a broadcasting method based on real-time messages, which is used to solve the problem that the existing technology has a large overhead on the server, the database load is too large, and the speed of pulling messages from the server is uncontrollable.

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0015] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the embodiments of the present invention. Apparently, the described embodiments are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0016] A kind of broadcasting method based on real-time message of the present invention, its concrete steps are as follows:

[0017] S1. On the server side, record the cursor B of the last message on the server side into the session;

[0018] S2. In the client, the cursor C of the last message displayed in the chat window is also set in the session; if a user sends a message in the client, the cursor B of the last message is updated.

[0019] S3. The client compares the cursor C...

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 present invention relates to the technical field of computer application, and specifically relates to a broadcasting method based on real-time messages. The specific steps are as follows: S1, on the server side, record the cursor B of the last message on the server side into the session; S2, on the client side In the client, the cursor C of the last message displayed in the chat window is also set in the session; S3. The client compares the cursor C of the message with the cursor B of the message on the server: when it is judged that cursor B is not equal to cursor C, At this time, the client has new information, and then executes the operation of reading the message to pull out the message; when it is judged that the cursor B is equal to the cursor C, and the client does not generate a new message at this time, no operation is performed on the server. This method is simple and effective, and can pull the latest news in real time without causing a heavy database load, which not only meets the client's demand for message pulling, but also solves the problem of heavy load on the database.

Description

technical field [0001] The present invention relates to the field of computer application technology, in particular to a broadcasting method based on real-time messages. Background technique [0002] In the existing technical solution, the client requests the server in real time and actively obtains the latest news from the server. The principle is as follows: firstly, the frequency of the information pulling method of the client must be high enough to ensure the timeliness of the data. However, a high frequency will cause a very large system overhead, and the load on the data will increase. The number of executions of the same piece of code per unit time will increase, and not every time the information pulled by the client is the latest and valid content. , the frequency of pulling information may be higher than the update frequency of server messages, which reduces the effective probability of pulling and leads to an increase in network traffic. On the other hand, low fre...

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): H04L29/08
CPCH04L67/14H04L67/566
Inventor 李伟王承明刘冬
Owner 成都萌想科技有限责任公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products