CN105208081A - Method and system realizing network communication through subscription mode - Google Patents

Method and system realizing network communication through subscription mode Download PDF

Info

Publication number
CN105208081A
CN105208081A CN201510500270.3A CN201510500270A CN105208081A CN 105208081 A CN105208081 A CN 105208081A CN 201510500270 A CN201510500270 A CN 201510500270A CN 105208081 A CN105208081 A CN 105208081A
Authority
CN
China
Prior art keywords
client
service end
new data
subscribe request
request
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.)
Pending
Application number
CN201510500270.3A
Other languages
Chinese (zh)
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.)
SHENZHEN LAN-YOU TECHNOLOG Co Ltd
Original Assignee
SHENZHEN LAN-YOU TECHNOLOG 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 SHENZHEN LAN-YOU TECHNOLOG Co Ltd filed Critical SHENZHEN LAN-YOU TECHNOLOG Co Ltd
Priority to CN201510500270.3A priority Critical patent/CN105208081A/en
Publication of CN105208081A publication Critical patent/CN105208081A/en
Pending legal-status Critical Current

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/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • H04L67/5682Policies or rules for updating, deleting or replacing the stored data

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a method realizing network communication through a subscription mode. The method comprises steps that, a subscription request is sent by a client to a service end; the subscription request sent by the client is received by the service end, according to the subscription request, update data is automatically sent to the client; the update data is received by the client for update; a subscription cancel request is sent by the client to the service end to end update. Correspondingly, the invention further comprises a system realizing network communication through the subscription mode. According to the method and the system, a subscription mechanism is introduced, the subscription mode is employed for data update, the client can acquire automatically-sent update data without sending a request every time, work efficiency is improved, and network burden is reduced.

Description

A kind of method and system being realized network service by subscribing manner
Technical field
The present invention relates to network communication field, particularly relate to a kind of method and system being realized network service by subscribing manner.
Background technology
In network communications, the Main Patterns of two process interphase interactions of communication is Client/Server (Client/Servermodel).As shown in Figure 1, in the prior art, client generally all adopts the form of question-response from the method for service end acquisition data, client need at every turn more new data time all need to service end transmission request information, then service end returns to client data again, each communication all needs client to send a packet, causes the problems such as network resources waste, efficiency are not high.In addition, because needs are asked continually and do database query operations continually.Therefore, the problem that server stress also can be caused excessive etc.
Summary of the invention
The object of the invention is to, for the not high defect of network communication efficiency between existing client and server, provide a kind of method and system being realized network service by subscribing manner.
The present invention is in order to solve the problems of the technologies described above, and the technical scheme of employing is: a kind of method being realized network service by subscribing manner, being comprised: send subscribe request by client to service end; Receive the described subscribe request from described client by described service end, according to described subscribe request, send more new data from client described in trend; More new data described in described client receives, upgrades; And send to described service end the request of cancelling subscriptions by described client, terminate to upgrade.
Preferably, described method is applied to the network based on tcp/ip communication agreement.
Preferably, described subscribe request comprises time parameter, to send the time interval of more new data for defining described service end to described client.
Preferably, the described subscribe request from described client is received by described service end, according to described subscribe request, the described step sending more new data from client described in trend comprises: by described service end according to according to the described time parameter in described subscribe request, more new data described in repeatedly sending to described client according to described predetermined time interval.
Correspondingly, present invention also offers a kind of system being realized network service by subscribing manner, comprise client and service end, wherein, described client's side link is in described service end, described client is used for sending subscribe request to described service end, receive the more new data from described service end, also for sending to described service end the request of cancelling subscriptions, terminate to upgrade, described service end for receiving the described subscribe request from described client, according to described subscribe request, more new data described in sending from client described in trend.
Preferably, described client comprises the first sending module and the first receiver module, described first sending module is for sending described subscribe request and the described request of cancelling subscriptions, described first receiver module is for receiving from more new data described in described service end, according to described more new data, upgrade described client.
Preferably, described service end comprises the second sending module and the second receiver module, described second sending module is used for according to the described subscribe request from described client, more new data described in sending from client described in trend, described second receiver module is for receiving described subscribe request from described client and the described request of cancelling subscriptions.
Preferably, described subscribe request comprises time parameter, for define described service end to send to described client described in time interval of more new data.
Preferably, described service end according to the described time parameter in described subscribe request, more new data described in repeatedly sending to described client according to described predetermined time interval.
Preferably, described system is applied to the network based on tcp/ip communication agreement.
Implement the embodiment of the present invention, there is following beneficial effect: by the method and system being realized network service by subscribing manner provided by the invention, in network communications, only client need send a subscribe request to service end when communicating beginning, service end timing afterwards returns more new data to client, during sign off, client sends to service end the request of cancelling subscriptions again, and service end is no longer to client more new data.By introduce subscribing mechanism, Data Update adopt subscribe to form, do not need client obtain at every turn more new data time all to service end send once ask, increase work efficiency, decrease network burden.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the realization flow figure that in prior art, client and server carry out network service;
Fig. 2 is the realization flow figure of the method for network service that realized by subscribing manner that one embodiment of the invention provides;
Fig. 3 is the structural representation being realized the system of network service by subscribing manner that one embodiment of the invention provides;
Fig. 4 is the structural representation being realized the system of network service by subscribing manner that another embodiment of the present invention provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Fig. 2 is the realization flow figure of the method for network service that realized by subscribing manner that one embodiment of the invention provides.As shown in Figure 2, the method 200 realizing network service by subscribing manner comprises the following steps.
Step S202: send subscribe request to service end by client.
Preferably, in an embodiment of the present invention, subscribe request comprises time parameter, to send the time interval of more new data for defining service end to client.
Step S204: receive the subscribe request from client by service end, according to subscribe request, send more new data from trend client.
Preferably, in an embodiment of the present invention, service end, according to the time parameter in subscribe request, repeatedly sends more new data according to predetermined time interval to client.
Step S206: receive more new data by client, upgrade.
Step S208: send to service end the request of cancelling subscriptions by client, terminates to upgrade.
Preferably, in an embodiment of the present invention, the method 200 realizing network service by subscribing manner can be applied to the network based on tcp/ip communication agreement.
Advantageously, by the method being realized network service by subscribing manner provided by the invention, in network communications, only client need send a subscribe request to service end when communicating beginning, service end timing afterwards returns more new data to client, during sign off, client sends to service end the request of cancelling subscriptions again, and service end is no longer to client more new data.By introduce subscribing mechanism, Data Update adopt subscribe to form, do not need client obtain at every turn more new data time all to service end send once ask, increase work efficiency, decrease network burden.
Fig. 3 is the structural representation being realized the system of network service by subscribing manner that one embodiment of the invention provides.As shown in Figure 3, the system 300 being realized network service by subscribing manner comprises client 310 and service end 320, and wherein, client 310 is connected to service end 320.
In an embodiment of the present invention, client 310, for sending subscribe request to service end 320, receives the more new data from service end 320, also for sending to service end the request of cancelling subscriptions, terminates to upgrade.Preferably, in an embodiment of the present invention, subscribe request comprises time parameter, to send the time interval of more new data for defining service end 320 to client 310.
In an embodiment of the present invention, service end 320, for receiving the subscribe request from client, according to subscribe request, sends more new data from trend client.Preferably, in an embodiment of the present invention, service end 320, according to the time parameter in subscribe request, repeatedly 310 sends more new data according to predetermined time interval to client.
Preferably, in an embodiment of the present invention, the system 400 realizing network service by subscribing manner can be applied to the network based on tcp/ip communication agreement.
Fig. 4 is the structural representation being realized the system of network service by subscribing manner that another embodiment of the present invention provides.The element in Fig. 4 with Fig. 3 with identical label has identical function, does not repeat them here.
In an embodiment of the present invention, client 310 comprises the first sending module 312 and the first receiver module 314.Particularly, the first sending module 312 for sending subscribe request and cancelling subscriptions request, the first receiver module 314 for receiving the more new data from service end 320, according to more new data, renewal client 310.Preferably, in an embodiment of the present invention, subscribe request comprises time parameter, to send the time interval of more new data for defining service end 320 to the first receiver module 314.
In an embodiment of the present invention, service end 320 comprises the second sending module 322 and the second receiver module 324.Particularly, the second sending module 322, for according to from the subscribe request of client 310, sends more new data from trend client, and the second receiver module 324 is for receiving subscribe request from client 310 and the request of cancelling subscriptions.Preferably, in an embodiment of the present invention, the second sending module 322, according to the time parameter in subscribe request, repeatedly 310 sends more new data according to predetermined time interval to client.
Advantageously, by the system being realized network service by subscribing manner provided by the invention, in network communications, only client need send a subscribe request to service end when communicating beginning, service end timing afterwards returns more new data to client, during sign off, client sends to service end the request of cancelling subscriptions again, and service end is no longer to client more new data.By introduce subscribing mechanism, Data Update adopt subscribe to form, do not need client obtain at every turn more new data time all to service end send once ask, increase work efficiency, decrease network burden.
Above disclosedly be only a kind of preferred embodiment of the present invention, certainly the interest field of the present invention can not be limited with this, one of ordinary skill in the art will appreciate that all or part of flow process realizing above-described embodiment, and according to the equivalent variations that the claims in the present invention are done, still belong to the scope that invention is contained.

Claims (10)

1. realized a method for network service by subscribing manner, it is characterized in that, comprising:
Subscribe request is sent to service end by client;
Receive the described subscribe request from described client by described service end, according to described subscribe request, send more new data from client described in trend;
More new data described in described client receives, upgrades; And
Send to described service end the request of cancelling subscriptions by described client, terminate to upgrade.
2. the method being realized network service by subscribing manner according to claim 1, be is characterized in that, described method is applied to the network based on tcp/ip communication agreement.
3. the method being realized network service by subscribing manner according to claim 1, be is characterized in that, described subscribe request comprises time parameter, to send the time interval of more new data for defining described service end to described client.
4. the method being realized network service by subscribing manner according to claim 3, it is characterized in that, receive the described subscribe request from described client by described service end, according to described subscribe request, the described step sending more new data from client described in trend comprises:
By described service end according to according to the described time parameter in described subscribe request, more new data described in repeatedly sending to described client according to described predetermined time interval.
5. one kind realizes the system of network service by subscribing manner, it is characterized in that, comprise client (310) and service end (320), wherein, described client (310) is connected to described service end (320), described client (310) is for sending subscribe request to described service end (320), receive the more new data from described service end (320), also for sending to described service end the request of cancelling subscriptions, terminate to upgrade, described service end (320) is for receiving the described subscribe request from described client, according to described subscribe request, more new data described in sending from client described in trend.
6. the system being realized network service by subscribing manner according to claim 5, it is characterized in that, described client (310) comprises the first sending module (312) and the first receiver module (314), described first sending module (312) is for sending described subscribe request and the described request of cancelling subscriptions, described first receiver module (314) is for receiving the described more new data from described service end (320), according to described more new data, upgrade described client (310).
7. the system being realized network service by subscribing manner according to claim 5, it is characterized in that, described service end (320) comprises the second sending module (322) and the second receiver module (324), described second sending module (322) is for the described subscribe request of basis from described client (310), more new data described in sending from client described in trend, described second receiver module (324) is for receiving described subscribe request from described client (310) and the described request of cancelling subscriptions.
8. the system being realized network service by subscribing manner according to claim 5, it is characterized in that, described subscribe request comprises time parameter, for define described service end (320) to send to described client (310) described in time interval of more new data.
9. the system being realized network service by subscribing manner according to claim 8, it is characterized in that, described service end (320) according to the described time parameter in described subscribe request, according to described predetermined time interval to described client repeatedly (310) send described in more new data.
10. the system being realized network service by subscribing manner according to claim 5, be is characterized in that, described system is applied to the network based on tcp/ip communication agreement.
CN201510500270.3A 2015-08-14 2015-08-14 Method and system realizing network communication through subscription mode Pending CN105208081A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510500270.3A CN105208081A (en) 2015-08-14 2015-08-14 Method and system realizing network communication through subscription mode

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510500270.3A CN105208081A (en) 2015-08-14 2015-08-14 Method and system realizing network communication through subscription mode

Publications (1)

Publication Number Publication Date
CN105208081A true CN105208081A (en) 2015-12-30

Family

ID=54955507

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510500270.3A Pending CN105208081A (en) 2015-08-14 2015-08-14 Method and system realizing network communication through subscription mode

Country Status (1)

Country Link
CN (1) CN105208081A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106325931A (en) * 2016-08-23 2017-01-11 联动优势科技有限公司 Software pre-allocation method and device
CN107872498A (en) * 2016-09-28 2018-04-03 阿里巴巴集团控股有限公司 A kind of business datum method for subscribing, apparatus and system
CN109426170A (en) * 2017-09-01 2019-03-05 北京北方华创微电子装备有限公司 It updates the method for display real time data and updates the system of display real time data
CN110413427A (en) * 2019-07-31 2019-11-05 中国工商银行股份有限公司 Subscribe to data pull method, apparatus, equipment and storage medium
CN112600942A (en) * 2021-02-18 2021-04-02 杭州网银互联科技股份有限公司 Method and system for improving route calculation efficiency in sd-wan
CN112992141A (en) * 2021-02-23 2021-06-18 北京百度网讯科技有限公司 Communication method and device under voice recognition scene

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040249898A1 (en) * 1998-10-21 2004-12-09 Yasunori Tsukioka Communication terminal apparatus capable of accessing e-mail from multiple networks at variable intervals
CN1645883A (en) * 2005-01-19 2005-07-27 北京蓝宇创杰科技发展有限公司 Realizing method and device for personal ring-back service with dynamic adjustment
CN1992683A (en) * 2005-12-28 2007-07-04 腾讯科技(深圳)有限公司 Method and system for implementing group subscription service
US20070296588A1 (en) * 2004-12-22 2007-12-27 Sap Aktiengesellschaft Dynamic Display of RFID and Sensor Data
CN102035893A (en) * 2010-12-23 2011-04-27 中国农业银行股份有限公司 Method and system for pushing data actively by server
CN103543740A (en) * 2012-07-13 2014-01-29 北京金奔腾汽车科技有限公司 Cellphone short message vehicle failure remote intelligent detection device-automatic pushing function
CN103686628A (en) * 2012-09-17 2014-03-26 ***通信集团公司 Information pushing method, system, network equipment, and mobile terminal
CN103957252A (en) * 2014-04-28 2014-07-30 广州杰赛科技股份有限公司 Method and system for obtaining log of cloud storage system
CN103986773A (en) * 2014-05-26 2014-08-13 北京奇艺世纪科技有限公司 Data request response method and device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040249898A1 (en) * 1998-10-21 2004-12-09 Yasunori Tsukioka Communication terminal apparatus capable of accessing e-mail from multiple networks at variable intervals
US20070296588A1 (en) * 2004-12-22 2007-12-27 Sap Aktiengesellschaft Dynamic Display of RFID and Sensor Data
CN1645883A (en) * 2005-01-19 2005-07-27 北京蓝宇创杰科技发展有限公司 Realizing method and device for personal ring-back service with dynamic adjustment
CN1992683A (en) * 2005-12-28 2007-07-04 腾讯科技(深圳)有限公司 Method and system for implementing group subscription service
CN102035893A (en) * 2010-12-23 2011-04-27 中国农业银行股份有限公司 Method and system for pushing data actively by server
CN103543740A (en) * 2012-07-13 2014-01-29 北京金奔腾汽车科技有限公司 Cellphone short message vehicle failure remote intelligent detection device-automatic pushing function
CN103686628A (en) * 2012-09-17 2014-03-26 ***通信集团公司 Information pushing method, system, network equipment, and mobile terminal
CN103957252A (en) * 2014-04-28 2014-07-30 广州杰赛科技股份有限公司 Method and system for obtaining log of cloud storage system
CN103986773A (en) * 2014-05-26 2014-08-13 北京奇艺世纪科技有限公司 Data request response method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
梁昌勇: "《基于Pushlet的RFID数据推送技术研究》", 《计算机技术与发展》 *
金玉善: "《Pushlet网络推技术研究及应用》", 《吉林大学学报(信息科学版)》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106325931A (en) * 2016-08-23 2017-01-11 联动优势科技有限公司 Software pre-allocation method and device
CN107872498A (en) * 2016-09-28 2018-04-03 阿里巴巴集团控股有限公司 A kind of business datum method for subscribing, apparatus and system
CN107872498B (en) * 2016-09-28 2021-04-13 阿里巴巴集团控股有限公司 Service data subscription method, device and system
CN109426170A (en) * 2017-09-01 2019-03-05 北京北方华创微电子装备有限公司 It updates the method for display real time data and updates the system of display real time data
CN110413427A (en) * 2019-07-31 2019-11-05 中国工商银行股份有限公司 Subscribe to data pull method, apparatus, equipment and storage medium
CN112600942A (en) * 2021-02-18 2021-04-02 杭州网银互联科技股份有限公司 Method and system for improving route calculation efficiency in sd-wan
CN112992141A (en) * 2021-02-23 2021-06-18 北京百度网讯科技有限公司 Communication method and device under voice recognition scene

Similar Documents

Publication Publication Date Title
CN105208081A (en) Method and system realizing network communication through subscription mode
CN103117960A (en) System and method of broadband user speeding up access bandwidth in self-service mode
CN105847139A (en) Data transmission method, apparatus and system
CN109347659A (en) Intelligent terminal and mould group remote upgrade method based on NB-IOT
CN104679528B (en) The newer method and apparatus of application program remote
CN103997539A (en) Radar operation state collecting and distributing system and method based on web service
CN109257335B (en) Method for maintaining back source link, back source method, related device and storage medium
CN113572835A (en) Data processing method, network element equipment and readable storage medium
CN105005500A (en) Remote procedure calling method, server side and client
CN103516788A (en) Data pushing method and Flash client terminal and server thereof
CN108011870B (en) A kind of remote software online upgrading information automatic identification management method
CN105635222A (en) Cloud terminal upgrading method and system, network management server and proxy server
CN101938383B (en) On-line monitoring method and system of user account with multiple services as well as monitoring service system
CN106936937B (en) Method and device for realizing universal interface for internet service interaction
CN112087678B (en) Bandwidth allocation and bandwidth checking method and device
CN104967663A (en) File transmission method and system, file sending device, and file receiving device
CN103997796A (en) Method for processing service data
CN106302432A (en) A kind of communicator based on car networking and control method
CN105791023A (en) Optical network unit ONU management method, device and system
CN107026753B (en) Method and system for distributing and downloading software version in passive optical network
CN102164139B (en) One-stop convergent service acceptance system and acceptance method
CN107371263B (en) Method and device for scheduling uplink resources
ATE400958T1 (en) SYSTEM AND METHOD FOR TRANSMITTING DATA BETWEEN NETWORKS OPERATING UNDER DIFFERENT PROTOCOLS
CN104426746A (en) Client message pushing method, client message pushing device and server
CN101159613A (en) Method for network management to perform data configuration to network element under large data volume

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20151230

RJ01 Rejection of invention patent application after publication