CN106161623A - Caching server, renewal server and data-updating method - Google Patents

Caching server, renewal server and data-updating method Download PDF

Info

Publication number
CN106161623A
CN106161623A CN201610522606.0A CN201610522606A CN106161623A CN 106161623 A CN106161623 A CN 106161623A CN 201610522606 A CN201610522606 A CN 201610522606A CN 106161623 A CN106161623 A CN 106161623A
Authority
CN
China
Prior art keywords
data
server
storage
corresponding data
caching server
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
CN201610522606.0A
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.)
Shanghai Supreme Being Joins Information Technology Share Co Ltd
Original Assignee
Shanghai Supreme Being Joins Information Technology Share 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 Shanghai Supreme Being Joins Information Technology Share Co Ltd filed Critical Shanghai Supreme Being Joins Information Technology Share Co Ltd
Priority to CN201610522606.0A priority Critical patent/CN106161623A/en
Publication of CN106161623A publication Critical patent/CN106161623A/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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

Caching server, renewal server and data-updating method, described data-updating method includes: when receiving data more new task, it is judged that in caching server, the corresponding data of storage are the most consistent with the data of the correspondence of storage in the server of source station;When the data determining that in described caching server, the corresponding data of storage are corresponding with storage from the server of described source station are inconsistent, indicate described caching server that the corresponding data stored are updated.Above-mentioned scheme, can reduce operation expense, save resource when being updated the data in caching server.

Description

Caching server, renewal server and data-updating method
Technical field
The present invention relates to content distributing network field, particularly relate to a kind of caching server, update server and data Update method.
Background technology
Content distributing network (Content Delivery Network, CDN), by placing buffer service everywhere at network Device, builds one layer of intelligent virtual network on existing Internet basic, is published to the content of website closest to user's Network " edge ", makes user can obtain required content nearby, to alleviate the situation of network congestion, improves the response speed of website Degree.Solve owing to the network bandwidth is little, user's visit capacity is big, the unequal reason of network point distribution technically comprehensively, cause user to visit Ask the problem that the response speed of website is slow.
In order to keep the data consistent that on caching server, the data of storage are corresponding with corresponding source station server, super civilian This host-host protocol (Hyper Text Transfer Protocol, HTTP) defines series of standards, in caching server Storage data carry out expired control.
But, when using existing method that the data in caching server are updated, there is operation expense relatively big, wave The problem taking resource.
Summary of the invention
The problem that the embodiment of the present invention solves is how to reduce when being updated the data in caching server to run Expense, saves resource.
For solving the problems referred to above, embodiments provide a kind of data-updating method, described data-updating method bag Include: when receiving data more new task, it is judged that caching server stores in the corresponding data of storage and source station server Corresponding data the most consistent;When determining the corresponding data of storage in described caching server and from described source station server When the data of the correspondence of middle storage are inconsistent, indicate described caching server that the corresponding data stored are updated.
Alternatively, in described judgement caching server, the corresponding data of storage are corresponding with storage from the server of source station Data whether consistent, including: send the first data acquisition request, described first data acquisition request to described caching server Including the information of the corresponding data of storage in described caching server, so that described caching server returns corresponding first Response message, described first response message includes the first data header and the first body of data;Receive described caching server Described first data header sent;The second data acquisition request, described second data acquisition is sent to described source station server Request includes the information of the corresponding data of storage in the server of described source station, so that described source station server returns correspondence Second sound information, described second response message includes the second data header and the second body of data;Receive the service of described source station The second data header that device sends;Described first data header is contrasted with described second data header, described when determining When first data header and described second data header are inconsistent, determine in described caching server the corresponding data of storage with In the server of described source station, the data of the correspondence of storage are inconsistent.
Alternatively, the corresponding data stored are updated by the described caching server of described instruction, including: to described Caching server sends the 3rd data acquisition request, and described 3rd data acquisition request includes storage in described caching server The information of corresponding data and the information of pressure refreshing identification, so that described caching server obtains based on from described 3rd data Take the information of the described data parsed in request and force refreshing identification, the corresponding data of storage are updated.
Alternatively, described method also includes: at the end of receiving the corresponding data renewal to storing of the described caching server The data sent update result, and it is detailed to update corresponding Task Progress based on received data renewal result.
Alternatively, described method also includes: when updating result based on described data, determine that described caching server is to storage Corresponding data when updating unsuccessfully, the data re-executing the described instruction described caching server correspondence to being stored are carried out The operation updated.
The embodiment of the present invention additionally provides the data-updating method of a kind of caching server, including: when receiving the service of renewal During the instruction message that the corresponding data to storage that device sends are updated, the corresponding data of self storage are carried out more Newly.
Alternatively, update, described reception, the instruction message that the corresponding data stored are updated that server sends Before, described method also includes: receive the first data acquisition request that described renewal server sends, described first data acquisition Request includes the information of the corresponding data of storage in described caching server;When determining the data that self there is described correspondence Time, send the first corresponding response message to described renewal server, described first response message include the first data header and First body of data;When determining the data that self there is not described correspondence, read corresponding data from source station server, and hold The described operation sending the first corresponding response message to described renewal server of row.
Alternatively, described when receiving the instruction message that the corresponding data stored are updated updating server transmission Time, the corresponding data of self storage are updated, including: the 3rd data acquisition receiving the transmission of described renewal server please Asking, described 3rd data acquisition request includes the information of the corresponding data of storage in described caching server and forces to refresh mark The information known;When parsing the information of data of correspondence from described 3rd data acquisition request and forcing refreshing identification, base In the information resolving the corresponding data obtained, it is judged that self whether there are the data of described correspondence;When determining that self does not exists During the data of described correspondence, from corresponding source station server, read the data of described correspondence and store;When determining that self exists During corresponding data, the corresponding data deletion that will be stored in self, and read described correspondence from the server of described source station Data and store.
Alternatively, the data-updating method of described caching server also includes: when in the corresponding data renewal to self At the end of, generate corresponding data renewal result and send to updating server, so that described renewal server is based on described number Corresponding Task Progress detail is updated according to updating result.
Alternatively, when the corresponding data storing self update unsuccessfully, also include: re-execute described in described reception Update the instruction message that the data stored are updated that server sends, the corresponding data of self storage are updated Operation.
The embodiment of the present invention additionally provides a kind of renewal server, including: judging unit, be suitable to when receiving data renewal During task, it is judged that the corresponding data of storage and the corresponding data stored in the server of source station whether in caching server Cause;Indicating member, is suitable to when determining that in described caching server, the corresponding data of storage are deposited with from the server of described source station When the data of the correspondence of storage are inconsistent, indicate described caching server that the corresponding data stored are updated.
Alternatively, described judging unit, be suitable to send the first data acquisition request to described caching server, described first Data acquisition request includes the information of the corresponding data of storage in described caching server, so that described caching server returns Returning the first corresponding response message, described first response message includes the first data header and the first body of data;Receive institute State described first data header that caching server sends;The second data acquisition request is sent to described source station server, described Second data acquisition request includes the information of the corresponding data of storage in the server of described source station, so that the service of described source station Device returns the second corresponding sound information, and described second response message includes the second data header and the second body of data;Receive The second data header that described source station server sends;It is right described first data header and described second data header to be carried out Ratio, when determining that described first data header and described second data header are inconsistent, determines in described caching server and stores Corresponding data inconsistent with the corresponding data stored in the server of described source station.
Alternatively, described indicating member, be suitable to described caching server send the 3rd data acquisition request, the described 3rd Data acquisition request includes the information of the corresponding data of storage in described caching server and forces the information of refreshing identification, with Make described caching server information based on the described data parsed from described 3rd data acquisition request and force brush The corresponding data of storage are updated by new logo.
Alternatively, described renewal server also includes: memory element, is suitable to receive described caching server right to store The data that the data answered send at the end of updating update result, and update corresponding the appointing of result renewal based on received data Business progress is detailed.
Alternatively, described indicating member, it is further adapted for, when updating result based on described data, determining described caching server pair When the corresponding data of storage update unsuccessfully, re-execute the described caching server of the described instruction corresponding data to being stored The operation being updated.
The embodiment of the present invention additionally provides a kind of caching server, including: updating block, be suitable to when receiving renewal server During the instruction message that the corresponding data to storage sent are updated, the corresponding data of self storage are updated.
Alternatively, described caching server also includes: data receipt unit, is suitable to update server transmission described reception The instruction message that is updated of the corresponding data to storage before, receive the first data that described renewal server sends and obtain Taking request, described first data acquisition request includes the information of the corresponding data of storage in described caching server;Response is single Unit, is suitable to when determining the data that self there is described correspondence, sends the first corresponding response message to described renewal server, Described first response message includes the first data header and the first body of data;When determining that self does not exist the data of described correspondence Time, read corresponding data from source station server, and perform described to send the first corresponding response to described renewal server and disappear The operation of breath.
Alternatively, described updating block, be suitable to receive the 3rd data acquisition request that described renewal server sends, described 3rd data acquisition request includes the information of the corresponding data of storage in described caching server and forces the letter of refreshing identification Breath;When parsing the information of data of correspondence from described 3rd data acquisition request and forcing refreshing identification, based on parsing The information of the corresponding data obtained, it is judged that self whether there are the data of described correspondence;When determine self do not exist described right During the data answered, from corresponding source station server, read the data of described correspondence and store;When determining that self exists correspondence During data, the corresponding data deletion that will be stored in self, and from the server of described source station, read the data of described correspondence And store.
Alternatively, described caching server also includes: update result transmitting element, is suitable to when at the corresponding number to self At the end of updating, generate corresponding data and update result and send to updating server so that described renewal server based on Described data update result and update corresponding Task Progress detail.
Alternatively, described updating block, it is further adapted for, when the corresponding data storing self update unsuccessfully, re-executing The instruction message that the data to storage that described reception described renewal server sends are updated, the correspondence that self is stored The operation that data are updated.
Compared with prior art, technical scheme has the advantage that
Above-mentioned scheme, performs corresponding data more new task, to the data in caching server by updating server Verify with the corresponding data of storage in the server of source station, to indicate storage in caching server according to check results Data are updated rather than all initiate one to source station server when receiving the data acquisition request that client sends every time Secondary data verification request, thus operation expense can be reduced, save resource.
Further, in judging caching server, the data of storage are the most consistent with the data of storage in the server of source station Time, from caching server and source station server, only obtain the first data header and second data head of the corresponding data of storage Portion also carries out contrasting rather than obtaining the full content of the data of correspondence, therefore, it can reduce renewal server and buffer service The quantity of the data interaction of device and source station server, it is possible to improve the speed of contrast, promotes the efficiency that data update.
Further, by caching server at the end of performing the renewal of corresponding data, generate corresponding data and update Data in caching server can be updated and comprehensively grasp, to guarantee the number in caching server by the information of result According to the concordance with the data of source station server.
Further, when caching server is when updating unsuccessfully corresponding data, again indicate by updating server The mode that corresponding data are updated by caching server again, so that caching server can be to updating failed data Again attempt to be updated, may further ensure that the data that in caching server, the data of storage store with source station server Concordance.
Accompanying drawing explanation
Fig. 1 is the flow chart of a kind of data-updating method in the embodiment of the present invention;
Fig. 2 is the structural representation of the data cached renewal system in the embodiment of the present invention;
Fig. 3 is the Signalling exchange figure in the another kind of data updating process in the embodiment of the present invention;
Fig. 4 is a kind of structural representation updating server during the present invention implements;
Fig. 5 is the structural representation of a kind of caching server during the present invention implements.
Detailed description of the invention
For solving the above-mentioned problems in the prior art, the technical scheme that the embodiment of the present invention uses is serviced by renewal Device performs corresponding data more new task, enters the data in caching server with the corresponding data of storage in the server of source station Row verification, to be updated according to check results instruction the data of storage in caching server rather than to receive every time All initiate a data check request to source station server during the data acquisition request that client sends, thus operation can be reduced Expense, saves resource.
Understandable, below in conjunction with the accompanying drawings to the present invention for enabling the above-mentioned purpose of the present invention, feature and advantage to become apparent from Specific embodiment be described in detail.
Fig. 1 shows the flow chart of a kind of data-updating method in the embodiment of the present invention.See Fig. 1, be embodied as In, the data-updating method in the embodiment of the present invention can comprise the following steps that
Step S101: receive the data more new task of user.
In being embodied as implementing, user can according to the actual needs, and data as corresponding in source station in user are more After Xin, send corresponding data more new task to updating server.
Step S102: judge that in caching server, the data corresponding with described data more new task of storage service with source station In device, the data of the correspondence of storage are the most consistent;When judged result is for being, any operation can not be performed, otherwise, then may be used To perform step S103.
In an embodiment of the present invention, updating server can send in the way of data acquisition request by logical simulant-client, From the control letter obtaining the data corresponding with described data more new task respectively from corresponding caching server with source station server Breath, and according to the control information of the corresponding data obtained from caching server and the data of the correspondence from the acquisition of source station server Control information, judge in caching server that the corresponding data of storage with the corresponding data stored in the server of source station are No unanimously, and the corresponding data of storage in caching server are carried out school with the corresponding data stored in the server of source station Test.
Step S102: indicate described caching server that the corresponding data stored are updated.
In being embodied as implementing, update corresponding data and source station clothes that server stores in determining caching server In business device, the data of the correspondence of storage are inconsistent, are updated, by instruction caching server, the corresponding data stored Mode, so that the corresponding data of storage keep one with the corresponding data of storage in the server of source station in caching server Cause.
Below in conjunction with Fig. 2 and Fig. 3, the data-updating method in the embodiment of the present invention is further described in detail.
Fig. 2 shows the structure of a kind of data update system in the embodiment of the present invention.See Fig. 2, in being embodied as, Data update system in the embodiment of the present invention can include updating server 201, multiple caching server 202 and source station service Device 203, wherein, updates server 201 and is connected with caching server 202 and source station server 203 respectively, caching server 202 Also it is connected with source station server 203.
Below in conjunction with Fig. 3, the operation principle of the data update system in the embodiment of the present invention shown in Fig. 2 is done into one Walk detailed introduction.
Step S301: update server and receive the data more new task of user, and send first to described caching server Data acquisition request.
In being embodied as, user can input the data renewal of correspondence according to the actual needs to renewal server 201 Task, so that updating server 201 to perform described data more new task.
In being embodied as, renewal server 201, when receiving the data more new task of user's input, can simulate visitor Family end sends the first data acquisition request of correspondence to caching server 202, i.e. initiates HTTP request.Institute State the information that HTTP request includes the corresponding data of acquisition request.
Step S302: caching server receives described first data acquisition request, and returns the to described renewal server One response message.
In being embodied as, corresponding caching server 202 obtains in the first data receiving renewal server 201 transmission When taking request, the information of the corresponding data of acquisition request can be parsed from described first data acquisition request, namely right The information of the URL (URL) of the data answered, and the URL of corresponding data based on acquisition request, determine self Whether there are the corresponding data of acquisition request.
When determining the data of the correspondence that self there is acquisition request, caching server 202 can generate the first of correspondence Response message also sends to described renewal server 201.Described first response message, namely http response, including the first data Head (or claiming HTTP header) and the first data header (or claiming HTTP body of data).Wherein, described HTTP header, it is used for specifying The control information that data in HTTP body are corresponding, described control information includes the length of HTTP body of data, expired time, Long life cycle, data type etc.;When determining the data of the correspondence that self there is not acquisition request, caching server 202 is permissible Capture the data of acquisition request from source station, and return institute according to the information of the corresponding data captured to updating server 201 State the first response message.
Step S303: update server and receive the first data header in described first response message.
In being embodied as, because the first data header in the first response message includes the control letter of the first body of data Breath, just may determine that the content of the first body of data by the first data header.Therefore, in an embodiment of the present invention, update During the server 201 first data header in finishing receiving the first response message, by disconnecting with caching server 202 Mode, interrupt receiving the first response message, namely do not receive the information of the first body of data in the first response message, thus Transfer resource can be saved.
Step S304: update server and send the second data acquisition request to described source station server.
In being embodied as, in order to obtain the control of data corresponding with described data more new task in source station server 203 Information processed, updating server 201 can obtain with the second data that simulated cache server 202 sends correspondence to source station server 203 Take request, namely initiate HTML (Hypertext Markup Language) (Hyper Text TransferProtocol, HTTP) request.Described HTTP Request includes the information of the corresponding data of acquisition request.
Step S305: source station server receives described second data acquisition request, and returns the to described renewal server Two response messages.
In being embodied as, corresponding source station server 203 obtains in the second data receiving renewal server 201 transmission When taking request, the information of the corresponding data of acquisition request can be parsed from described second data acquisition request, namely right The information of the URL of the data answered, and the URL of corresponding data based on acquisition request, generate the second response message and send extremely Described renewal server.Wherein, the structure of the second response message and the first response message is identical, namely includes the second number of correspondence According to head and the information of the second body of data.
Step S306: update server and receive the second data header in described second response message, and by described first Data header compares with described second data header;When determining the first head and the second head is consistent, do not perform any Operation;Otherwise, then step S307 is performed.
In being embodied as, update server 201 in described 3rd data acquisition request, be filled with corresponding data Information, also carries the pressure refreshing identification of correspondence, so that caching server 202 is resolving from the 3rd data acquisition request When going out to force refreshing identification, corresponding data are updated.
Step S307: caching server receives the 3rd data acquisition request, and the corresponding data being stored self are entered Row updates.
In being embodied as, caching server 202 receive update server send three data acquisition request time, The 3rd data acquisition request received can be resolved, and resolve the information of the data obtaining correspondence and described pressure During refreshing identification, first determine whether self whether to exist the letter of the corresponding data obtained with parsing from the 3rd data acquisition request The data that breath is corresponding;When determining that self exists corresponding data, the corresponding data that self is stored by caching server 202 Delete, and capture the data of correspondence from source station server 203 and store, thus complete the renewal to corresponding data;Otherwise, when When determining the data that self there is not correspondence, caching server 202 then can directly solve according to from the 3rd data acquisition request The information of the corresponding data separated out, captures the data of correspondence from source station server 203 and stores, thus complete to self The renewal of corresponding data.
By the way of above-mentioned, so that the data between caching server 202 and source station server 203 keep one Cause, especially for the data that data volume is bigger, owing to being loaded onto caching server, send when receiving client Data acquisition request time, it is not necessary to read corresponding data again from source station, can directly the data that self is cached be returned to Client, so that user can obtain asked data accurately and in time, improves the speed of data response, Jin Erke To promote the experience of user.
In being embodied as, in order to further ensure that the data consistency between caching server and source station, the present invention is real Execute the data-updating method in example can also include:
Step S308: the data of described correspondence, at the end of the data renewal to self correspondence, are updated by caching server Result sends to updating server.
In being embodied as, described data update result and include that corresponding data are updated by caching server 202 Result, i.e. data are updated successfully or the information of failure.Wherein, successfully read from source station server 203 when caching server 202 During corresponding data, then corresponding data are updated successfully;Otherwise, then corresponding data are updated unsuccessfully.
Step S309: update server and update, based on described data, the Task Progress detail that result renewal is corresponding.
In being embodied as, due to corresponding data update result only at caching server 202 at the number to self correspondence According to just sending at the end of updating to updating server 201 so that renewal server 201 updates result according to corresponding data and determines The more new state of corresponding data be successfully time, just may determine that caching server 202 is right with what source station server 203 was stored The data answered have kept consistent, now, update server 201 and can update knot according to the data that caching server 202 sends The corresponding Task Progress detail of self storage is updated by fruit.
In being embodied as, it is right that renewal server 201 determines in the data renewal result sent based on caching server 202 When the data answered are updated successfully, any operation can not be performed, or when there being next data more new task, then perform Next data more new task.
Update server 201 and determine that the data of correspondence update in the data renewal result sent based on caching server 202 During failure, then resend order three data acquisition request to caching server 202, so that caching server 202 weighs again Newly read once corresponding data from source station server 203, to again attempt to service from source station by instruction caching server 202 Device reads corresponding data, improves the success rate that data update, it is ensured that number between caching server 202 and source station server 203 According to concordance.
Above-mentioned data-updating method in the embodiment of the present invention is described in detail, below by above-mentioned method Corresponding device is introduced.
Fig. 4 shows a kind of structure updating server in the embodiment of the present invention.See Fig. 4, in being embodied as, this Renewal server 400 in inventive embodiments can include judging unit 401 and indicating member 402, wherein:
Described judging unit 401, is suitable to when receiving data more new task, it is judged that the correspondence of storage in caching server Data the most consistent with the corresponding data of storage in the server of source station.
Described indicating member 402, is suitable to when determining the corresponding data of storage in described caching server and from described source When the data of the correspondence of storage are inconsistent in site server, indicate described caching server that the corresponding data stored are carried out Update.
In an embodiment of the present invention, described judging unit 401, be suitable to send the first data to described caching server and obtain Taking request, described first data acquisition request includes the information of the corresponding data of storage in described caching server, so that Described caching server returns the first corresponding response message, and described first response message includes the first data header and the first number According to body;Receive described first data header that described caching server sends;The second number is sent to described source station server According to obtaining request, described second data acquisition request includes the information of the corresponding data of storage in the server of described source station, with Making described source station server return the second corresponding sound information, described second response message includes the second data header and second Body of data;Receive the second data header that described source station server sends;By described first data header and described second Data header contrasts, and when determining that described first data header and described second data header are inconsistent, determines described slow The corresponding data depositing in server the corresponding data of storage and store in the server of described source station are inconsistent.
In an embodiment of the present invention, described indicating member 402, be suitable to send the 3rd data to described caching server and obtain Taking request, described 3rd data acquisition request includes the information of the corresponding data of storage in described caching server and forces brush The information of new logo, so that described caching server is based on the described data parsed from described 3rd data acquisition request Information and force refreshing identification, the corresponding data of storage are updated.
In being embodied as, the embodiment of the present invention updates server 400 and can also include memory element 403, wherein:
Described memory element 403, is suitable to receive at the end of the corresponding data of storage are updated by described caching server and sends out The data sent update result, and update, based on received data, the Task Progress detail that result renewal is corresponding.
In an embodiment of the present invention, described indicating member 402, it is further adapted for, when updating result based on described data, determining When the corresponding data of storage are updated unsuccessfully by described caching server, re-execute the described caching server of described instruction to institute The operation that the corresponding data of storage are updated.
Fig. 5 shows the structure of a kind of caching server in the embodiment of the present invention.See Fig. 5, in being embodied as, this Caching server 500 in inventive embodiments can include updating block 501, wherein:
Described updating block 501, is suitable to the corresponding data to storage when receiving renewal server transmission and is updated Instruction message time, the corresponding data of self storage are updated.
In being embodied as, the caching server 500 in the embodiment of the present invention can also include data receipt unit 502, Wherein:
Described data receipt unit 502, is suitable to update, described reception, the corresponding data to storage that server sends Before the instruction message being updated, receive the first data acquisition request that described renewal server sends, described first data The request of acquisition includes the information of the corresponding data of storage in described caching server;Response unit, is suitable to determine and self deposits When the data of described correspondence, send the first corresponding response message, described first response message bag to described renewal server Include the first data header and the first body of data;When determining the data that self there is not described correspondence, read from source station server Take the data of correspondence, and perform the described operation sending the first corresponding response message to described renewal server.
In an embodiment of the present invention, described updating block 501, be suitable to receive the 3rd number that described renewal server sends According to obtaining request, described 3rd data acquisition request includes that in described caching server, the information of the corresponding data of storage is with strong The information of refreshing identification processed;When the information of the data parsing correspondence from described 3rd data acquisition request is marked with forcing to refresh During knowledge, based on the information resolving the corresponding data obtained, it is judged that self whether there are the data of described correspondence;When determining self When there are not the data of described correspondence, from corresponding source station server, read the data of described correspondence and store;When determining certainly When there are corresponding data in body, the corresponding data deletion that will be stored in self, and from the server of described source station, read institute State the data of correspondence and store.
In being embodied as, the caching server 500 in the embodiment of the present invention can also include updating result transmitting element 503, wherein:
Described renewal result transmitting element 503, is suitable to, when at the end of the corresponding data renewal to self, generate correspondence Data update result send to updating server so that described renewal server based on described data update result update right The Task Progress answered is detailed.
In an embodiment of the present invention, described updating block 501, it is further adapted for when the data of the correspondence to self update unsuccessfully Time, re-execute the instruction message that the data stored are updated that described reception described renewal server sends, to self The operation that the corresponding data of storage are updated.
Using above-mentioned scheme, user can perform corresponding data more new task when required by updating server, Data in caching server are verified with the corresponding data of storage in the server of source station, to indicate according to check results The data of storage in caching server are updated rather than are receiving the data acquisition request that client sends every time Time, all initiate data check request to source station server, thus operation expense can be reduced, save resource.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is can Completing instructing relevant hardware by program, this program can be stored in computer-readable recording medium, and storage is situated between Matter may include that ROM, RAM, disk or CD etc..
Having been described in detail the method and system of the embodiment of the present invention above, the present invention is not limited to this.Any Skilled person, without departing from the spirit and scope of the present invention, all can make various changes or modifications, therefore the guarantor of the present invention The scope of protecting should be as the criterion with claim limited range.

Claims (20)

1. a data-updating method, it is characterised in that including:
When receiving data more new task, it is judged that caching server stores in the corresponding data of storage and source station server Corresponding data the most consistent;
When the number determining that in described caching server, the corresponding data of storage are corresponding with storage from the server of described source station According to time inconsistent, indicate described caching server that the corresponding data stored are updated.
Data-updating method the most according to claim 1, it is characterised in that in described judgement caching server, storage is right The data answered are the most consistent with the data of the correspondence of storage from the server of source station, including:
Sending the first data acquisition request to described caching server, described first data acquisition request includes described buffer service The information of the corresponding data of storage in device, so that described caching server returns the first corresponding response message, described the One response message includes the first data header and the first body of data;
Receive described first data header that described caching server sends;
Sending the second data acquisition request to described source station server, described second data acquisition request includes that described source station services The information of the corresponding data of storage in device, so that the second sound information that server return in described source station is corresponding, described second Response message includes the second data header and the second body of data;
Receive the second data header that described source station server sends;
Described first data header is contrasted with described second data header, when determining that described first data header is with described When second data header is inconsistent, determine that in described caching server, the corresponding data of storage are deposited in the server of described source station The data of the correspondence of storage are inconsistent.
Data-updating method the most according to claim 1, it is characterised in that the described caching server of described instruction is to being deposited The corresponding data of storage are updated, including:
Sending the 3rd data acquisition request to described caching server, described 3rd data acquisition request includes in caching server The information of the corresponding data of storage and the information of pressure refreshing identification, so that described caching server is based on from the described 3rd The corresponding data of storage are carried out more by the information of the described data parsed in data acquisition request and pressure refreshing identification Newly.
Data-updating method the most according to claim 1, it is characterised in that also include:
Receive the data sent at the end of the corresponding data of storage are updated by described caching server and update result, and based on institute The data received update result and update corresponding Task Progress detail.
Data-updating method the most according to claim 4, it is characterised in that also include:
When updating result based on described data, determine when the corresponding data of storage are updated unsuccessfully by described caching server, weight The operation that the new data performing the described instruction described caching server correspondence to being stored are updated.
6. the data-updating method of a caching server, it is characterised in that including:
When receiving the instruction message that the corresponding data to storage updating server transmission are updated, to self storage Corresponding data are updated.
The data-updating method of caching server the most according to claim 6, it is characterised in that update clothes described reception Before the instruction message that the corresponding data to storage that business device sends are updated, also include:
Receiving the first data acquisition request that described renewal server sends, described first data acquisition request includes described caching The information of the corresponding data of storage in server;
When determining the data that self there is described correspondence, send the first corresponding response message, institute to described renewal server State the first response message and include the first data header and the first body of data;
When determining the data that self there is not described correspondence, read corresponding data from source station server, and perform described to Described renewal server sends the operation of the first corresponding response message.
The data-updating method of caching server the most according to claim 6, it is characterised in that described when receiving renewal clothes During the instruction message that the corresponding data to storage that business device sends are updated, the corresponding data of self storage are carried out more Newly, including:
Receiving the 3rd data acquisition request that described renewal server sends, described 3rd data acquisition request includes described caching The information of the corresponding data of storage and the information forcing refreshing identification in server;
When parsing the information of data of correspondence from described 3rd data acquisition request and forcing refreshing identification, based on parsing The information of the corresponding data obtained, it is judged that self whether there are the data of described correspondence;
When determining the data that self there is not described correspondence, from corresponding source station server, read the data of described correspondence also Storage;
When determining that self exists corresponding data, the corresponding data deletion that will be stored in self, and take from described source station Business device reads the data of described correspondence and stores.
The data-updating method of caching server the most according to claim 6, it is characterised in that also include:
When, at the end of the corresponding data renewal to self, generating corresponding data renewal result and send to updating server, So that described renewal server updates result based on described data updates corresponding Task Progress detail.
The data-updating method of caching server the most according to claim 6, it is characterised in that when what self was stored When corresponding data update unsuccessfully, also include:
Re-execute the instruction message that the data stored are updated that described reception described renewal server sends, to self The operation that the corresponding data of storage are updated.
11. 1 kinds update server, it is characterised in that including:
Judging unit, is suitable to when receiving data more new task, it is judged that the corresponding data stored in caching server and source In site server, the data of the correspondence of storage are the most consistent;
Indicating member, is suitable to when determining that in described caching server, the corresponding data of storage are deposited with from the server of described source station When the data of the correspondence of storage are inconsistent, indicate described caching server that the corresponding data stored are updated.
12. renewal servers according to claim 11, it is characterised in that described judging unit, are suitable to described caching Server sends the first data acquisition request, and described first data acquisition request includes the correspondence of storage in described caching server The information of data so that described caching server returns the first corresponding response message, described first response message includes First data header and the first body of data;
Receive described first data header that described caching server sends;Send the second data to described source station server to obtain Taking request, described second data acquisition request includes the information of the corresponding data of storage in the server of described source station, so that Described source station server returns the second corresponding sound information, and described second response message includes the second data header and the second data Body;Receive the second data header that described source station server sends;By described first data header and described second data Head contrasts, and when determining that described first data header and described second data header are inconsistent, determines described caching clothes In business device, the corresponding data of storage are inconsistent with the corresponding data stored in the server of described source station.
13. renewal servers according to claim 11, it is characterised in that described indicating member, are suitable to described caching Server sends the 3rd data acquisition request, and described 3rd data acquisition request includes the correspondence of storage in described caching server Data information and force refreshing identification information so that described caching server based on from described 3rd data acquisition please The corresponding data of storage are updated by the information of the described data parsed in asking and pressure refreshing identification.
14. renewal servers according to claim 11, it is characterised in that also include:
Memory element, is suitable to receive the data sent at the end of the corresponding data of storage are updated by described caching server and updates As a result, and update result based on received data and update corresponding Task Progress detail.
15. renewal servers according to claim 14, it is characterised in that described indicating member, are further adapted for when based on institute State data and update result, determine when the corresponding data of storage are updated unsuccessfully by described caching server, re-execute described finger Show the operation that the corresponding data stored are updated by described caching server.
16. 1 kinds of caching servers, it is characterised in that including:
Updating block, is suitable to when receiving the instruction message being updated the corresponding data stored updating server transmission Time, the corresponding data of self storage are updated.
17. caching servers according to claim 16, it is characterised in that also include:
Data receipt unit, is suitable to update, described reception, the finger being updated the corresponding data stored that server sends Before showing message, receiving the first data acquisition request that described renewal server sends, described first data acquisition request includes The information of the corresponding data of storage in described caching server;
Response unit, is suitable to when determining the data that self there is described correspondence, sends corresponding the to described renewal server One response message, described first response message includes the first data header and the first body of data;When determining that self does not exist institute When stating the data of correspondence, read corresponding data from source station server, and perform described to described renewal server transmission correspondence The operation of the first response message.
18. caching servers according to claim 16, it is characterised in that described updating block, be suitable to receive described in more The 3rd data acquisition request that new server sends, described 3rd data acquisition request includes storage in described caching server The information of corresponding data and the information of pressure refreshing identification;When the number parsing correspondence from described 3rd data acquisition request According to information and when forcing refreshing identification, based on the information resolving the corresponding data obtained, it is judged that self whether exist described Corresponding data;
When determining the data that self there is not described correspondence, from corresponding source station server, read the data of described correspondence also Storage;When determining that self exists corresponding data, the corresponding data deletion that will be stored in self, and take from described source station Business device reads the data of described correspondence and stores.
19. caching servers according to claim 16, it is characterised in that also include:
Update result transmitting element, be suitable to, when at the end of the corresponding data renewal to self, generate corresponding data and update Result sends to updating server, so that the task that described renewal server updates result renewal corresponding based on described data is entered Degree detail.
20. caching servers according to claim 16, it is characterised in that described updating block, are further adapted for when to self When the corresponding data of storage update unsuccessfully, the data to storage re-executing the transmission of described reception described renewal server are entered The instruction message that row updates, the operation that the corresponding data storing self are updated.
CN201610522606.0A 2016-07-05 2016-07-05 Caching server, renewal server and data-updating method Pending CN106161623A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610522606.0A CN106161623A (en) 2016-07-05 2016-07-05 Caching server, renewal server and data-updating method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610522606.0A CN106161623A (en) 2016-07-05 2016-07-05 Caching server, renewal server and data-updating method

Publications (1)

Publication Number Publication Date
CN106161623A true CN106161623A (en) 2016-11-23

Family

ID=58062019

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610522606.0A Pending CN106161623A (en) 2016-07-05 2016-07-05 Caching server, renewal server and data-updating method

Country Status (1)

Country Link
CN (1) CN106161623A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107564570A (en) * 2017-08-22 2018-01-09 广州视源电子科技股份有限公司 Patient information acquisition method and device, storage medium and equipment
CN107665235A (en) * 2017-07-27 2018-02-06 上海壹账通金融科技有限公司 Method for caching and processing, device, computer equipment and storage medium
CN109285022A (en) * 2017-07-21 2019-01-29 东芝泰格有限公司 Information processing unit and control method, terminal device
CN109597817A (en) * 2018-11-14 2019-04-09 阿里巴巴集团控股有限公司 A kind of caching data processing method, device, equipment and medium
CN110943876A (en) * 2018-09-21 2020-03-31 阿里巴巴集团控股有限公司 URL state detection method, device, equipment and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101656652A (en) * 2008-08-21 2010-02-24 中国移动通信集团公司 Content synchronization method, equipment and system for dynamic content delivery
CN102111449A (en) * 2011-02-23 2011-06-29 北京蓝汛通信技术有限责任公司 Method, device and system for updating data
CN102420857A (en) * 2011-11-18 2012-04-18 北京蓝汛通信技术有限责任公司 Operation instruction transmission and processing methods, transmission and cache servers and storage system
CN103327026A (en) * 2013-06-28 2013-09-25 腾讯科技(深圳)有限公司 Data updating method and updating system
CN103812849A (en) * 2012-11-15 2014-05-21 腾讯科技(深圳)有限公司 Local cache updating method and system, client and server
CN104113567A (en) * 2013-04-18 2014-10-22 腾讯科技(深圳)有限公司 Content distribution network data processing method, device and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101656652A (en) * 2008-08-21 2010-02-24 中国移动通信集团公司 Content synchronization method, equipment and system for dynamic content delivery
CN102111449A (en) * 2011-02-23 2011-06-29 北京蓝汛通信技术有限责任公司 Method, device and system for updating data
CN102420857A (en) * 2011-11-18 2012-04-18 北京蓝汛通信技术有限责任公司 Operation instruction transmission and processing methods, transmission and cache servers and storage system
CN103812849A (en) * 2012-11-15 2014-05-21 腾讯科技(深圳)有限公司 Local cache updating method and system, client and server
CN104113567A (en) * 2013-04-18 2014-10-22 腾讯科技(深圳)有限公司 Content distribution network data processing method, device and system
CN103327026A (en) * 2013-06-28 2013-09-25 腾讯科技(深圳)有限公司 Data updating method and updating system

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109285022A (en) * 2017-07-21 2019-01-29 东芝泰格有限公司 Information processing unit and control method, terminal device
CN107665235A (en) * 2017-07-27 2018-02-06 上海壹账通金融科技有限公司 Method for caching and processing, device, computer equipment and storage medium
CN107665235B (en) * 2017-07-27 2020-06-30 深圳壹账通智能科技有限公司 Cache processing method and device, computer equipment and storage medium
CN107564570A (en) * 2017-08-22 2018-01-09 广州视源电子科技股份有限公司 Patient information acquisition method and device, storage medium and equipment
CN110943876A (en) * 2018-09-21 2020-03-31 阿里巴巴集团控股有限公司 URL state detection method, device, equipment and system
CN109597817A (en) * 2018-11-14 2019-04-09 阿里巴巴集团控股有限公司 A kind of caching data processing method, device, equipment and medium

Similar Documents

Publication Publication Date Title
CN106161623A (en) Caching server, renewal server and data-updating method
US9313015B2 (en) HTTP-based synchronization method and apparatus
US8856279B2 (en) Method and system for object prediction
US10296653B2 (en) Systems and methods for accelerating web page loading
CN108228282A (en) For the method and device of Website page loading
CN103124263B (en) A kind of advertisement push system and advertisement pushing equipment, Advertisement Server
CN100562873C (en) Obtain the system and method for web page element in the webpage
CN111212156B (en) Network connection method and device
CN102882974A (en) Method for saving website access resource by website identification version number
CN102158518B (en) Data transmission method in content distribution network (CDN), network node and system
CN106657426A (en) Processing method and device for domain name parsing request, and server
CN103347092A (en) Method and device for recognizing cacheable file
CN106487906B (en) A kind of mobile Web application protocol switching method of context aware
CN103401946A (en) HTTP (hyper text transfer protocol) uploading acceleration method and system
CN111064780B (en) Multitask content updating method, device, equipment and medium
CN104376122A (en) Method for browser client to obtain static file and server
CN105393247A (en) Webpage optimization device and method
US20150006622A1 (en) Web contents transmission method and apparatus
CN110688596A (en) Static webpage updating method and device, computer equipment and storage medium
CN109587210A (en) A kind of implementation method of the information push of more browser-safes
CN105721231B (en) A kind of quality of service perception detection method and device
TW201644249A (en) Devices and methods for performing TCP handshakes
CN109587249A (en) Information sending, receiving method, device, server, client and storage medium
CN110912769B (en) CDN cache hit rate statistical method, system, network device and storage medium
CN104468642B (en) Browser rs cache resource prediction method and system, reverse proxy device and browser

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20161123