CN108337280A - A kind of resource regeneration method and device - Google Patents

A kind of resource regeneration method and device Download PDF

Info

Publication number
CN108337280A
CN108337280A CN201710042174.8A CN201710042174A CN108337280A CN 108337280 A CN108337280 A CN 108337280A CN 201710042174 A CN201710042174 A CN 201710042174A CN 108337280 A CN108337280 A CN 108337280A
Authority
CN
China
Prior art keywords
resource
client
storage address
server
newer
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
CN201710042174.8A
Other languages
Chinese (zh)
Other versions
CN108337280B (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.)
Beijing Shuan Xinyun Information Technology Co ltd
Original Assignee
Guizhou White Cloud 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 Guizhou White Cloud Technology Co Ltd filed Critical Guizhou White Cloud Technology Co Ltd
Priority to CN201710042174.8A priority Critical patent/CN108337280B/en
Publication of CN108337280A publication Critical patent/CN108337280A/en
Application granted granted Critical
Publication of CN108337280B publication Critical patent/CN108337280B/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/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1074Peer-to-peer [P2P] networks for supporting data block transmission mechanisms
    • H04L67/1078Resource delivery mechanisms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/147Signalling methods or messages providing extensions to protocols defined by standardisation

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a kind of resource regeneration method and device, the method includes:Intermediate equipment receives resource load request from multiple client, the target resource identifier of client identification and resource load request is determined according to resource load request, determine the resource storage address of resource on the server corresponding to each target resource identifier, correspondence is recorded, correspondence includes the corresponding resource storage address of same target resource identifier and sends the client identification of each client of this target resource identifier;Intermediate equipment timing inquires whether each resource storage address generates resource updates to server, it is received in resource storage address after newer resource from server, inquire correspondence, it determines the corresponding each client identification of this resource storage address, newer resource is sent to corresponding client according to each client identification inquired.The present invention can effectively save the process resource of server, improve the process performance of server, and save bandwidth resources.

Description

A kind of resource regeneration method and device
Technical field
The present invention relates to Internet technical fields, and in particular to a kind of resource regeneration method and device.
Background technology
In the prior art, it to realize that client demand resource refreshes in real time, need client periodically constantly to service Device has asked whether new resources update.When server does not generate resource updates, client still constantly polling server, In this way, server needs to handle these invalid polling messages in large quantities, client and server uses Hyper text transfer (HTTP) agreement connects, user end to server poll, after server response, disconnects, next client poll services again When device, connection need to be established again, and server resource and bandwidth resources is so caused to waste.
Invention content
Present invention seek to address that problem as described above.The object of the present invention is to provide a kind of resources for solving problem above Update method and device.
The present invention provides a kind of resource regeneration methods, including:
Intermediate equipment from multiple client receive resource load request, according to resource load request determine client identification and The target resource identifier of the resource load request determines the resource of resource on the server corresponding to each target resource identifier Storage address records correspondence, and the correspondence includes the corresponding resource storage address of same target resource identifier and hair Give the client identification of each client of this target resource identifier;
Intermediate equipment timing inquires whether each resource storage address generates resource updates to server, from server In reception resource storage address after newer resource, the correspondence is inquired, determines that this resource storage address is corresponding described Each client identification sends newer resource according to each client identification inquired to corresponding client.
Above-mentioned resource regeneration method also has the characteristics that:
Long connection is maintained between the intermediate equipment and each client.
Above-mentioned resource regeneration method also has the characteristics that:
The agreement of the long connection is the agreement for the long connection that the browser of the client is supported.
Above-mentioned resource regeneration method also has the characteristics that:
The agreement of the long connection is web socket agreement.
Above-mentioned resource regeneration method also has the characteristics that:
Each client identification that the basis inquires sends newer resource to corresponding client:According to inquiry Each client identification arrived is to newer resource described in corresponding client transmitted in parallel.
The present invention also provides a kind of resource updates devices, including:
Request receiving module, for receiving resource load request from multiple client;
Correspondence maintenance module, for determining client identification and the resource load request according to resource load request Target resource identifier, determine the resource storage address of resource on the server corresponding to each target resource identifier, record pair It should be related to, the correspondence includes the corresponding resource storage address of same target resource identifier and this target resource identifier of transmission Each client client identification;
Poller module inquires whether each resource storage address generates resource updates for timing to server;
Resource receiving module, for receiving newer resource in resource storage address from server;
Enquiry module determines corresponding each client mark described in this resource storage address for inquiring the correspondence Know;
Sending module, for sending newer resource to corresponding client according to each client identification inquired.
Above-mentioned resource updates device also has the characteristics that:
Long connection is maintained between the intermediate equipment and each client.
Above-mentioned resource updates device also has the characteristics that:
The agreement of the long connection is the agreement for the long connection of foundation that the browser of the client is supported.
Above-mentioned resource updates device also has the characteristics that:
The agreement of the long connection is web socket agreement.
Above-mentioned resource updates device also has the characteristics that:
Sending module is additionally operable to according to each client identification for inquiring to the corresponding newer money of client transmitted in parallel Source.
The present invention can effectively save the process resource of server, improve the process performance of server, and save bandwidth Resource.The present invention saves client-side because frequently establishing connection caused by poll also using the connection type of long connection Processing procedure.
Description of the drawings
The attached drawing for constituting the part of the present invention is used to provide further understanding of the present invention, schematic reality of the invention Example and its explanation are applied for explaining the present invention, is not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is a kind of flow chart of a resource regeneration method provided according to an embodiment of the invention;
Fig. 2 is a kind of illustrative diagram of a resource regeneration method provided according to an embodiment of the invention.
Fig. 3 is a kind of structural schematic diagram of the two resource updates devices provided according to an embodiment of the invention.
Specific implementation mode
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art The every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.It needs Illustrate, in the absence of conflict, the features in the embodiments and the embodiments of the present application mutually can be combined arbitrarily.
A kind of resource regeneration method of detailed description of the present invention exemplary embodiment and device below in conjunction with the accompanying drawings.
Embodiment one
Fig. 1 is the flow chart for showing an a kind of resource regeneration method provided according to an embodiment of the invention.Referring to Fig.1, The method includes:
Step 101, intermediate equipment receives resource load request from multiple client, and client is determined according to resource load request The target resource identifier of end mark and resource load request determines resource corresponding to each target resource identifier on the server Resource storage address records correspondence, and correspondence includes the corresponding resource storage address of same target resource identifier and hair Give the client identification of each client of this target resource identifier;
Step 102, intermediate equipment timing inquires whether each resource storage address generates resource updates to server, from clothes In device reception resource storage address of being engaged in after newer resource, correspondence is inquired, determines the corresponding each visitor of this resource storage address Family end identifies, and newer resource is sent to corresponding client according to each client identification inquired.
Long connection is maintained in above-mentioned steps 101, between intermediate equipment and each client, the agreement of the long connection is visitor The agreement for the long connection of foundation that the browser at family end is supported, for example, using the web socket triggered based on event (WebSocket) agreement establishes long connection.
In above-mentioned steps 102, according to each client identification inquired to the corresponding newer money of client transmitted in parallel Source.
In above-mentioned steps 102, as shown in Fig. 2, intermediate equipment is built with server by utilizing Hyper text transfer (HTTP) agreement Vertical connection, intermediate equipment timing (such as every 100 milliseconds) inquire whether each resource storage address generates resource updates to server, It is received in resource storage address after newer resource from server, the correspondence established in query steps 101 determines this money The corresponding each client identification of source storage address, it is newer to the transmission of corresponding client according to each client identification inquired Resource.
Embodiment two
Fig. 3 is the structural schematic diagram for showing the two a kind of resource updates devices provided according to an embodiment of the invention.Reference Fig. 3, described device include:
Request receiving module 301, for receiving resource load request from multiple client;
Correspondence maintenance module 302, for determining that client identification and the resource load according to resource load request The target resource identifier of request determines the resource storage address of resource on the server corresponding to each target resource identifier, note Correspondence is recorded, the correspondence includes the corresponding resource storage address of same target resource identifier and this target resource of transmission The client identification of each client of mark;
Poller module 303 inquires whether each resource storage address generates resource updates for timing to server;
Resource receiving module 304, for receiving newer resource in resource storage address from server;
Enquiry module 305 determines the corresponding each client identification of this resource storage address for inquiring correspondence;
Sending module 306, for sending newer resource to corresponding client according to each client identification inquired.
Long connection is maintained in above-mentioned request receiving module 301, between intermediate equipment and each client, the long connection Agreement is the agreement for the long connection of foundation that the browser of client is supported, for example, using the web socket triggered based on event (WebSocket) agreement establishes long connection.
Above-mentioned sending module 306 is additionally operable to each newer resource of client transmitted in parallel.
The present invention can effectively save the process resource of server, improve the process performance of server, and save bandwidth Resource.The present invention saves client-side because frequently establishing connection caused by poll also using the connection type of long connection Processing procedure.
Descriptions above can combine implementation individually or in various ways, and these variants all exist Within protection scope of the present invention.
One of ordinary skill in the art will appreciate that all or part of step in the above method can be instructed by program Related hardware is completed, and described program can be stored in computer readable storage medium, such as read-only memory, disk or CD Deng.Optionally, all or part of step of above-described embodiment can also be realized using one or more integrated circuits, accordingly Ground, the form that hardware may be used in each device/unit in above-described embodiment are realized, the shape of software function device can also be used Formula is realized.The present invention is not limited to the combinations of the hardware and software of any particular form.
It should be noted that herein, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that article or equipment including a series of elements include not only those elements, but also includes not having There is the other element being expressly recited, or further includes for this article or the intrinsic element of equipment.Do not limiting more In the case of system, the element that is limited by sentence " including ... ", it is not excluded that including the element article or equipment in There is also other identical elements.
The above examples are only used to illustrate the technical scheme of the present invention and are not limiting, reference only to preferred embodiment to this hair It is bright to be described in detail.It will be understood by those of ordinary skill in the art that can modify to technical scheme of the present invention Or equivalent replacement should all cover the claim model in the present invention without departing from the spirit of the technical scheme of the invention and range In enclosing.

Claims (10)

1. a kind of resource regeneration method, which is characterized in that including:
Intermediate equipment receives resource load request from multiple client, and client identification and described is determined according to resource load request The target resource identifier of resource load request determines the resource storage of resource on the server corresponding to each target resource identifier Address, records correspondence, and the correspondence includes the corresponding resource storage address of same target resource identifier and sends this The client identification of each client of target resource identifier;
The intermediate equipment timing inquires whether each resource storage address generates resource updates to server, is received from server In resource storage address after newer resource, the correspondence is inquired, determines the corresponding each visitor of this resource storage address Family end identifies, and newer resource is sent to corresponding client according to each client identification inquired.
2. resource regeneration method as described in claim 1, which is characterized in that
Long connection is maintained between the intermediate equipment and each client.
3. resource regeneration method as claimed in claim 2, which is characterized in that
The agreement of the long connection is the agreement for the long connection that the browser of the client is supported.
4. resource regeneration method as claimed in claim 3, which is characterized in that
The agreement of the long connection is web socket agreement.
5. the resource regeneration method as described in claim 1,2,3 or 4, which is characterized in that
Each client identification that the basis inquires sends newer resource to corresponding client:According to what is inquired Each client identification is to newer resource described in corresponding client transmitted in parallel.
6. a kind of resource updates device, which is characterized in that including:
Request receiving module, for receiving resource load request from multiple client;
Correspondence maintenance module, the mesh for determining client identification and the resource load request according to resource load request Resource identification is marked, determines the resource storage address of resource on the server corresponding to each target resource identifier, records corresponding close System, the correspondence include the corresponding resource storage address of same target resource identifier and send this target resource identifier it is each The client identification of client;
Poller module inquires whether each resource storage address generates resource updates for timing to server;
Resource receiving module, for receiving newer resource in resource storage address from server;
Enquiry module determines corresponding each client identification described in this resource storage address for inquiring the correspondence;
Sending module, for sending newer resource to corresponding client according to each client identification inquired.
7. resource updates device as claimed in claim 6, which is characterized in that
Long connection is maintained between the intermediate equipment and each client.
8. resource updates device as claimed in claim 7, which is characterized in that
The agreement of the long connection is the agreement for the long connection of foundation that the browser of the client is supported.
9. resource updates device as claimed in claim 8, which is characterized in that
The agreement of the long connection is web socket agreement.
10. the resource updates device as described in claim 6,7,8 or 9, which is characterized in that
Sending module is additionally operable to according to each client identification for inquiring to the corresponding newer resource of client transmitted in parallel.
CN201710042174.8A 2017-01-20 2017-01-20 Resource updating method and device Active CN108337280B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710042174.8A CN108337280B (en) 2017-01-20 2017-01-20 Resource updating method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710042174.8A CN108337280B (en) 2017-01-20 2017-01-20 Resource updating method and device

Publications (2)

Publication Number Publication Date
CN108337280A true CN108337280A (en) 2018-07-27
CN108337280B CN108337280B (en) 2019-12-20

Family

ID=62921656

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710042174.8A Active CN108337280B (en) 2017-01-20 2017-01-20 Resource updating method and device

Country Status (1)

Country Link
CN (1) CN108337280B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109600444A (en) * 2018-12-14 2019-04-09 北京向上心科技有限公司 Data push method, server, terminal, electronic equipment and readable storage medium storing program for executing
CN110278258A (en) * 2019-06-14 2019-09-24 郑州阿帕斯科技有限公司 A kind of method and apparatus that dynamic web page accelerates
CN110825400A (en) * 2018-08-14 2020-02-21 杭州萤石软件有限公司 Certificate updating method and system for application program client

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102629929A (en) * 2012-04-18 2012-08-08 华为技术有限公司 Method and system and device for obtaining data
CN102710798A (en) * 2012-06-29 2012-10-03 百度在线网络技术(北京)有限公司 Browser expanding service supporting system and method based on real-time communication
CN103095819A (en) * 2013-01-04 2013-05-08 微梦创科网络科技(中国)有限公司 Data information pushing method and data information pushing system
CN104243275A (en) * 2013-06-19 2014-12-24 腾讯科技(深圳)有限公司 Social information pushing method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102629929A (en) * 2012-04-18 2012-08-08 华为技术有限公司 Method and system and device for obtaining data
CN102710798A (en) * 2012-06-29 2012-10-03 百度在线网络技术(北京)有限公司 Browser expanding service supporting system and method based on real-time communication
CN103095819A (en) * 2013-01-04 2013-05-08 微梦创科网络科技(中国)有限公司 Data information pushing method and data information pushing system
CN104243275A (en) * 2013-06-19 2014-12-24 腾讯科技(深圳)有限公司 Social information pushing method and system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110825400A (en) * 2018-08-14 2020-02-21 杭州萤石软件有限公司 Certificate updating method and system for application program client
CN110825400B (en) * 2018-08-14 2024-04-23 杭州萤石软件有限公司 Certificate updating method and system of application program client
CN109600444A (en) * 2018-12-14 2019-04-09 北京向上心科技有限公司 Data push method, server, terminal, electronic equipment and readable storage medium storing program for executing
CN110278258A (en) * 2019-06-14 2019-09-24 郑州阿帕斯科技有限公司 A kind of method and apparatus that dynamic web page accelerates

Also Published As

Publication number Publication date
CN108337280B (en) 2019-12-20

Similar Documents

Publication Publication Date Title
CN111049854B (en) Service request transmission method and device
US8463915B1 (en) Method for reducing DNS resolution delay
US20150358217A1 (en) Web Polling Method, Device and System
CN104601702B (en) Cluster remote procedure calling (PRC) method and system
RU2009102016A (en) SYSTEM, DEVICE AND METHOD OF DYNAMIC CONFIGURATION OF ACCESS POINTS FOR APPLICATIONS
CN109510878B (en) Long connection session keeping method and device
CN102938788B (en) The processing method of event and device
CN105409188A (en) Method and system for associating internet protocol (IP) address, media access control (MAC) address and location for a user device
CN103781055A (en) Data downloading method and associated device
CN108337280A (en) A kind of resource regeneration method and device
CN102158518B (en) Data transmission method in content distribution network (CDN), network node and system
CN107580052B (en) Self-evolution network self-adaptive crawler method and system
US20160373268A1 (en) Information processing system, information processing method, and storage medium
CN104320488A (en) Proxy server system and proxy service method
CN108347459A (en) A kind of high in the clouds data quick storage method and device
CN104683968A (en) Machine type communication application resource management method, node and system
US20150006622A1 (en) Web contents transmission method and apparatus
CN105190613A (en) Method and apparatus for providing contextual context to a user device
JP2014132443A (en) Collection server and collection method
CN104468248B (en) Service performance monitoring method, reverse proxy server, statistical analysis server and system
CN103581260B (en) Customize the system and method for http proxy content
CN109842690A (en) A kind of DNS data update method, system and equipment
CN109063140A (en) A kind of data query method, transfer server and computer readable storage medium
CN106375489B (en) Method and device for processing Media Access Control (MAC) address
CN111427703A (en) Industrial data real-time display method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 100015 5 floor, block E, 201 IT tower, electronic city, 10 Jiuxianqiao Road, Chaoyang District, Beijing.

Applicant after: GUIZHOU BAISHANCLOUD TECHNOLOGY Co.,Ltd.

Address before: 100015 5 floor, block E, 201 IT tower, electronic city, 10 Jiuxianqiao Road, Chaoyang District, Beijing.

Applicant before: GUIZHOU BAISHANCLOUD TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
TA01 Transfer of patent application right

Effective date of registration: 20181102

Address after: 100015 Beijing Chaoyang District Jiuxianqiao North Road 10 hospital 201 Building 5 floor 505 inside 02

Applicant after: BEIJING SHUAN XINYUN INFORMATION TECHNOLOGY Co.,Ltd.

Address before: 100015 5 floor, block E, 201 IT tower, electronic city, 10 Jiuxianqiao Road, Chaoyang District, Beijing.

Applicant before: GUIZHOU BAISHANCLOUD TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant