CN105577798B - Update the method and device of publication data - Google Patents
Update the method and device of publication data Download PDFInfo
- Publication number
- CN105577798B CN105577798B CN201510994191.2A CN201510994191A CN105577798B CN 105577798 B CN105577798 B CN 105577798B CN 201510994191 A CN201510994191 A CN 201510994191A CN 105577798 B CN105577798 B CN 105577798B
- Authority
- CN
- China
- Prior art keywords
- data
- renewal time
- time information
- released
- information
- 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.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/568—Storing data temporarily at an intermediate stage, e.g. caching
- H04L67/5682—Policies or rules for updating, deleting or replacing the stored data
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/958—Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
Abstract
The present invention provides a kind of methods for updating publication data, this method comprises: sending the request of data for obtaining the first renewal time information of data to be released, request of data includes identification information corresponding with data to be released, and receives the first renewal time information of the data to be released returned in response to request of data;The second renewal time information of the published data being locally stored is extracted according to identification information, and the first renewal time information and the second renewal time information are compared;If the first renewal time information newly in the second renewal time information, determines and updates published data corresponding with the second renewal time information;The present invention also provides a kind of devices for updating publication data.The present invention solve how update in time CDN server be locally stored in data while, reduce bring CDN server load excessive at no point in the update process as much as possible, the problem of response speed reduces and the data traffic between main website server increases.
Description
Technical field
The present invention relates to Internet technical fields, specifically, the present invention relates to it is a kind of update publication data method and
Device.
Background technique
CDN (Content Delivery Network, content distributing network) server is for by existing net
Increase by one layer of new network architecture in network, the content of the server of main website is published to closest to the network " edge " of user
CDN server allows user to obtain required content nearby, to solve network congestion situation, improves user and accesses website
Response speed.The application of CDN server is not only technically solved since network bandwidth is small, user's amount of access is big, site point
The problem of unequal factor of cloth causes, and solve the problems, such as that the speed of user's access websites response causes slowly.
In news briefing application scenarios, the data to be released editted are uploaded to main website server by network editing, and
Main website server is not usually directly by data publication to be released to the client of any terminal device.Because substantial amounts and
It is all over the place to be laid out complicated client, if only data to be released directly given a news briefing by main website server,
The operation load that can aggravate main website server significantly, reduces main website server response speed.It therefore, to solve the above problems, will
CDN server receives the data to be released from main website server as level 2 buffering server, then to be released by what is received
Data publication duties are transferred to CDN server to each client, with this by data publication, reduce the load of main website server.
In the prior art, main website server will issue data to be released to CDN server according to preset frequency, for more
The published data that new CDN server is locally stored.However, the main website server that CDN server receives every time issue to
Issuing data not being is newest publication data.If main website server will be according to preset frequency without selectively to CDN service
Device issues whole data to be released, and CDN server also without will selectively receive whole main website servers issue it is to be released
Data, will lead to CDN server load increase, the reaction speed of CDN server it is slack-off, simultaneously CDN server and main website clothes
Data traffic between business device increases.
Therefore, how while updating CDN server local data in time, and it can solve band at no point in the update process
The problem of CDN server load excessive, the response speed come reduce and the data traffic between main website server increases, becomes
Current urgent problem to be solved.
Summary of the invention
To overcome above-mentioned technical problem or at least being partially solved above-mentioned technical problem, spy proposes following technical scheme:
One embodiment of the present of invention proposes a kind of method for updating publication data, comprising:
Send the request of data for obtaining the first renewal time information of data to be released, the request of data include with
The corresponding identification information of data to be released, and when receiving the first update of the data to be released returned in response to the request of data
Between information;
Extract the second renewal time information of published data being locally stored according to the identification information, and by described the
One renewal time information is compared with the second renewal time information;
If the first renewal time information newly in the second renewal time information, is determined and is updated with described second more
The corresponding published data of new temporal information.
Preferably, the request of data for obtaining the first renewal time information of data to be released is sent, comprising:
The request of data for obtaining the first renewal time information of data to be released is sent according to preset frequency;Or
The request of data for obtaining the first renewal time information of data to be released is sent in response to updating trigger action.
Preferably, the second renewal time information of the published data being locally stored, packet are extracted according to the identification information
It includes:
The data packet of published data is obtained in being locally stored according to the identification information;
Header information in the data packet is read, and therefrom extracts the second renewal time information of published data.
Optionally it is determined that after updating published data corresponding with the second renewal time information, further includes:
Generate and send the acquisition request for obtaining data to be released corresponding with the identification information;
The data to be released corresponding with the identification information returned in response to the acquisition request are received, it is described to be released
Data include the first renewal time information;
Based on the data to be released, the published data being locally stored is executed and updates operation.
The data to be released are preferably based on, operation is updated to executing with the published data for storage, it is specific to wrap
It includes:
The published data is replaced using the data to be released, and described in the first renewal time information replacement
Second renewal time information.
Another embodiment of the present invention proposes a kind of device for updating publication data, comprising:
Sending module, it is described for sending the request of data of the first renewal time information for obtaining data to be released
Request of data includes identification information corresponding with data to be released;
First receiving module, for receiving the first renewal time of the data to be released returned in response to the request of data
Information;
Extraction module, for extracting the second renewal time letter for the published data being locally stored according to the identification information
Breath;
Contrast module, for comparing the first renewal time information with the second renewal time information;
Determining module, for determining when the first renewal time information is newly when the second renewal time information
Update published data corresponding with the second renewal time information.
Optionally, the sending module includes:
First transmission unit, for sending the first renewal time information for obtaining data to be released according to preset frequency
Request of data;Or
Second transmission unit, when for sending the first update for obtaining data to be released in response to updating trigger action
Between information request of data.
Preferably, the extraction module includes:
Data packet acquiring unit, for obtaining the data of published data in being locally stored according to the identification information
Packet;
Information extraction unit for reading header information in the data packet, and therefrom extracts the of published data
Two renewal time information.
Preferably, after the determining module, the device further include:
Generation module, the acquisition for generating and sending for obtaining data to be released corresponding with the identification information are asked
It asks;
Second receiving module, for receiving in response to the corresponding with the identification information pending of acquisition request return
Cloth data, the data to be released include the first renewal time information;
Update module executes the published data being locally stored and updates behaviour for being based on the data to be released
Make.
Preferably, the update module is specifically used for: using the data replacement to be released published data, and with
The first renewal time information replaces the second renewal time information.
The present invention solve how in time update CDN server be locally stored in data while, as much as possible
Reduce bring CDN server load excessive, response speed reduction and the data between main website server at no point in the update process
The problem of increased flow capacity.Firstly, sending the request of data for obtaining the first renewal time information of data to be released, data are asked
It asks including identification information corresponding with data to be released, and receives the first of the data to be released returned in response to request of data more
New temporal information only receives the first renewal time information of the data to be released returned in response to request of data in this step,
The data volume of first renewal time information is far smaller than the data volume of entire data to be released;Then, it is extracted according to identification information
Second renewal time information of the published data being locally stored, and by the first renewal time information and the second renewal time information
It compares;If the first renewal time information newly in the second renewal time information, is determined and is updated and the second renewal time information
Corresponding published data;Only when comparison determines the first renewal time information of data to be released newly in being locally stored
When issuing the second renewal time information of data, it is entirely corresponding with the first renewal time just to execute main website server acquisition
The operation of data to be updated avoids the first renewal time information in data to be released not newly in the second of published data
The situation for obtaining data to be released caused by when renewal time information in vain improves and judges whether to execute update operating process
In response speed, and reduce invalid data transmission data traffic.
The additional aspect of the present invention and advantage will be set forth in part in the description, these will become from the following description
Obviously, or practice through the invention is recognized.
Detailed description of the invention
Above-mentioned and/or additional aspect and advantage of the invention will become from the following description of the accompanying drawings of embodiments
Obviously and it is readily appreciated that, in which:
Fig. 1 is the flow diagram of the method for the update publication data of one embodiment of the invention;
Fig. 2 is the flow diagram of the method for the update publication data of a preferred embodiment of the invention;
Fig. 3 is the structural schematic diagram of the device of the update publication data of another embodiment of the present invention.
Specific embodiment
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end
Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached
The embodiment of figure description is exemplary, and for explaining only the invention, and is not construed as limiting the claims.
Those skilled in the art of the present technique are appreciated that unless expressly stated, singular " one " used herein, " one
It is a ", " described " and "the" may also comprise plural form.It is to be further understood that being arranged used in specification of the invention
Diction " comprising " refer to that there are the feature, integer, step, operation, element and/or component, but it is not excluded that in the presence of or addition
Other one or more features, integer, step, operation, element, component and/or their group.It should be understood that when we claim member
Part is " connected " or when " coupled " to another element, it can be directly connected or coupled to other elements, or there may also be
Intermediary element.In addition, " connection " used herein or " coupling " may include being wirelessly connected or wirelessly coupling.It is used herein to arrange
Diction "and/or" includes one or more associated wholes for listing item or any cell and all combinations.
Those skilled in the art of the present technique are appreciated that unless otherwise defined, all terms used herein (including technology art
Language and scientific term), there is meaning identical with the general understanding of those of ordinary skill in fields of the present invention.Should also
Understand, those terms such as defined in the general dictionary, it should be understood that have in the context of the prior art
The consistent meaning of meaning, and unless idealization or meaning too formal otherwise will not be used by specific definitions as here
To explain.
Those skilled in the art of the present technique are appreciated that " terminal " used herein above, " terminal device " both include wireless communication
The equipment of number receiver, only has the equipment of the wireless signal receiver of non-emissive ability, and including receiving and emitting hardware
Equipment, have on bidirectional communication link, can carry out two-way communication reception and emit hardware equipment.This equipment
It may include: honeycomb or other communication equipments, shown with single line display or multi-line display or without multi-line
The honeycomb of device or other communication equipments;PCS (Personal Communications Service, PCS Personal Communications System), can
With combine voice, data processing, fax and/or communication ability;PDA (Personal Digital Assistant, it is personal
Digital assistants), it may include radio frequency receiver, pager, the Internet/intranet access, web browser, notepad, day
It goes through and/or GPS (Global Positioning System, global positioning system) receiver;Conventional laptop and/or palm
Type computer or other equipment, have and/or the conventional laptop including radio frequency receiver and/or palmtop computer or its
His equipment." terminal " used herein above, " terminal device " can be it is portable, can transport, be mounted on the vehicles (aviation,
Sea-freight and/or land) in, or be suitable for and/or be configured in local runtime, and/or with distribution form, operate in the earth
And/or any other position operation in space." terminal " used herein above, " terminal device " can also be communication terminal, on
Network termination, music/video playback terminal, such as can be PDA, MID (Mobile Internet Device, mobile Internet
Equipment) and/or mobile phone with music/video playing function, it is also possible to the equipment such as smart television, set-top box.
Fig. 1 is the flow diagram of the method for the update publication data of one embodiment of the invention.
The present embodiment can execute at CDN server end.
Step S110: the request of data for obtaining the first renewal time information of data to be released, request of data are sent
Including identification information corresponding with data to be released, and receives the first of the data to be released returned in response to request of data and update
Temporal information;Step S120: the second renewal time information of the published data being locally stored is extracted according to identification information, and will
First renewal time information is compared with the second renewal time information;Step S130: if the first renewal time information newly in
Second renewal time information determines and updates published data corresponding with the second renewal time information.
Step S110: the request of data for obtaining the first renewal time information of data to be released, request of data are sent
Including identification information corresponding with data to be released, and receives the first of the data to be released returned in response to request of data and update
Temporal information.
Wherein, the request of data for obtaining the first renewal time information of data to be released is sent, is specifically included: foundation
Preset frequency sends the request of data for obtaining the first renewal time information of data to be released;Or in response to updating triggering behaviour
Send the request of data of the first renewal time information for obtaining data to be released.
For example, the news data for having edited completion is uploaded into main website server in news briefing application scenarios,
In, the news data of completion will have been edited as data to be released;Main website server receives the data to be released, and this is waited for
Issue data and its corresponding first renewal time information such as " 2015.12.22.14:35 ", its corresponding identification information such as
" social news plate -1100 " is stored in association in main website server local cache, for CDN server acquisition;CDN clothes
Business device is sent once according to preset frequency such as each hour for obtaining the number of the first renewal time information of data to be released
According to request, to determine the corresponding publication of the data to be released being stored in main website server newly stored in CDN server
Data.
In another example the news data for having edited completion is uploaded into main website server in news briefing application scenarios,
In, the news data of completion will have been edited as data to be released;Main website server receives the data to be released, and should
Data to be released and its corresponding first renewal time information such as " 2015.12.22.15:35 ", its corresponding identification information
If " entertainment news plate -1200 " is stored in association in main website server local cache, for CDN server acquisition;Pipe
Reason person triggers update operation manually and such as clicks preset triggering update operation button, and CDN server is in response to updating trigger action
Send the request of data for obtaining the first renewal time information of data to be released.
Then, the first renewal time information of the data to be released returned in response to request of data is received.
For example, main website server is when first for obtaining data to be released for receiving CDN server transmission updates
Between information request of data after, according to the identification information corresponding with data to be released in the request of data in being locally stored
" social news plate -1100 " finds the first renewal time information " 2015.12.22.14:35 " of corresponding data to be released;
The first renewal time information " 2015.12.22.14:35 " is returned to CDN server by main website server;CDN server receives
In response to the first renewal time information " 2015.12.22.14:35 " of the data to be released that request of data returns.
It should be noted that main website service is according to mark corresponding with data to be released in news briefing application scenarios
Information stores the data to be released and its first renewal time information in association.
Step S120: the second renewal time information of the published data being locally stored is extracted according to identification information, and will
First renewal time information is compared with the second renewal time information.
Preferably, as shown in Fig. 2, extracting the second renewal time letter for the published data being locally stored according to identification information
The step of breath includes step S221 and step S222: step S221: obtaining in being locally stored according to identification information and has issued number
According to data packet;Step S222: header information in read data packet, and therefrom extract the second renewal time of published data
Information.
For example, according to identification information corresponding with data to be released " social news plate -1100 ", in CDN server sheet
The data packet that stored published data is searched in ground caching, solves the data packet inquired based on predefined agreement
Analysis, to extract the packet header header information of the data packet including the published data, which includes and has issued number
According to corresponding second renewal time information such as " 2015.12.22.14:11 ";By the second renewal time information
" 2015.12.22.14:11 " and the first renewal time information " 2015.12.22.14:35 " and the second renewal time received
Information " 2015.12.22.14:11 " compares, to determine comparison result.
Step S130: it is updated if the first renewal time information newly in the second renewal time information, determines to update with second
The corresponding published data of temporal information.
For example, example is connected, when CDN server updates the first renewal time information " 2015.12.22.14:35 " with second
Between information " 2015.12.22.14:11 " compare, it may be determined that the first renewal time information newly in the second renewal time believe
Breath;It then determines and updates published data corresponding with the second renewal time information.
Optionally, after determining the step of updating published data corresponding with the second renewal time information, this method
It further include step S140 (not marked in figure), step S150 (not marked in figure) and step S160 (not marked in figure): step
S140: the acquisition request for obtaining data to be released corresponding with identification information is generated and sent;Step S150: response is received
In the data to be released corresponding with identification information that acquisition request returns, data to be released include the first renewal time information;Step
Rapid S160: being based on data to be released, executes to the published data being locally stored and updates operation.
Step S140: the acquisition request for obtaining data to be released corresponding with identification information is generated and sent.
For example, CDN server compares the first renewal time information such as " 2015.12.22.14:35 " and the second renewal time
Such as " 2015.12.22.14:11 ", comparing result is the first renewal time information newly in the second renewal time information, base to information
It is determined in comparing result and updates published data corresponding with the second renewal time information;It is corresponding to the second renewal time information
The identification information of data packet of published data be " social news plate -1100 ", then CDN server, which generates and sends, is used for
Obtain the acquisition request of data to be released corresponding with identification information " social news plate -1100 ".
Step S150: the data to be released corresponding with identification information returned in response to acquisition request, number to be released are received
According to including the first renewal time information.
For example, CDN server is right with identification information " social news plate -1100 " for obtaining to main website server transmission
The acquisition request for the data to be released answered;Main website server receives the acquisition request from CDN server, is being locally stored
Middle lookup is simultaneously extracted corresponding pending with the identification information " social news plate -1100 " for including in the acquisition request received
Cloth data, the data to be released include the first renewal time information " 2015.12.22.14:35 ", then, will be found and mark
Know information " social news plate -1100 " corresponding data to be released to be encapsulated as data packet and be sent to CDN server;CDN clothes
Business device receives the data packet returned in response to acquisition request, and it is right with identification information " social news plate -1100 " therefrom to extract
The data to be released answered, the data to be released include the first renewal time information " 2015.12.22.14:35 ".
Step S160: being based on data to be released, executes to the published data being locally stored and updates operation.
Specifically, data to be released are based on, to being specifically included the step of executing update operation with published data for storage:
Published data is replaced using data to be released, and the second renewal time information is replaced with the first renewal time information.
For example, CDN server receive in response to acquisition request return with identification information " social news plate -1100 "
Corresponding data to be released extract the first renewal time information " 2015.12.22.14:35 " from the data to be released;Then,
Published data corresponding with second renewal time information " 2015.12.22.14:11 " is deleted, and will be with the first renewal time
The corresponding position of the corresponding data write-in storage region to be released of information " 2015.12.22.14:35 ", to update CDN service
Device be locally stored in older published data;Meanwhile it being replaced using the first renewal time information " 2015.12.22.14:35 "
The second renewal time information " 2015.12.22.14:11 " is changed, by replaced second renewal time information
" 2015.12.22.14:35 " as execute next time in step S120 of the present invention in CDN server is locally stored it is stored
Second renewal time information of published data corresponding with identification information " social news plate -1100 ".
The present invention solve how in time update CDN server be locally stored in data while, as much as possible
Reduce bring CDN server load excessive, response speed reduction and the data between main website server at no point in the update process
The problem of increased flow capacity.Firstly, sending the request of data for obtaining the first renewal time information of data to be released, data are asked
It asks including identification information corresponding with data to be released, and receives the first of the data to be released returned in response to request of data more
New temporal information only receives the first renewal time information of the data to be released returned in response to request of data in this step,
The data volume of first renewal time information is far smaller than the data volume of entire data to be released;Then, it is extracted according to identification information
Second renewal time information of the published data being locally stored, and by the first renewal time information and the second renewal time information
It compares;If the first renewal time information newly in the second renewal time information, is determined and is updated and the second renewal time information
Corresponding published data;Only when comparison determines the first renewal time information of data to be released newly in being locally stored
When issuing the second renewal time information of data, it is entirely corresponding with the first renewal time just to execute main website server acquisition
The operation of data to be updated avoids the first renewal time information in data to be released not newly in the second of published data
The situation for obtaining data to be released caused by when renewal time information in vain improves and judges whether to execute update operating process
In response speed, and reduce invalid data transmission data traffic.
Fig. 3 is the structural schematic diagram of the device of the update publication data of another embodiment of the present invention.
The present embodiment can execute at CDN server end.
Sending module 310 sends the request of data for obtaining the first renewal time information of data to be released, and data are asked
It asks including identification information corresponding with data to be released;The reception of first receiving module 320 returns pending in response to request of data
First renewal time information of cloth data;Extraction module 330 extracts the of the published data being locally stored according to identification information
Two renewal time information;Contrast module 340 compares the first renewal time information and the second renewal time information;Determine mould
Block 350 is determined and is updated and the second renewal time information phase when the first renewal time information is newly when the second renewal time information
The published data answered.
Sending module 310 sends the request of data for obtaining the first renewal time information of data to be released, and data are asked
It asks including identification information corresponding with data to be released;The reception of first receiving module 320 returns pending in response to request of data
First renewal time information of cloth data.
Wherein, sending module 310 specifically includes the first transmission unit or the second transmission unit: the first transmission unit is according to pre-
Determine frequency and sends request of data for obtaining the first renewal time information of data to be released;Or second transmission unit in response to
It updates trigger action and sends the request of data for obtaining the first renewal time information of data to be released.
For example, the news data for having edited completion is uploaded into main website server in news briefing application scenarios,
In, the news data of completion will have been edited as data to be released;Main website server receives the data to be released, and this is waited for
Issue data and its corresponding first renewal time information such as " 2015.12.22.14:35 ", its corresponding identification information such as
" social news plate -1100 " is stored in association in main website server local cache, for CDN server acquisition;CDN clothes
Business device is sent once according to preset frequency such as each hour for obtaining the number of the first renewal time information of data to be released
According to request, to determine the corresponding publication of the data to be released being stored in main website server newly stored in CDN server
Data.
In another example the news data for having edited completion is uploaded into main website server in news briefing application scenarios,
In, the news data of completion will have been edited as data to be released;Main website server receives the data to be released, and should
Data to be released and its corresponding first renewal time information such as " 2015.12.22.15:35 ", its corresponding identification information
If " entertainment news plate -1200 " is stored in association in main website server local cache, for CDN server acquisition;Pipe
Reason person triggers update operation manually and such as clicks preset triggering update operation button, and CDN server is in response to updating trigger action
Send the request of data for obtaining the first renewal time information of data to be released.
Then, the first receiving module 320 receives the first renewal time of the data to be released returned in response to request of data
Information.
For example, main website server is when first for obtaining data to be released for receiving CDN server transmission updates
Between information request of data after, according to the identification information corresponding with data to be released in the request of data in being locally stored
" social news plate -1100 " finds the first renewal time information " 2015.12.22.14:35 " of corresponding data to be released;
The first renewal time information " 2015.12.22.14:35 " is returned to CDN server by main website server;CDN server receives
In response to the first renewal time information " 2015.12.22.14:35 " of the data to be released that request of data returns.
It should be noted that main website service is according to mark corresponding with data to be released in news briefing application scenarios
Information stores the data to be released and its first renewal time information in association.
Extraction module 330 extracts the second renewal time information of the published data being locally stored according to identification information;It is right
First renewal time information and the second renewal time information are compared than module 340.
Preferably, extraction module 330 includes data packet acquiring unit and information extraction unit: data packet acquiring unit foundation
Identification information obtains the data packet of published data in being locally stored;Header believes in information extraction unit read data packet
Breath, and therefrom extract the second renewal time information of published data.
For example, according to identification information corresponding with data to be released " social news plate -1100 ", in CDN server sheet
The data packet that stored published data is searched in ground caching, solves the data packet inquired based on predefined agreement
Analysis, to extract the packet header header information of the data packet including the published data, which includes and has issued number
According to corresponding second renewal time information such as " 2015.12.22.14:11 ";By the second renewal time information
" 2015.12.22.14:11 " and the first renewal time information " 2015.12.22.14:35 " and the second renewal time received
Information " 2015.12.22.14:11 " compares, to determine comparison result.
Determining module 350 is determined and is updated and second when the first renewal time information is newly when the second renewal time information
The corresponding published data of renewal time information.
For example, example is connected, when CDN server updates the first renewal time information " 2015.12.22.14:35 " with second
Between information " 2015.12.22.14:11 " compare, it may be determined that the first renewal time information newly in the second renewal time believe
Breath;It then determines and updates published data corresponding with the second renewal time information.
It optionally, should after determining module 350 determines and updates published data corresponding with the second renewal time information
Device further includes that generation module (not marking in figure), the second receiving module (not marking in figure) and update module (are not marked in figure
Out): generation module generates and sends the acquisition request for obtaining data to be released corresponding with identification information;Second receives mould
Block receives the data to be released corresponding with identification information returned in response to acquisition request, when data to be released include the first update
Between information;Update module is based on data to be released, executes to the published data being locally stored and updates operation.
Generation module generates and sends the acquisition request for obtaining data to be released corresponding with identification information.
For example, CDN server compares the first renewal time information such as " 2015.12.22.14:35 " and the second renewal time
Such as " 2015.12.22.14:11 ", comparing result is the first renewal time information newly in the second renewal time information, base to information
It is determined in comparing result and updates published data corresponding with the second renewal time information;It is corresponding to the second renewal time information
The identification information of data packet of published data be " social news plate -1100 ", then CDN server, which generates and sends, is used for
Obtain the acquisition request of data to be released corresponding with identification information " social news plate -1100 ".
Second receiving module receives the data to be released corresponding with identification information returned in response to acquisition request, to be released
Data include the first renewal time information.
For example, CDN server is right with identification information " social news plate -1100 " for obtaining to main website server transmission
The acquisition request for the data to be released answered;Main website server receives the acquisition request from CDN server, is being locally stored
Middle lookup is simultaneously extracted corresponding pending with the identification information " social news plate -1100 " for including in the acquisition request received
Cloth data, the data to be released include the first renewal time information " 2015.12.22.14:35 ", then, will be found and mark
Know information " social news plate -1100 " corresponding data to be released to be encapsulated as data packet and be sent to CDN server;CDN clothes
Business device receives the data packet returned in response to acquisition request, and it is right with identification information " social news plate -1100 " therefrom to extract
The data to be released answered, the data to be released include the first renewal time information " 2015.12.22.14:35 ".
Update module is based on data to be released, executes to the published data being locally stored and updates operation.
Specifically, update module is specifically used for: replacing published data using data to be released, and with the first renewal time
Information replaces the second renewal time information.
For example, CDN server receive in response to acquisition request return with identification information " social news plate -1100 "
Corresponding data to be released extract the first renewal time information " 2015.12.22.14:35 " from the data to be released;Then,
Published data corresponding with second renewal time information " 2015.12.22.14:11 " is deleted, and will be with the first renewal time
The corresponding position of the corresponding data write-in storage region to be released of information " 2015.12.22.14:35 ", to update CDN service
Device be locally stored in older published data;Meanwhile it being replaced using the first renewal time information " 2015.12.22.14:35 "
The second renewal time information " 2015.12.22.14:11 " is changed, by replaced second renewal time information
" 2015.12.22.14:35 " as execute next time in step S120 of the present invention in CDN server is locally stored it is stored
Second renewal time information of published data corresponding with identification information " social news plate -1100 ".
The present invention solve how in time update CDN server be locally stored in data while, as much as possible
Reduce bring CDN server load excessive, response speed reduction and the data between main website server at no point in the update process
The problem of increased flow capacity.Firstly, sending the request of data for obtaining the first renewal time information of data to be released, data are asked
It asks including identification information corresponding with data to be released, and receives the first of the data to be released returned in response to request of data more
New temporal information only receives the first renewal time information of the data to be released returned in response to request of data in this step,
The data volume of first renewal time information is far smaller than the data volume of entire data to be released;Then, it is extracted according to identification information
Second renewal time information of the published data being locally stored, and by the first renewal time information and the second renewal time information
It compares;If the first renewal time information newly in the second renewal time information, is determined and is updated and the second renewal time information
Corresponding published data;Only when comparison determines the first renewal time information of data to be released newly in being locally stored
When issuing the second renewal time information of data, it is entirely corresponding with the first renewal time just to execute main website server acquisition
The operation of data to be updated avoids the first renewal time information in data to be released not newly in the second of published data
The situation for obtaining data to be released caused by when renewal time information in vain improves and judges whether to execute update operating process
In response speed, and reduce invalid data transmission data traffic.
Those skilled in the art of the present technique are appreciated that the present invention includes being related to for executing in operation described herein
One or more equipment.These equipment can specially design and manufacture for required purpose, or also may include general
Known device in computer.These equipment have the computer program being stored in it, these computer programs are selectively
Activation or reconstruct.Such computer program can be stored in equipment (for example, computer) readable medium or be stored in
It e-command and is coupled in any kind of medium of bus respectively suitable for storage, the computer-readable medium includes but not
Be limited to any kind of disk (including floppy disk, hard disk, CD, CD-ROM and magneto-optic disk), ROM (Read-Only Memory, only
Read memory), RAM (Random Access Memory, immediately memory), EPROM (Erasable Programmable
Read-Only Memory, Erarable Programmable Read only Memory), EEPROM (Electrically Erasable
Programmable Read-Only Memory, Electrically Erasable Programmable Read-Only Memory), flash memory, magnetic card or light card
Piece.It is, readable medium includes by equipment (for example, computer) with any Jie for the form storage or transmission information that can be read
Matter.
Those skilled in the art of the present technique be appreciated that can be realized with computer program instructions these structure charts and/or
The combination of each frame and these structure charts and/or the frame in block diagram and/or flow graph in block diagram and/or flow graph.This technology neck
Field technique personnel be appreciated that these computer program instructions can be supplied to general purpose computer, special purpose computer or other
The processor of programmable data processing method is realized, to pass through the processing of computer or other programmable data processing methods
The scheme specified in frame or multiple frames of the device to execute structure chart and/or block diagram and/or flow graph disclosed by the invention.
Those skilled in the art of the present technique have been appreciated that in the present invention the various operations crossed by discussion, method, in process
Steps, measures, and schemes can be replaced, changed, combined or be deleted.Further, each with having been crossed by discussion in the present invention
Kind of operation, method, other steps, measures, and schemes in process may also be alternated, changed, rearranged, decomposed, combined or deleted.
Further, in the prior art to have and the step in various operations, method disclosed in the present invention, process, measure, scheme
It may also be alternated, changed, rearranged, decomposed, combined or deleted.
The above is only some embodiments of the invention, it is noted that for the ordinary skill people of the art
For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered
It is considered as protection scope of the present invention.
Claims (6)
1. a kind of method for updating publication data, comprising:
Send the request of data for obtaining the first renewal time information of data to be released, the request of data include with it is pending
The corresponding identification information of cloth data, and the first renewal time for receiving the data to be released returned in response to the request of data believes
Breath;
The second renewal time information of the published data being locally stored is extracted according to the identification information, and more by described first
New temporal information is compared with the second renewal time information;
If the first renewal time information is newly in the second renewal time information, when determining that update is updated with described second
Between the corresponding published data of information;
Wherein, the second renewal time information of the published data being locally stored is extracted according to the identification information, comprising:
The data packet of published data is obtained in being locally stored according to the identification information;
Header information in the data packet is read, and therefrom extracts the second renewal time information of published data;
It determines after updating published data corresponding with the second renewal time information, further includes:
Generate and send the acquisition request for obtaining data to be released corresponding with the identification information;
Receive the data to be released corresponding with the identification information returned in response to the acquisition request, the data to be released
Including the first renewal time information;
Based on the data to be released, the published data being locally stored is executed and updates operation.
2. according to the method described in claim 1, wherein, sending the first renewal time information for obtaining data to be released
Request of data, comprising:
The request of data for obtaining the first renewal time information of data to be released is sent according to preset frequency;Or
The request of data for obtaining the first renewal time information of data to be released is sent in response to updating trigger action.
3. according to the method described in claim 1, wherein, the data to be released are based on, to the published data of storage
It executes and updates operation, specifically include:
The published data is replaced using the data to be released, and with the first renewal time information replacement described second
Renewal time information.
4. a kind of device for updating publication data, comprising:
Sending module, for sending the request of data of the first renewal time information for obtaining data to be released, the data
Request includes identification information corresponding with data to be released;
First receiving module, for receiving the first renewal time letter of the data to be released returned in response to the request of data
Breath;
Extraction module, for extracting the second renewal time information of the published data being locally stored according to the identification information;
Contrast module, for comparing the first renewal time information with the second renewal time information;
Determining module, for determining and updating when the first renewal time information is newly when the second renewal time information
Published data corresponding with the second renewal time information;
Wherein, the extraction module includes:
Data packet acquiring unit, for obtaining the data packet of published data in being locally stored according to the identification information;
Information extraction unit, for reading header information in the data packet, and therefrom extract published data second more
New temporal information;
After the determining module, the device further include:
Generation module, for generating and sending the acquisition request for obtaining data to be released corresponding with the identification information;
Second receiving module, for receiving the number to be released corresponding with the identification information returned in response to the acquisition request
According to the data to be released include the first renewal time information;
Update module executes the published data being locally stored and updates operation for being based on the data to be released.
5. device according to claim 4, wherein the sending module includes:
First transmission unit, for sending the number for obtaining the first renewal time information of data to be released according to preset frequency
According to request;Or
Second transmission unit, for believing in response to updating the first renewal time that trigger action is sent for obtaining data to be released
The request of data of breath.
6. device according to claim 4, wherein the update module is specifically used for: being replaced using the data to be released
The published data is changed, and the second renewal time information is replaced with the first renewal time information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510994191.2A CN105577798B (en) | 2015-12-25 | 2015-12-25 | Update the method and device of publication data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510994191.2A CN105577798B (en) | 2015-12-25 | 2015-12-25 | Update the method and device of publication data |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105577798A CN105577798A (en) | 2016-05-11 |
CN105577798B true CN105577798B (en) | 2019-03-05 |
Family
ID=55887442
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510994191.2A Active CN105577798B (en) | 2015-12-25 | 2015-12-25 | Update the method and device of publication data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105577798B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106534285B (en) * | 2016-10-27 | 2020-10-20 | 新华三技术有限公司 | Access method and device |
CN106713470A (en) * | 2016-12-29 | 2017-05-24 | 北京奇艺世纪科技有限公司 | Distributed cache updating method and cache updating system |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101741830A (en) * | 2009-11-09 | 2010-06-16 | 深圳市同洲电子股份有限公司 | Method, system, client and server for realizing multi-client data synchronization |
CN103986773A (en) * | 2014-05-26 | 2014-08-13 | 北京奇艺世纪科技有限公司 | Data request response method and device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5061166B2 (en) * | 2009-09-04 | 2012-10-31 | Kii株式会社 | Data synchronization system and data synchronization method |
-
2015
- 2015-12-25 CN CN201510994191.2A patent/CN105577798B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101741830A (en) * | 2009-11-09 | 2010-06-16 | 深圳市同洲电子股份有限公司 | Method, system, client and server for realizing multi-client data synchronization |
CN103986773A (en) * | 2014-05-26 | 2014-08-13 | 北京奇艺世纪科技有限公司 | Data request response method and device |
Also Published As
Publication number | Publication date |
---|---|
CN105577798A (en) | 2016-05-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9582679B2 (en) | Terminal device, data management server, terminal program, data management program, and data management system | |
CN102333092B (en) | Network user identification method and application server | |
CN103795765B (en) | A kind of file uploads method of calibration and system | |
KR101351821B1 (en) | Method and Server for Delivering Contents using Delivering Contents List to Mobile Terminal | |
US20150112798A1 (en) | Advertisement processing method and apparatus | |
US20120054295A1 (en) | Method and apparatus for providing or acquiring the contents of a network resource for a mobile device | |
CN104053072B (en) | Distribution control system, dissemination system and distribution control method | |
CN102789469A (en) | Page updating method and system | |
CN105656663A (en) | Software update method and device | |
CN106462635A (en) | Intelligent web page content blocking | |
CN105577798B (en) | Update the method and device of publication data | |
CN105159543B (en) | It is a kind of that the method and apparatus of Map Services are provided | |
WO2016050144A1 (en) | Interface update method and client | |
TW201024670A (en) | Local information service method and system, and portable electronic device | |
CN105468771B (en) | Recommend the method and device of software | |
CN111241438B (en) | Cartoon picture display method, cartoon picture display device, cartoon picture display computer readable storage medium and cartoon picture display computer equipment | |
CN107992489A (en) | A kind of data processing method and server | |
CN108629039B (en) | Data processing method and device | |
CN110944037B (en) | Method, computer device and storage medium for client cache change configuration | |
JP2007233946A (en) | Information reception terminal, information delivery system, information classification method and program | |
CN109120496A (en) | A kind of information processing method based on converged communication, server and terminal | |
KR101537222B1 (en) | Web page pre-caching system and method for offline-executing | |
KR101037471B1 (en) | Method and system for providing ticker to an wireless communication terminal, and method for controlling an wireless communication terminal | |
KR100542013B1 (en) | Method for information service of telematics | |
US9680955B1 (en) | Persistent local caching of image data on a computing device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20220728 Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015 Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park) Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Patentee before: Qizhi software (Beijing) Co.,Ltd. |