CN104954446A - Message pushing method and system - Google Patents

Message pushing method and system Download PDF

Info

Publication number
CN104954446A
CN104954446A CN201510284553.9A CN201510284553A CN104954446A CN 104954446 A CN104954446 A CN 104954446A CN 201510284553 A CN201510284553 A CN 201510284553A CN 104954446 A CN104954446 A CN 104954446A
Authority
CN
China
Prior art keywords
message
client
numbering
service end
response
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510284553.9A
Other languages
Chinese (zh)
Other versions
CN104954446B (en
Inventor
刘鹏瑞
李东平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
CHINAETEK SERVICE & TECHNOLOGY Co Ltd
Original Assignee
CHINAETEK SERVICE & TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by CHINAETEK SERVICE & TECHNOLOGY Co Ltd filed Critical CHINAETEK SERVICE & TECHNOLOGY Co Ltd
Priority to CN201510284553.9A priority Critical patent/CN104954446B/en
Publication of CN104954446A publication Critical patent/CN104954446A/en
Application granted granted Critical
Publication of CN104954446B publication Critical patent/CN104954446B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services

Abstract

The invention relates to a message pushing method and system. The method includes the steps: acquiring a message, numbering the message to obtain a numbered message according to a chronological order; acquiring a client from a pre-stored client list; sending the numbered message to the client; allowing the client to receive the numbered message and make a reply; allowing the client to reply to the first and the last numbered messages when multiple numbered messages are needed to be sent. The message pushing method and system have the advantages that the arrival rate of messages is ensured, the problem of inefficiency caused by mandatorily answering to every message is solved, the goal that the messages are sent to clients efficiently is achieved, the client can read off-line messages when on line, and each message is deleted after replying so that messages processed by other clients cannot be received as off-line messages by the client.

Description

Information push method and system
Technical field
The present invention relates to network communication technology field, be specifically related to a kind of information push method and system.
Background technology
Mobile Internet is the epoch-making industry that the world today is with fastest developing speed, market potential is maximum, prospect is the most tempting, changes life and the working method the Internet of people just gradually.Mobile Internet and the maximum characteristic not being both movement of conventional internet industry, and one of message push most important function that is Mobile solution realize mobile service transmission of information is to the best way of effective customers in real time, exactly.
In prior art, the common pattern of message push has: (1) " network propagation ", can think the application and development of broadcast mode in the Internet.This pattern promptness is good, and information source pushes the dynamic message of continuous renewal in time to user.Because use broadcast mode identical message only need send a piece of news, booking reader all receives message.(2) "-response is sent ": this pattern is for customization demand, message sends to designated user, and in order to determine that message arrives, after needing client to receive the message of service end " response ", advertise service end message authentication arrives, otherwise service end can resend this message again.
" network propagation " does not have specific aim, whether promptly and accurately arrives designated user and does not ensure, can not meet the customization of Customer Personality demand to PUSH message, and can not guarantee that message is in the accurate arrival of special circumstances and resend." sending-response " all needs the process of " transmission-wait acknowledge-response " to each message, when needing when there being multiple messages to send, message transmitting efficiency is low, can not push the dynamic message of continuous renewal in time to user.
Summary of the invention
Technical problem to be solved by this invention is the arrival client how realizing message precise and high efficiency.
For this purpose, the present invention proposes a kind of information push method, the method comprises: obtain message, and obtain numbering message according to time order and function to described message numbering;
Client is obtained from the client side list prestored;
Described numbering message is sent to described client;
Described client receives described numbering message and makes response;
When needing when there being many numbering message to send, described client makes response to Article 1 and the last item numbering message.
Preferably, described client receives described numbering message and makes response and also comprises: record receives the timestamp of described numbering message.
Preferably, describedly also to comprise after described client sends described numbering message:
Described client nonreply, described message marking is deferred information by service end;
When described client is reached the standard grade again, described client obtains local time stamp, and goes described service end to read described deferred information according to the described timestamp accepting message, and makes response.
Preferably, the method also comprises: if the timestamp of described receipt message is for empty, described client reads all described deferred informations.
Preferably, described client also comprises after reading described deferred information:
Be online by status modifier, no longer read deferred information.
Preferably, after described acquisition message, described message is kept in the buffer memory of service end.
Preferably, described client receives described numbering message and also comprises after making response: service end deletes the message after described response.
On the other hand, present invention also offers a kind of message push system, this system comprises: service end and client;
Described service end is connected with described client communication;
Described service end obtains message, and to be numbered described message according to time order and function and to obtain numbering message; Described service end obtains client from the client side list prestored; Described service end sends described numbering message to described client by number;
Described client receives described numbering message and makes response;
When described client has received multiple messages, described client makes response to Article 1 and the last item message.
Preferably, described client comprises timestamp record cell, and described timestamp record cell receives the timestamp of described numbering message for recording.
Preferably, described service end comprises message and sends record cell, and described message sends record cell for after the message after described service end sends described numbering to described client by number, records the response status of described client; If described client nonreply, the message marking after described numbering is deferred information by described service end;
Described client comprises message reading unit, described message reading unit is used for when described client is reached the standard grade again, obtain local time stamp, and go described service end to read described deferred information according to the described timestamp receiving the message after numbering, and make response.
By adopting information push method disclosed in this invention and system, no longer reply one by one for every bar message, when client receives multiple messages, only response is made to Article 1 and the last item message, response Article 1 message is in order to represent that client is online, the message that response the last item message table is shown in before the last item message receives all, not only ensured the arrival rate of message but also solved every bar message and must reply and bring inefficiency problem, having achieved the object that message precise and high efficiency arrives client; This external client can read deferred information when next time reaches the standard grade time not online, every bar message all confirms to reply rear deletion, so information off-line can not be received as by client in the information of other client process, such when having ensured that user message is online message also can not lose, the message received can not repeat to accept, not only user-friendly, can also data transmission resources be saved.
Accompanying drawing explanation
Can understanding the features and advantages of the present invention clearly by reference to accompanying drawing, accompanying drawing is schematic and should not be construed as and carry out any restriction to the present invention, in the accompanying drawings:
Fig. 1 shows the schematic flow sheet of multiple messages method for pushing of the present invention;
Fig. 2 shows the schematic diagram of multiple messages answering of the present invention;
Fig. 3 shows the schematic flow sheet that client online message of the present invention pushes process;
Fig. 4 shows the schematic flow sheet of client off-line message push process of the present invention.
Embodiment
Below in conjunction with accompanying drawing, embodiments of the present invention is described in detail.
The flow chart of multiple messages method for pushing of the present invention as shown in Figure 1, the method comprises: obtain message, and obtain numbering message according to time order and function to described message numbering; Client is obtained from the client side list prestored; Described numbering message is sent to described client; Described client receives described numbering message and makes response; When needing when there being many numbering message to send, described client makes response to Article 1 and the last item numbering message.Launch to describe in detail to multiple messages method for pushing provided by the invention below in conjunction with specific embodiment.
Embodiment 1
As Fig. 1,2, shown in 3, information push method of the present invention comprises the steps:
1) service end obtains message, message is preserved in the buffer after obtaining message by service end, this message is recorded in the effect of buffer memory, then message is numbered according to time order and function and obtains numbering message (such as according to time order and function order, number consecutively is 100,101,102,103 ..., N), numbering message ensures the order of message, and mass-sending pattern adopts same flow process;
2) service end obtains client from the client side list prestored.Particularly, service end obtains the client-side information (such as IP, mobile terminal tokey etc.) in the client side list prestored.Obtain when client side list is generally initially installed by client, can client side list be upgraded when client changes.3) client is monitored local port (such as 12010 ports or 12011 ports) by socket (encapsulation and application to ICP/IP protocol) and has been judged whether that service end comes to be connected;
3) service end sends the Article 1 message in numbering message to client;
4) client receives Article 1 message, and record receives the timestamp of Article 1 message.After message sink, client makes response to service end to Article 1 message, and response content can for the numbering (such as 100) of numbering message be currently received.Timestamp is for recording the normal time of reception of current receipt message;
5), if service end only sends a piece of news, after service end receives the response to the message received of client, service end deletes the message received in buffer memory;
6) if service end has multiple messages to need to send, after service end receives the response to the message received of client, service end sends other numbering message successively to client, and marks the last item message;
7) client receives other numbering message sent successively, and according to marker for judgment the need of response, record receives every message numbering of bar message and the timestamp of message;
8) client receives the last item message, and record receives the timestamp of the last item message, response message, and response content can be the message numbering of the last item message, and such as 104;
9) service end receives the message numbering of response, and according to message numbering, in deletion buffer memory, Article 1 is to all message of the last item;
10) in Preset Time, if client does not make response to the last item message, service end sends all message in numbering message again.Until client makes response to the last item message, service end deletes all message received in buffer memory.
Embodiment 2
As shown in Figure 4, when reaching the standard grade again after client off-line, information push method step is as follows:
1) service end obtains message, message is preserved in the buffer after obtaining message by service end, this message is recorded in the effect of buffer memory, then message is numbered according to time order and function and obtains numbering message (such as according to time order and function order, number consecutively is 100,101,102,103 ..., N), numbering message ensures the order of message, and mass-sending pattern adopts same flow process;
2) service end obtains client from the client side list prestored;
3) service end sends the Article 1 message in numbering message to client;
4) client nonreply, represent that client is not online, numbering message marking is deferred information by service end;
5) when client is connected with service end again, obtain the local time, according to the timestamp of last receipt message, the request of reading deferred information is sent to service end, service end is according to the timestamp of last receipt message and the deferred information in storing, according to the numbering of deferred information, according to the time order and function of numbering, one by one deferred information is returned to client, client reads deferred information, make response to the Article 1 of deferred information and the last item message, response content is preferably the message numbering of Article 1 and the last item message; If not free stamp, then client reads all deferred informations, makes response;
6), after client receives deferred information, be online by status modifier, represent that all deferred informations have accepted complete.Client no longer initiatively reads deferred information;
7) service end receives response, deletes deferred information received in buffer memory.
Wherein, service end transmission deferred information is identical with the interface that service end sends a message to client to the interface of client.
Wherein, the message of transmission adopts unified communication protocol, that is: the message data of transmission adopts unified data encapsulation form, and the data encapsulation form defined is as shown in table 1:
Table 1 data encapsulation form shfft
Type MsgID Length Data
In table one, Type represents the type of message, and MsgID represents the sequence number of message, and Length represents data packet length, and Date is exactly the content of message bag.
Wherein, Type takies two bytes, and the type of message comprises: send message, response message; MsgID takies 4 bytes; Length takies 4 bytes.
Embodiment 3
The present invention provides a kind of message push system on the other hand, comprising: service end and client; Described service end is connected with described client communication; Described service end obtains message, message is preserved in the buffer, and to be numbered described message according to time order and function and to obtain numbering message; Described service end obtains client from the client side list prestored; Described service end sends described numbering message to described client by number; Described client receives described numbering message and makes response; When described client has received multiple messages, described client makes response to Article 1 and the last item message.
Preferably, described client comprises timestamp record cell, and described timestamp record cell receives the timestamp of described numbering message for recording.
Preferably, described service end comprises message and sends record cell, and described message sends record cell for after the message after described service end sends described numbering to described client by number, records the response status of described client; If described client nonreply, the message marking after described numbering is deferred information by described service end;
Described client comprises message reading unit, described message reading unit is used for when described client is reached the standard grade again, obtain local time stamp, and go described service end to read described deferred information according to the described timestamp receiving the message after numbering, and make response.
Preferably, service end deletes message corresponding in buffer memory after receiving response.
By adopting information push method disclosed in this invention and system, no longer reply one by one for every bar message, when client receives multiple messages, only response is made to Article 1 and the last item message, response Article 1 message is in order to represent that client is online, the message that response the last item message table is shown in before the last item message receives all, not only ensured the arrival rate of message but also solved every bar message and must reply and bring inefficiency problem, having achieved the object that message precise and high efficiency arrives client; This external client can read deferred information when next time reaches the standard grade time not online, every bar message all confirms to reply rear deletion, so information off-line can not be received as by client in the information of other client process, such when having ensured that user message is online message also can not lose, the message received can not repeat to accept, not only user-friendly, can also data transmission resources be saved.
Although describe embodiments of the present invention by reference to the accompanying drawings, but those skilled in the art can make various modifications and variations without departing from the spirit and scope of the present invention, such amendment and modification all fall into by within claims limited range.

Claims (10)

1. an information push method, is characterized in that, comprising:
Obtain message, and according to time order and function, numbering message is obtained to described message numbering;
Client is obtained from the client side list prestored;
Described numbering message is sent to described client;
Described client receives described numbering message and makes response;
When needing when there being many numbering message to send, described client makes response to Article 1 and the last item numbering message.
2. information push method according to claim 1, is characterized in that, described client receives described numbering message and makes response and also comprises: record receives the timestamp of described numbering message.
3. information push method according to claim 2, is characterized in that, describedly also comprises after described client sends described numbering message:
Described client nonreply, described message marking is deferred information by service end;
When described client is reached the standard grade again, described client obtains local time stamp, and goes described service end to read described deferred information according to the described timestamp accepting message, and makes response.
4. information push method according to claim 3, is characterized in that, also comprises: if the timestamp of described receipt message is for empty, described client reads all described deferred informations.
5. information push method according to claim 3, is characterized in that, described client also comprises after reading described deferred information:
Be online by status modifier, no longer read deferred information.
6. information push method according to claim 1, is characterized in that, after described acquisition message, described message is kept in the buffer memory of service end.
7. information push method according to claim 1, is characterized in that, described client receives described numbering message and also comprises after making response: service end deletes the message after described response.
8. a message push system, is characterized in that, comprising: service end and client;
Described service end is connected with described client communication;
Described service end obtains message, and to be numbered described message according to time order and function and to obtain numbering message; Described service end obtains client from the client side list prestored; Described service end sends described numbering message to described client by number;
Described client receives described numbering message and makes response;
When described client has received multiple messages, described client makes response to Article 1 and the last item message.
9. message push system according to claim 8, is characterized in that, described client comprises timestamp record cell, and described timestamp recording unit records receives the timestamp of described numbering message.
10. message push system according to claim 9, is characterized in that,
Described service end comprises message and sends record cell, and described message sends record cell for after the message after described service end sends described numbering to described client by number, records the response status of described client; If described client nonreply, the message marking after described numbering is deferred information by described service end;
Described client comprises message reading unit, described message reading unit is used for when described client is reached the standard grade again, obtain local time stamp, and go described service end to read described deferred information according to the described timestamp receiving the message after numbering, and make response.
CN201510284553.9A 2015-05-28 2015-05-28 Information push method and system Active CN104954446B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510284553.9A CN104954446B (en) 2015-05-28 2015-05-28 Information push method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510284553.9A CN104954446B (en) 2015-05-28 2015-05-28 Information push method and system

Publications (2)

Publication Number Publication Date
CN104954446A true CN104954446A (en) 2015-09-30
CN104954446B CN104954446B (en) 2019-02-12

Family

ID=54168789

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510284553.9A Active CN104954446B (en) 2015-05-28 2015-05-28 Information push method and system

Country Status (1)

Country Link
CN (1) CN104954446B (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105872025A (en) * 2016-02-08 2016-08-17 物联智慧科技(深圳)有限公司 Push message transmission method and message transmission system
CN106657357A (en) * 2016-12-29 2017-05-10 北京奇虎科技有限公司 Method and device for sending offline message
CN106686024A (en) * 2015-11-05 2017-05-17 腾讯科技(深圳)有限公司 Method, device and system for acquiring arrival rates of off-line messages
CN106790607A (en) * 2016-12-29 2017-05-31 北京奇虎科技有限公司 Send the method and device of deferred information
CN106921515A (en) * 2016-06-29 2017-07-04 阿里巴巴集团控股有限公司 Business operation data processing method, device, electronic equipment, server and system
WO2017162045A1 (en) * 2016-03-23 2017-09-28 阿里巴巴集团控股有限公司 Message transmission method and terminal equipment
CN108512741A (en) * 2018-02-06 2018-09-07 北京云中融信网络科技有限公司 Instant communication method, apparatus and system
CN108900506A (en) * 2018-06-28 2018-11-27 江苏中威科技软件系统有限公司 Information push method, push server and transmission control protocol server
CN110022352A (en) * 2019-02-28 2019-07-16 福建天泉教育科技有限公司 A kind of answer method and terminal of message push
CN113242172A (en) * 2021-04-26 2021-08-10 福建天泉教育科技有限公司 Message response method and system
US11281580B2 (en) 2019-12-23 2022-03-22 Sensetime International Pte. Ltd. Edge device triggering a write-ahead logging (WAL) log when abnormal condition occurs

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103166744A (en) * 2011-12-08 2013-06-19 北京信威通信技术股份有限公司 Method for dynamically sending acknowledgement (ACK) bitmap in automatic repeat request (ARQ) mechanism
CN103220206A (en) * 2012-01-19 2013-07-24 阿里巴巴集团控股有限公司 Message sending method and device and message receiving method and device
CN103684707A (en) * 2013-12-20 2014-03-26 广州华多网络科技有限公司 Server-side and user-side message transmission processing method, message transmission method and message transmission system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103166744A (en) * 2011-12-08 2013-06-19 北京信威通信技术股份有限公司 Method for dynamically sending acknowledgement (ACK) bitmap in automatic repeat request (ARQ) mechanism
CN103220206A (en) * 2012-01-19 2013-07-24 阿里巴巴集团控股有限公司 Message sending method and device and message receiving method and device
CN103684707A (en) * 2013-12-20 2014-03-26 广州华多网络科技有限公司 Server-side and user-side message transmission processing method, message transmission method and message transmission system

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106686024A (en) * 2015-11-05 2017-05-17 腾讯科技(深圳)有限公司 Method, device and system for acquiring arrival rates of off-line messages
CN106686024B (en) * 2015-11-05 2019-09-20 腾讯科技(深圳)有限公司 Obtain the method, apparatus and system of the arrival rate of offline message
CN105872025A (en) * 2016-02-08 2016-08-17 物联智慧科技(深圳)有限公司 Push message transmission method and message transmission system
CN105872025B (en) * 2016-02-08 2019-07-19 物联智慧科技(深圳)有限公司 push message transmission method and message transmission system
US11252121B2 (en) 2016-03-23 2022-02-15 Alibaba Group Holding Limited Message sending method and terminal device
WO2017162045A1 (en) * 2016-03-23 2017-09-28 阿里巴巴集团控股有限公司 Message transmission method and terminal equipment
CN106921515A (en) * 2016-06-29 2017-07-04 阿里巴巴集团控股有限公司 Business operation data processing method, device, electronic equipment, server and system
CN106657357A (en) * 2016-12-29 2017-05-10 北京奇虎科技有限公司 Method and device for sending offline message
CN106790607A (en) * 2016-12-29 2017-05-31 北京奇虎科技有限公司 Send the method and device of deferred information
CN106790607B (en) * 2016-12-29 2020-11-03 北京奇虎科技有限公司 Method and device for sending offline message
CN108512741A (en) * 2018-02-06 2018-09-07 北京云中融信网络科技有限公司 Instant communication method, apparatus and system
CN108900506A (en) * 2018-06-28 2018-11-27 江苏中威科技软件系统有限公司 Information push method, push server and transmission control protocol server
CN110022352A (en) * 2019-02-28 2019-07-16 福建天泉教育科技有限公司 A kind of answer method and terminal of message push
CN110022352B (en) * 2019-02-28 2022-02-22 福建天泉教育科技有限公司 Message push response method and terminal
US11281580B2 (en) 2019-12-23 2022-03-22 Sensetime International Pte. Ltd. Edge device triggering a write-ahead logging (WAL) log when abnormal condition occurs
CN113242172A (en) * 2021-04-26 2021-08-10 福建天泉教育科技有限公司 Message response method and system
CN113242172B (en) * 2021-04-26 2023-02-28 福建天泉教育科技有限公司 Message response method and system

Also Published As

Publication number Publication date
CN104954446B (en) 2019-02-12

Similar Documents

Publication Publication Date Title
CN104954446A (en) Message pushing method and system
CN103096435B (en) Connect keeping method, device and mobile terminal
HK1097375A1 (en) System and method for communicating asynchronouslywith web services using message set definitions
EP1117225A3 (en) Data transmission to and from a mobile terminal in a network
CA2469513A1 (en) System and method of managing information distribution to mobile stations
CN105119810A (en) Instant communication method based on XMPP protocol and system thereof
CN101667976B (en) Method for determining mail push mode, pushing method, pushing device
CN104270302B (en) The transmission system of online order and transfer approach
WO2016090995A1 (en) Method of communication between page and long-connection server, and client end
CN106331276B (en) Device and method for sending electronic business card through Bluetooth headset
CN105991481B (en) A kind of message forwarding method and device
CN101465827B (en) Group set communication method and device
CN103379019A (en) Microblog message pushing method, device and system
CN104796495A (en) Message pushing method and system
CN112150203A (en) Real estate client visit identification method and device, electronic equipment and storage medium
CN102291693A (en) Implementation method and device for fusing message services based on terminal
CN104348841A (en) Content delivery method, analysis and management and control system and content delivery network system
CN101620717A (en) Method and system for analyzing user demands
CN108810936A (en) A kind of configuration method and device of LoRa terminals
CN1487706B (en) Method, system and control process for enterprise to communicate timely
CN1867105A (en) System and method for realizing mail push utilizing IP Push technique
CN101668261B (en) Method, device and system for attaching signature to long short message
CN101106754B (en) A method for transmitting SMS to gateway in mobile network
CN101986733A (en) Method and system for transmitting multimedia message
CN101945055A (en) Instant communication system and instant communication method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant