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

Broadcasting method based on real-time message

A real-time message and message technology, applied in electrical components, transmission systems, etc., can solve the problems of large database load, large 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: 2018-04-03
成都萌想科技有限责任公司
View PDF6 Cites 2 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. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present invention.

[0016] The specific steps of a broadcast method based on real-time messages of the present invention are as follows:

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

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

[0019] S3. The client compares the message 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 invention relates to the computer application technology field and especially relates to a broadcasting method based on a real-time message. The method comprises the following steps of S1, in a server side, recording a cursor B of a last message in the server side in a session; S2, in a client side, setting a cursor C of the last message displayed in a chat window into the session; S3, comparing the cursor C of the message with the cursor B of the message of the server side by the client side: when the cursor B is determined not to be equal to the cursor C, and at the same time, a new message is generated on the client side, executing operation of reading the message and pulling the message; and when the cursor B is determined to be equal to the cursor C, and at the same time, the newmessage is not generated on the client side, carrying out nothing on the server side. The method is simple and effective, the newest message can be pulled in real time and a database load is not large, a client demand for message pulling is satisfied, and a problem of the large database load is solved.

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 prior art solution, the client requests the server in real time, and actively obtains the latest information from the server. The principle is as follows: First, the frequency of the information pull method of the client must be high enough to ensure the timeliness of the data. However, the high frequency will cause the system overhead to be very large, and the load on the data will increase. The same piece of code is executed more often in a unit of time and not every time the client pulls the information that is the latest and effective 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, pulling server infor...

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/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