CN103944994A - Distributed resource obtaining method and device - Google Patents

Distributed resource obtaining method and device Download PDF

Info

Publication number
CN103944994A
CN103944994A CN201410171899.3A CN201410171899A CN103944994A CN 103944994 A CN103944994 A CN 103944994A CN 201410171899 A CN201410171899 A CN 201410171899A CN 103944994 A CN103944994 A CN 103944994A
Authority
CN
China
Prior art keywords
resource
client
server
gains resources
resources
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
CN201410171899.3A
Other languages
Chinese (zh)
Inventor
郭强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group 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 China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN201410171899.3A priority Critical patent/CN103944994A/en
Publication of CN103944994A publication Critical patent/CN103944994A/en
Pending legal-status Critical Current

Links

Abstract

An embodiment of the invention provides a distributed resource obtaining method and a device. The distributed resource obtaining method comprises the steps: a proxy server receives a first HIIP distributed request sent by a client-side and used for obtaining resources to be obtained; the proxy server sends a second HIIP distributed request to multiple resource servers to enable the resource servers to locally obtain corresponding target resources according to resource identifications and returns the target resources to the client-side according to address information of the client-side; multiple target resources returned by multiple resource servers form the resources to be obtained. The proxy server sends the request to multiple resource servers to enable resource server to directly return multiple target resources forming the resources to be obtained and required by the client-side to the client-side, and the rate for obtaining the resources to be obtained of the client-side is improved.

Description

Distributed resource acquisition methods and device
Technical field
The present invention relates to the communication technology, relate in particular to a kind of distributed resource acquisition methods and device.
Background technology
URL(uniform resource locator) (Uniform Resource Locator, be called for short URL) formed by protocol type, server address and path and filename, user end to server sends a URL, this URL comprises the protocol type that carries out data interaction between client and server as hypertext transfer protocol (Hypertext Transfer Protocol, be called for short HTTP), the IP address of server, and the resource file that needs of the client path of storing in server or the title of resource file.
Existing distributed resource request mode is specially: the solicited message that proxy server sends according to client, and between each Resource Server, pass through client/server (Client/Server, being called for short C/S) mode sends resource request information to multiple Resource Servers, to obtain the target resource of storing in each Resource Server, and multiple target resources that multiple Resource Servers that proxy server combination receives send, what formation client needed treats from proxy server, to obtain Gains resources and treat Gains resources for client.
In prior art, proxy server not only will receive the target resource that each Resource Server sends, and also will combine each target resource, and its processing procedure to target resource, causes client to be obtained and treat that the speed of Gains resources is lower.
Summary of the invention
The invention provides a kind of distributed resource acquisition methods and device, obtain to improve client the speed for the treatment of Gains resources.
One aspect of the present invention is to provide a kind of distributed resource acquisition methods, comprising:
Proxy server receives client the one HTTP distributed request that send, treat Gains resources for acquisition request;
Described proxy server sends the 2nd HTTP distributed request to multiple Resource Servers, described the 2nd HTTP distributed request comprises the address information of resource identification and described client, obtain corresponding target resource for each Resource Server according to described resource identification in this locality, and according to the address information of described client, described target resource is returned to described client; Described in the multiple described target resource composition that described multiple Resource Server returns, treat Gains resources.
Another aspect of the present invention is to provide a kind of distributed resource acquisition methods, comprising:
Client sends a HTTP distributed request for the treatment of Gains resources for acquisition request to proxy server, send the 2nd HTTP distributed request for described proxy server to multiple Resource Servers, described the 2nd HTTP distributed request comprises the address information of resource identification and described client;
The target resource that the each Resource Server of described client returns, described target resource is that described each Resource Server obtains in this locality according to described resource identification, described in the multiple described target resource that described multiple Resource Servers return forms, treats Gains resources.
Another aspect of the present invention is to provide a kind of proxy server, comprising:
Receiver module, for receiving client the one HTTP distributed request that send, treat Gains resources for acquisition request;
Sending module, for sending the 2nd HTTP distributed request to multiple Resource Servers, described the 2nd HTTP distributed request comprises the address information of resource identification and described client, obtain corresponding target resource for each Resource Server according to described resource identification in this locality, and according to the address information of described client, described target resource is returned to described client; Described in the multiple described target resource composition that described multiple Resource Server returns, treat Gains resources.
Another aspect of the present invention is to provide a kind of client, comprising:
Sending module, for send a HTTP distributed request for the treatment of Gains resources for acquisition request to proxy server, send the 2nd HTTP distributed request for described proxy server to multiple Resource Servers, described the 2nd HTTP distributed request comprises the address information of resource identification and described client;
Receiver module, for receiving the target resource that each Resource Server returns, described target resource is that described each Resource Server obtains in this locality according to described resource identification, described in the multiple described target resource that described multiple Resource Servers return forms, treats Gains resources.
Another aspect of the present invention is to provide a kind of distributed resource and obtains system, comprises described proxy server and described client.
Distributed resource acquisition methods provided by the invention and device, send request to multiple Resource Servers by proxy server, so that the required multiple target resources for the treatment of Gains resources of composition client are directly returned to client by multiple Resource Servers, improve client and obtained the speed for the treatment of Gains resources.
Brief description of the drawings
The distributed resource acquisition methods flow chart that Fig. 1 provides for the embodiment of the present invention;
The distributed resource acquisition methods flow chart that Fig. 2 provides for another embodiment of the present invention;
The client terminal web page display structure figure that Fig. 3 provides for another embodiment of the present invention;
The distributed resource acquisition methods flow chart that Fig. 4 provides for another embodiment of the present invention;
The structure chart of the proxy server that Fig. 5 provides for the embodiment of the present invention;
The structure chart of the proxy server that Fig. 6 provides for another embodiment of the present invention;
The structure chart of the client that Fig. 7 provides for the embodiment of the present invention;
The structure chart of the client that Fig. 8 provides for another embodiment of the present invention;
Fig. 9 obtains system construction drawing for the distributed resource that the embodiment of the present invention provides.
Embodiment
The distributed resource acquisition methods flow chart that Fig. 1 provides for the embodiment of the present invention.The embodiment of the present invention is applicable in cloud computing, client resource distribution to be obtained is in multiple Resource Servers, client is obtained the target resource of each Resource Server storage from multiple Resource Servers by proxy server, multiple target resource composition client resource to be obtained that multiple Resource Servers return, concrete distributed resource acquisition methods step is as follows:
Step S101, proxy server receive client the one HTTP distributed request that send, treat Gains resources for acquisition request;
Client need to be obtained in the time of Gains resources, sends a HTTP distributed request to proxy server, and a HTTP distributed request represents that client-requested obtains and treats Gains resources.
Step S102, described proxy server send the 2nd HTTP distributed request to multiple Resource Servers, described the 2nd HTTP distributed request comprises the address information of resource identification and described client, obtain corresponding target resource for each Resource Server according to described resource identification in this locality, and according to the address information of described client, described target resource is returned to described client; Described in the multiple described target resource composition that described multiple Resource Server returns, treat Gains resources.
Proxy server receives after a HTTP distributed request of client transmission, send the 2nd HTTP distributed request to multiple Resource Servers, described the 2nd HTTP distributed request comprises the address information of resource identification and described client, each Resource Server receives after the 2nd HTTP distributed request, obtain corresponding target resource from this locality according to the resource identification carrying in the 2nd HTTP distributed request, and according to the address information of the client of carrying in the 2nd HTTP distributed request, the target resource obtaining from this locality is returned to client; Wherein, what client was required treats that Gains resources is distributed in multiple Resource Servers, multiple target resources that multiple Resource Servers return to client jointly form client required treat Gains resources.
The embodiment of the present invention sends request to multiple Resource Servers by proxy server, so that the required multiple target resources for the treatment of Gains resources of composition client are directly returned to client by multiple Resource Servers, improve client and obtained the speed for the treatment of Gains resources.
On the basis of above-described embodiment, described in carrying in a described HTTP distributed request, treat the identification information of Gains resources; Accordingly, described proxy server sends the 2nd HTTP distributed request to multiple Resource Servers and comprises: described proxy server sends the 2nd HTTP distributed request to all Resource Servers that are connected with described proxy server, and the described resource identification that described the 2nd HTTP distributed request comprises is treated the identification information of Gains resources described in being; Correspondingly, described each Resource Server obtains corresponding target resource and comprises in this locality according to described resource identification: if described each Resource Server is according to the described identification information for the treatment of Gains resources, judgement knows that this locality stores the target resource for the treatment of Gains resources described in composition, obtains described target resource.
In the HTTP distributed request that client sends to proxy server, carry the required identification information for the treatment of Gains resources of client, proxy server sends to comprise to coupled all Resource Servers and needs the 2nd HTTP distributed request of identification information of Gains resources, each Resource Server receives after the 2nd HTTP distributed request, whether the identification information judgment this locality for the treatment of Gains resources of first carrying according to the 2nd HTTP distributed request stores composition and treats the target resource of Gains resources, obtains out described target resource from this locality if having.
The embodiment of the present invention provide how from all Resource Servers that are connected with proxy server, to obtain client required treat Gains resources.
In above-described embodiment step S101, described in carrying in a described HTTP distributed request, treat the identification information of Gains resources, accordingly, described proxy server sends the 2nd HTTP distributed request to multiple Resource Servers and comprises: the identification information for the treatment of Gains resources described in described proxy server basis, determine to store described in composition and treat multiple Resource Servers of multiple described target resources of Gains resources, and obtain the identification information of each target resource; Described proxy server sends the 2nd HTTP distributed request, the identification information that the described resource identification that described the 2nd HTTP distributed request comprises is described target resource to described multiple Resource Servers; Correspondingly, described each Resource Server obtains corresponding target resource and comprises in this locality according to described resource identification: described each Resource Server, according to the identification information of described target resource, obtains and is stored in local described target resource.
In the HTTP distributed request that client sends to proxy server, carry the required identification information for the treatment of Gains resources of client, proxy server receives after a HTTP distributed request, the identification information for the treatment of Gains resources carrying according to a HTTP distributed request is searched mapping relations table pre-stored in proxy server, in described mapping relations table, storage needs the identification information of Gains resources, store multiple Resource Servers for the treatment of multiple described target resources of Gains resources described in composition, and the corresponding relation of the identification information of the target resource of storing in each Resource Server, proxy server is determined and is stored multiple Resource Servers for the treatment of multiple described target resources of Gains resources described in composition by searching mapping relations table, and the identification information of the target resource of storing in each Resource Server, and sending the 2nd HTTP distributed request to multiple Resource Servers of determining, the 2nd HTTP distributed request comprises the identification information of target resource.Each Resource Server receives after the 2nd HTTP distributed request, according to the identification information of the target resource carrying in the 2nd HTTP distributed request, obtains the target resource corresponding to identification information of target resource from this locality.
On the basis of the embodiment of the present invention, described proxy server returns to Resource Server list to described client, described Resource Server list comprises the address information of the determined described multiple Resource Servers of described proxy server, and the identification information of the described target resource stored of each Resource Server, for described client described in complete reception after Gains resources, if be connected disconnection with described Resource Server, from corresponding Resource Server, obtain stored target resource according to the identification information of described target resource.
Proxy server is determined and is stored multiple Resource Servers for the treatment of multiple described target resources of Gains resources described in composition by searching mapping relations table, and after the identification information of the target resource of storing in each Resource Server, according to the address information of multiple Resource Servers, and the corresponding relation of the identification information of the described target resource stored of each Resource Server generates Resource Server list, and Resource Server list is sent to client, when after multiple target resources that client returns to multiple Resource Servers, client is carried out record to multiple target resources, integrate and obtain the required Gains resources for the treatment of, if client only selects to obtain a certain specific objective resource from treat Gains resources, as target resource corresponding to local column in webpage, and now client is connected disconnection with the Resource Server that stores specific objective resource, according to Resource Server, list finds the Resource Server at target resource place to client, and set up man-to-man connection according to the address information of this Resource Server with this Resource Server, connect and set up the rear target resource of its storage that directly obtains from this Resource Server.
The embodiment of the present invention is determined the multiple Resource Servers that store the required multiple target resources for the treatment of Gains resources of composition client by proxy server, realized from multiple Resource Servers, obtain client required treat Gains resources; Meanwhile, also provide client described in complete reception after Gains resources, if be connected with certain Resource Server disconnect time, client and the man-to-man connected mode of this Resource Server, saved Internet resources.
On the basis of above-described embodiment, described proxy server receives the state information that described client sends, if know that according to described state information judgement described client does not have to treat Gains resources described in complete reception, again send described the 2nd HTTP distributed request to described multiple Resource Servers.After multiple target resources that client sends to multiple Resource Servers, judge in integral layout according to the integral layout information of the webpage of storing in local data base whether target resource corresponding in each local column all receives complete, client generates state information according to judged result, if target resource corresponding in each local column all receives complete, state information represents that the complete reception of client treats Gains resources, and client records, integrates multiple target resources and forms webpage and show; If proxy server receives the state information that client sends, judging described client does not have to treat Gains resources described in complete reception, client forms webpage and shows so that cannot record, integrate to the target resource receiving, proxy server sends described the 2nd HTTP distributed request to described multiple Resource Servers again, so that client again obtains and treats Gains resources from multiple Resource Servers, until treat described in the complete reception of client that Gains resources forms webpage and shows.
The embodiment of the present invention by client judge whether complete reception treat Gains resources generate state information, so that whether proxy server sends described the 2nd HTTP distributed request to obtain target resource to multiple Resource Servers again according to state information, ensure that client can get and treat Gains resources from multiple Resource Servers.
The distributed resource acquisition methods flow chart that Fig. 2 provides for another embodiment of the present invention.The distributed resource acquisition methods step that the embodiment of the present invention provides is as follows:
Step S201, client send a HTTP distributed request for the treatment of Gains resources for acquisition request to proxy server, send the 2nd HTTP distributed request for described proxy server to multiple Resource Servers, described the 2nd HTTP distributed request comprises the address information of resource identification and described client;
Client need to be obtained in the time of Gains resources, sends a HTTP distributed request to proxy server, and a HTTP distributed request represents that client-requested obtains and treats Gains resources; Proxy server receives after a HTTP distributed request of client transmission, sends the 2nd HTTP distributed request to multiple Resource Servers, and described the 2nd HTTP distributed request comprises the address information of resource identification and described client.
The target resource that step S202, the each Resource Server of described client return, described target resource is that described each Resource Server obtains in this locality according to described resource identification, described in the multiple described target resource that described multiple Resource Servers return forms, treats Gains resources.
Each Resource Server receives after the 2nd HTTP distributed request, obtain corresponding target resource from this locality according to the resource identification carrying in the 2nd HTTP distributed request, and according to the address information of the client of carrying in the 2nd HTTP distributed request, the target resource obtaining from this locality is returned to client; Wherein, what client was required treats that Gains resources is distributed in multiple Resource Servers, multiple target resources that multiple Resource Servers return to client jointly form client required treat Gains resources.
The embodiment of the present invention sends request to multiple Resource Servers by proxy server, so that the required multiple target resources for the treatment of Gains resources of composition client are directly returned to client by multiple Resource Servers, improve client and obtained the speed for the treatment of Gains resources.
On the basis of above-described embodiment, described in carrying in a described HTTP distributed request, treat the identification information of Gains resources; Described method also comprises: the Resource Server list that described in described client, proxy server returns, described Resource Server list comprises the address information of multiple Resource Servers, and the identification information of the described target resource stored of each Resource Server; Wherein, described proxy server according to described in treat the identification information of Gains resources, determine and store described multiple Resource Servers for the treatment of multiple described target resources of Gains resources described in composition; Described client described in complete reception after Gains resources, if be connected disconnection with described Resource Server, from corresponding Resource Server, obtain stored target resource according to the identification information of described target resource.
Described in carrying in the HTTP distributed request that client sends to proxy server, treat the identification information of Gains resources, proxy server receives after a HTTP distributed request, the identification information for the treatment of Gains resources carrying according to a HTTP distributed request is searched mapping relations table pre-stored in proxy server, in described mapping relations table, storage needs the identification information of Gains resources, store multiple Resource Servers for the treatment of multiple described target resources of Gains resources described in composition, and the corresponding relation of the identification information of the target resource of storing in each Resource Server, proxy server is determined and is stored multiple Resource Servers for the treatment of multiple described target resources of Gains resources described in composition by searching mapping relations table, and after the identification information of the target resource of storing in each Resource Server, according to the address information of multiple Resource Servers, and the corresponding relation of the identification information of the described target resource stored of each Resource Server generates Resource Server list, and Resource Server list is sent to client, when after multiple target resources that client returns to multiple Resource Servers, client is carried out record to multiple target resources, integrate and obtain the required Gains resources for the treatment of, if client only selects to obtain a certain specific objective resource from treat Gains resources, as target resource corresponding to local column in webpage, and now client is connected disconnection with the Resource Server that stores specific objective resource, according to Resource Server, list finds the Resource Server at target resource place to client, and set up man-to-man connection according to the address information of this Resource Server with this Resource Server, connect and set up the rear target resource of its storage that directly obtains from this Resource Server.
On the basis of the embodiment of the present invention, described client sends state information to described proxy server, if know that according to described state information judgement described client does not have to treat Gains resources described in complete reception for described proxy server, again send described the 2nd HTTP distributed request to described multiple Resource Servers.
After multiple target resources that client sends to multiple Resource Servers, judge in integral layout according to the integral layout information of the webpage of storing in local data base whether target resource corresponding in each local column all receives complete, client generates state information according to judged result, if target resource corresponding in each local column all receives complete, state information represents that the complete reception of client treats Gains resources, and client records, integrates multiple target resources and forms webpage and show; If proxy server receives the state information that client sends, judging described client does not have to treat Gains resources described in complete reception, client forms webpage and shows so that cannot record, integrate to the target resource receiving, proxy server sends described the 2nd HTTP distributed request to described multiple Resource Servers again, again obtain and treat Gains resources from multiple Resource Servers, until treat described in the complete reception of client that Gains resources forms webpage and shows.
The embodiment of the present invention provide client described in complete reception after Gains resources, if be connected with certain Resource Server disconnect time, client and the man-to-man connected mode of this Resource Server, saved Internet resources; Simultaneously by client judge whether complete reception treat Gains resources generate state information, so that whether proxy server sends described the 2nd HTTP distributed request to obtain target resource to multiple Resource Servers again according to state information, ensure that client can get and treat Gains resources from multiple Resource Servers.
The client terminal web page display structure figure that Fig. 3 provides for another embodiment of the present invention.On the basis of above-described embodiment, described distributed resource acquisition methods also comprises: described client builds webpage according to local data and teledata, described local data comprises integral layout and the overall label of described webpage, multiple described target resources are as described teledata, and each target resource comprises the local layout of local column in described webpage, local label and the described resource content corresponding with described local column; Described client shows described webpage.
Client builds webpage according to local data and teledata, the webpage building comprises integral layout, overall label and multiple local column, as shown in Figure 3, webpage comprises overall label 1-3 and local column 1-6, and integral layout represents how layout in webpage of overall label 1-3 and local column 1-6; Each local column comprises in local label and local column the corresponding resource content showing, local layout represents local label and resource content layout how in local column; Wherein, the integral layout of webpage and overall label as local datastore at client terminal local, in local layout, local label and local column, the corresponding resource content showing is the target resource getting from Resource Server, and multiple target resources are as teledata.After multiple target resources that client sends to multiple Resource Servers are teledata, build webpage as shown in Figure 3 in conjunction with local data, and show.The webpage that the embodiment of the present invention relates to is not limited to webpage as shown in Figure 3.
The embodiment of the present invention builds webpage by local data and teledata, the integral layout of webpage and overall label obtain from this locality without obtaining from Resource Server, improved the display efficiency of webpage, the integral layout of webpage and overall label are arranged by client, have unified the style that presents of webpage.
The distributed resource acquisition methods flow chart that Fig. 4 provides for another embodiment of the present invention.The distributed resource acquisition methods step that the embodiment of the present invention provides is as follows:
Step S401, client send a HTTP distributed request to proxy server;
Client need to be obtained and treat Gains resources, sends a HTTP distributed request to proxy server.
Step S402, proxy server parses the one HTTP distributed request;
The identification information for the treatment of Gains resources that proxy server carries according to a HTTP distributed request, determines and stores multiple Resource Servers for the treatment of multiple described target resources of Gains resources described in composition.
Step S403, proxy server return to Resource Server list to client;
Proxy server returns to client by the identification information of the target resource of storing in multiple Resource Servers of determining and each Resource Server with the form of Resource Server list.
Step S404, proxy server send the 2nd HTTP distributed request to multiple Resource Servers;
Described proxy server sends the 2nd HTTP distributed request to described multiple Resource Servers, and described the 2nd HTTP distributed request comprises the identification information of target resource and the address information of client.
The target resource that step S405, the multiple Resource Servers of client return;
The each Resource Server of client is according to the identification information of target resource, the described target resource obtaining from this locality.
It is complete that the judgement of step S406, client treats whether Gains resources receives;
Multiple target resources that client sends according to multiple Resource Servers judge that the whether complete composition of multiple target resources receiving treats Gains resources.
Step S407, client send state information to proxy server;
Client generates state information according to the judged result of step S406.
Step S408, proxy server judge state information, if state information represents client, Gains resources is treated in complete reception, turns to step S409, otherwise turns to step S410;
Step S409, proxy server return to ending message to client;
Proxy server returns to ending message to client, finishes this session with client.
Step S410, proxy server send the 2nd HTTP distributed request again to multiple Resource Servers; Proxy server judges that by state information client does not have complete reception when the Gains resources, sends the 2nd HTTP distributed request to multiple Resource Servers, again so that client is obtained the multiple target resources in multiple Resource Servers again.
Step S411, the list of client query Resource Server;
When after multiple target resources that client returns to multiple Resource Servers, client records, integrates multiple target resources and obtains the required Gains resources for the treatment of, if client only selects to obtain a certain specific objective resource from treat Gains resources, and now client is connected disconnection with the Resource Server that stores specific objective resource, according to Resource Server, list finds the Resource Server at specific objective resource place to client.
Step S412, client send target resource request to Resource Server;
Client sends target resource request to the Resource Server finding from Resource Server list, sets up man-to-man annexation, the target resource of storing in acquisition request Resource Server with Resource Server.
Step S413, Resource Server return to target resource to client.
The target resource of storage is sent to client by Resource Server.
The embodiment of the present invention sends request to multiple Resource Servers by proxy server, so that the required multiple target resources for the treatment of Gains resources of composition client are directly returned to client by multiple Resource Servers, improve client and obtained the speed for the treatment of Gains resources.
The structure chart of the proxy server that Fig. 5 provides for the embodiment of the present invention.The proxy server that the embodiment of the present invention provides can be carried out the handling process that distributed resource acquisition methods embodiment provides, as shown in Figure 5, proxy server 50 comprises receiver module 51 and sending module 52, wherein, receiver module 51 is for receiving client the one HTTP distributed request that send, treat Gains resources for acquisition request; Sending module 52 is for sending the 2nd HTTP distributed request to multiple Resource Servers, described the 2nd HTTP distributed request comprises the address information of resource identification and described client, obtain corresponding target resource for each Resource Server according to described resource identification in this locality, and according to the address information of described client, described target resource is returned to described client; Described in the multiple described target resource composition that described multiple Resource Server returns, treat Gains resources.
On the basis of the embodiment of the present invention, described in carrying in the described HTTP distributed request that described receiver module 51 receives, treat the identification information of Gains resources; Described sending module 52 sends the 2nd HTTP distributed request specifically for all Resource Servers to being connected with described proxy server, and the described resource identification that described the 2nd HTTP distributed request comprises is treated the identification information of Gains resources described in being; If according to the described identification information for the treatment of Gains resources, judgement knows that this locality stores the target resource for the treatment of Gains resources described in composition, obtains described target resource for described each Resource Server.
The embodiment of the present invention sends request to multiple Resource Servers by proxy server, so that the required multiple target resources for the treatment of Gains resources of composition client are directly returned to client by multiple Resource Servers, improve client and obtained the speed for the treatment of Gains resources.
The structure chart of the proxy server that Fig. 6 provides for another embodiment of the present invention.On the basis of above-described embodiment, described in carrying in the described HTTP distributed request that described receiver module 51 receives, treat the identification information of Gains resources; Described proxy server 50 also comprises determination module 53, for treating the identification information of Gains resources described in basis, determines to store described in composition and treats multiple Resource Servers of multiple described target resources of Gains resources, and obtain the identification information of each target resource; Described sending module 52 is specifically for sending the 2nd HTTP distributed request, the identification information that the described resource identification that described the 2nd HTTP distributed request comprises is described target resource to described multiple Resource Servers; , obtain and be stored in local described target resource according to the identification information of described target resource for described each Resource Server.
Proxy server 50 also comprises that list returns to module 54, for returning to Resource Server list to described client, described Resource Server list comprises the address information of the determined described multiple Resource Servers of described proxy server, and the identification information of the described target resource stored of each Resource Server, for described client described in complete reception after Gains resources, if be connected disconnection with described Resource Server, from corresponding Resource Server, obtain stored target resource according to the identification information of described target resource.
The state information that receiver module 51 also sends for receiving described client, if know that according to described state information judgement described client does not have to treat Gains resources described in complete reception, again send described the 2nd HTTP distributed request to described multiple Resource Servers.
The embodiment of the present invention is determined the multiple Resource Servers that store the required multiple target resources for the treatment of Gains resources of composition client by proxy server, realized from multiple Resource Servers, obtain client required treat Gains resources; Meanwhile, also provide client described in complete reception after Gains resources, if be connected with certain Resource Server disconnect time, client and the man-to-man connected mode of this Resource Server, saved Internet resources; By client judge whether complete reception treat Gains resources generate state information, ensured that client can get and treat Gains resources from multiple Resource Servers.
The structure chart of the client that Fig. 7 provides for the embodiment of the present invention.The client that the embodiment of the present invention provides can be carried out the handling process that distributed resource acquisition methods embodiment provides, as shown in Figure 7, client 70 comprises sending module 71 and receiver module 72, wherein, sending module 71 is for sending a HTTP distributed request for the treatment of Gains resources for acquisition request to proxy server, send the 2nd HTTP distributed request for described proxy server to multiple Resource Servers, described the 2nd HTTP distributed request comprises the address information of resource identification and described client; The target resource that receiver module 72 returns for receiving each Resource Server, described target resource is that described each Resource Server obtains in this locality according to described resource identification, described in the multiple described target resource that described multiple Resource Servers return forms, treats Gains resources.
On the basis of the embodiment of the present invention, described in carrying in the described HTTP distributed request that sending module 71 sends, treat the identification information of Gains resources; The Resource Server list that receiver module 72 also returns for receiving described proxy server, described Resource Server list comprises the address information of multiple Resource Servers, and the identification information of the described target resource stored of each Resource Server; Wherein, described proxy server according to described in treat the identification information of Gains resources, determine and store described multiple Resource Servers for the treatment of multiple described target resources of Gains resources described in composition; Described client described in complete reception after Gains resources, if be connected disconnection with described Resource Server, from corresponding Resource Server, obtain stored target resource according to the identification information of described target resource.
Sending module 71 is also for sending state information to described proxy server, if know that according to described state information judgement described client does not have to treat Gains resources described in complete reception for described proxy server, again send described the 2nd HTTP distributed request to described multiple Resource Servers.
The embodiment of the present invention sends request to multiple Resource Servers by proxy server, so that the required multiple target resources for the treatment of Gains resources of composition client are directly returned to client by multiple Resource Servers, improve client and obtained the speed for the treatment of Gains resources.
The structure chart of the client that Fig. 8 provides for another embodiment of the present invention.On the basis of above-described embodiment, client 70 also comprises that webpage builds module 73 and display module 74, wherein, webpage builds module 73 for building webpage according to local data and teledata, described local data comprises integral layout and the overall label of described webpage, multiple described target resources are as described teledata, and each target resource comprises the local layout of local column in described webpage, local label and the described resource content corresponding with described local column; Display module 74 is for showing described webpage.
The embodiment of the present invention builds webpage by local data and teledata, the integral layout of webpage and overall label obtain from this locality without obtaining from Resource Server, improved the display efficiency of webpage, the integral layout of webpage and overall label are arranged by client, have unified the style that presents of webpage.
Fig. 9 obtains system construction drawing for the distributed resource that the embodiment of the present invention provides.The distributed resource that the embodiment of the present invention provides obtains system can carry out the handling process that distributed resource acquisition methods embodiment provides.As shown in Figure 9, distributed resource obtains system 90 and comprises proxy server 50 and the client 70 described in above-described embodiment.
The distributed resource that the embodiment of the present invention provides obtains system can carry out the handling process that distributed resource acquisition methods embodiment provides.
In sum, send request to multiple Resource Servers by proxy server, so that the required multiple target resources for the treatment of Gains resources of composition client are directly returned to client by multiple Resource Server, improved client and obtained the speed for the treatment of Gains resources; Simultaneously, build webpage by local data and teledata, the integral layout of webpage and overall label obtain without obtaining from Resource Server from this locality, have improved the display efficiency of webpage, the integral layout of webpage and overall label are arranged by client, have unified the style that presents of webpage.
One of ordinary skill in the art will appreciate that: all or part of step that realizes above-mentioned each embodiment of the method can complete by the relevant hardware of program command.Aforesaid program can be stored in a computer read/write memory medium.This program, in the time carrying out, is carried out the step that comprises above-mentioned each embodiment of the method; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CDs.
Finally it should be noted that: above each embodiment, only in order to technical scheme of the present invention to be described, is not intended to limit; Although the present invention is had been described in detail with reference to aforementioned each embodiment, those of ordinary skill in the art is to be understood that: its technical scheme that still can record aforementioned each embodiment is modified, or some or all of technical characterictic is wherein equal to replacement; And these amendments or replacement do not make the essence of appropriate technical solution depart from the scope of various embodiments of the present invention technical scheme.

Claims (19)

1. a distributed resource acquisition methods, is characterized in that, comprising:
Proxy server receives client the one HTTP distributed request that send, treat Gains resources for acquisition request;
Described proxy server sends the 2nd HTTP distributed request to multiple Resource Servers, described the 2nd HTTP distributed request comprises the address information of resource identification and described client, obtain corresponding target resource for each Resource Server according to described resource identification in this locality, and according to the address information of described client, described target resource is returned to described client; Described in the multiple described target resource composition that described multiple Resource Server returns, treat Gains resources.
2. according to described method claimed in claim 1, it is characterized in that, described in carrying in a described HTTP distributed request, treat the identification information of Gains resources; Accordingly, described proxy server comprises to multiple Resource Servers transmission the 2nd HTTP distributed request:
Described proxy server sends the 2nd HTTP distributed request to all Resource Servers that are connected with described proxy server, and the described resource identification that described the 2nd HTTP distributed request comprises is treated the identification information of Gains resources described in being;
Correspondingly, described each Resource Server obtains corresponding target resource and comprises in this locality according to described resource identification:
If described each Resource Server is according to the described identification information for the treatment of Gains resources, judgement knows that this locality stores the target resource for the treatment of Gains resources described in composition, obtains described target resource.
3. according to described method claimed in claim 1, it is characterized in that, described in carrying in a described HTTP distributed request, treat the identification information of Gains resources, accordingly, described proxy server sends the 2nd HTTP distributed request to multiple Resource Servers and comprises:
Described proxy server according to described in treat the identification information of Gains resources, determine to store described in composition and treat multiple Resource Servers of multiple described target resources of Gains resources, and obtain the identification information of each target resource;
Described proxy server sends the 2nd HTTP distributed request, the identification information that the described resource identification that described the 2nd HTTP distributed request comprises is described target resource to described multiple Resource Servers;
Correspondingly, described each Resource Server obtains corresponding target resource and comprises in this locality according to described resource identification:
Described each Resource Server, according to the identification information of described target resource, obtains and is stored in local described target resource.
4. according to described method claimed in claim 3, it is characterized in that, described method also comprises:
Described proxy server returns to Resource Server list to described client, described Resource Server list comprises the address information of the determined described multiple Resource Servers of described proxy server, and the identification information of the described target resource stored of each Resource Server, for described client described in complete reception after Gains resources, if be connected disconnection with described Resource Server, from corresponding Resource Server, obtain stored target resource according to the identification information of described target resource.
5. according to the method described in described claim 1 or 2 or 3 or 4, it is characterized in that, described method also comprises:
Described proxy server receives the state information that described client sends, if know that according to described state information judgement described client does not have to treat Gains resources described in complete reception, again send described the 2nd HTTP distributed request to described multiple Resource Servers.
6. a distributed resource acquisition methods, is characterized in that, comprising:
Client sends a HTTP distributed request for the treatment of Gains resources for acquisition request to proxy server, send the 2nd HTTP distributed request for described proxy server to multiple Resource Servers, described the 2nd HTTP distributed request comprises the address information of resource identification and described client;
The target resource that the each Resource Server of described client returns, described target resource is that described each Resource Server obtains in this locality according to described resource identification, described in the multiple described target resource that described multiple Resource Servers return forms, treats Gains resources.
7. according to described method claimed in claim 6, it is characterized in that, described in carrying in a described HTTP distributed request, treat the identification information of Gains resources; Described method also comprises:
The Resource Server list that described in described client, proxy server returns, described Resource Server list comprises the address information of multiple Resource Servers, and the identification information of the described target resource stored of each Resource Server; Wherein, described proxy server according to described in treat the identification information of Gains resources, determine and store described multiple Resource Servers for the treatment of multiple described target resources of Gains resources described in composition;
Described client described in complete reception after Gains resources, if be connected disconnection with described Resource Server, from corresponding Resource Server, obtain stored target resource according to the identification information of described target resource.
8. according to described method claimed in claim 6, it is characterized in that, described method also comprises: described client sends state information to described proxy server, if know that according to described state information judgement described client does not have to treat Gains resources described in complete reception for described proxy server, again send described the 2nd HTTP distributed request to described multiple Resource Servers.
9. according to the method described in described claim 6 or 7 or 8, it is characterized in that, described method also comprises:
Described client builds webpage according to local data and teledata, described local data comprises integral layout and the overall label of described webpage, multiple described target resources are as described teledata, and each target resource comprises the local layout of local column in described webpage, local label and the described resource content corresponding with described local column;
Described client shows described webpage.
10. a proxy server, is characterized in that, comprising:
Receiver module, for receiving client the one HTTP distributed request that send, treat Gains resources for acquisition request;
Sending module, for sending the 2nd HTTP distributed request to multiple Resource Servers, described the 2nd HTTP distributed request comprises the address information of resource identification and described client, obtain corresponding target resource for each Resource Server according to described resource identification in this locality, and according to the address information of described client, described target resource is returned to described client; Described in the multiple described target resource composition that described multiple Resource Server returns, treat Gains resources.
11. proxy servers according to claim 10, is characterized in that, treat the identification information of Gains resources in the described HTTP distributed request that described receiver module receives described in carrying;
Described sending module sends the 2nd HTTP distributed request specifically for all Resource Servers to being connected with described proxy server, and the described resource identification that described the 2nd HTTP distributed request comprises is treated the identification information of Gains resources described in being; If according to the described identification information for the treatment of Gains resources, judgement knows that this locality stores the target resource for the treatment of Gains resources described in composition, obtains described target resource for described each Resource Server.
12. proxy servers according to claim 10, is characterized in that, treat the identification information of Gains resources in the described HTTP distributed request that described receiver module receives described in carrying;
Described proxy server also comprises determination module, for treating the identification information of Gains resources described in basis, determines to store described in composition and treats multiple Resource Servers of multiple described target resources of Gains resources, and obtain the identification information of each target resource;
Described sending module is specifically for sending the 2nd HTTP distributed request, the identification information that the described resource identification that described the 2nd HTTP distributed request comprises is described target resource to described multiple Resource Servers; , obtain and be stored in local described target resource according to the identification information of described target resource for described each Resource Server.
13. proxy servers according to claim 12, is characterized in that, also comprise:
Module is returned in list, for returning to Resource Server list to described client, described Resource Server list comprises the address information of the determined described multiple Resource Servers of described proxy server, and the identification information of the described target resource stored of each Resource Server, for described client described in complete reception after Gains resources, if be connected disconnection with described Resource Server, from corresponding Resource Server, obtain stored target resource according to the identification information of described target resource.
14. according to the proxy server described in claim 10-13 any one, it is characterized in that, the state information that described receiver module also sends for receiving described client, if know that according to described state information judgement described client does not have to treat Gains resources described in complete reception, again send described the 2nd HTTP distributed request to described multiple Resource Servers.
15. 1 kinds of clients, is characterized in that, comprising:
Sending module, for send a HTTP distributed request for the treatment of Gains resources for acquisition request to proxy server, send the 2nd HTTP distributed request for described proxy server to multiple Resource Servers, described the 2nd HTTP distributed request comprises the address information of resource identification and described client;
Receiver module, for receiving the target resource that each Resource Server returns, described target resource is that described each Resource Server obtains in this locality according to described resource identification, described in the multiple described target resource that described multiple Resource Servers return forms, treats Gains resources.
16. clients according to claim 15, is characterized in that, treat the identification information of Gains resources in the described HTTP distributed request that described sending module sends described in carrying;
The Resource Server list that described receiver module also returns for receiving described proxy server, described Resource Server list comprises the address information of multiple Resource Servers, and the identification information of the described target resource stored of each Resource Server; Wherein, described proxy server according to described in treat the identification information of Gains resources, determine and store described multiple Resource Servers for the treatment of multiple described target resources of Gains resources described in composition; Described client described in complete reception after Gains resources, if be connected disconnection with described Resource Server, from corresponding Resource Server, obtain stored target resource according to the identification information of described target resource.
17. clients according to claim 16, it is characterized in that, described sending module is also for sending state information to described proxy server, if know that according to described state information judgement described client does not have to treat Gains resources described in complete reception for described proxy server, again send described the 2nd HTTP distributed request to described multiple Resource Servers.
18. according to the client described in claim 15-17 any one, it is characterized in that, also comprises:
Webpage builds module, for building webpage according to local data and teledata, described local data comprises integral layout and the overall label of described webpage, multiple described target resources are as described teledata, and each target resource comprises the local layout of local column in described webpage, local label and the described resource content corresponding with described local column;
Display module, for showing described webpage.
19. 1 kinds of distributed resources obtain system, it is characterized in that, comprise the proxy server as described in claim 10-14 any one and the client as described in claim 15-18 any one.
CN201410171899.3A 2014-04-25 2014-04-25 Distributed resource obtaining method and device Pending CN103944994A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410171899.3A CN103944994A (en) 2014-04-25 2014-04-25 Distributed resource obtaining method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410171899.3A CN103944994A (en) 2014-04-25 2014-04-25 Distributed resource obtaining method and device

Publications (1)

Publication Number Publication Date
CN103944994A true CN103944994A (en) 2014-07-23

Family

ID=51192475

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410171899.3A Pending CN103944994A (en) 2014-04-25 2014-04-25 Distributed resource obtaining method and device

Country Status (1)

Country Link
CN (1) CN103944994A (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104239125A (en) * 2014-09-28 2014-12-24 北京奇艺世纪科技有限公司 Object processing method, distributive file system and client device
CN105373615A (en) * 2015-11-24 2016-03-02 深圳市华讯方舟科技有限公司 Page customization method and device
CN107423394A (en) * 2017-07-25 2017-12-01 北京小米移动软件有限公司 Page display method and device
CN107835256A (en) * 2017-12-08 2018-03-23 福建润哲网络科技有限公司 A kind of double stack cache resources sharing methods of IPv4 IPv6 based on http protocol and device
WO2018137149A1 (en) * 2017-01-24 2018-08-02 华为技术有限公司 Method for requesting content and proxy device
CN108563492A (en) * 2018-05-07 2018-09-21 联想(北京)有限公司 Data capture method, virtual machine and electronic equipment
CN108735224A (en) * 2018-04-11 2018-11-02 北京小唱科技有限公司 Audio modification method based on distributed frame and device
CN109871489A (en) * 2019-03-06 2019-06-11 网宿科技股份有限公司 Resource retrieval method and intelligent identifying system in a kind of intelligent identifying system
CN110022339A (en) * 2018-01-10 2019-07-16 厦门雅迅网络股份有限公司 Intranet and extranet Resource Broker method and proxy server
CN110505271A (en) * 2019-07-11 2019-11-26 数字广东网络建设有限公司 Acquisition methods, device, computer equipment and the storage medium of electronics license
CN110990146A (en) * 2019-11-01 2020-04-10 北京信安世纪科技股份有限公司 Load balancing method, device, system and storage medium
CN111405039A (en) * 2020-03-16 2020-07-10 深圳市网心科技有限公司 Data transparent transmission method, device and system, client and server
CN111988298A (en) * 2020-08-13 2020-11-24 山东伏羲智库互联网研究院 Data processing method, device and equipment
CN112637339A (en) * 2020-12-22 2021-04-09 北京东方嘉禾文化发展股份有限公司 Network acceleration method and device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101163156A (en) * 2007-09-27 2008-04-16 腾讯科技(深圳)有限公司 Method, client terminal and system of obtaining network resource
CN102164178A (en) * 2011-03-28 2011-08-24 华为技术有限公司 Content acquiring method and client
CN102739717A (en) * 2011-04-12 2012-10-17 腾讯科技(深圳)有限公司 Downloading method, downloading proxy server and network system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101163156A (en) * 2007-09-27 2008-04-16 腾讯科技(深圳)有限公司 Method, client terminal and system of obtaining network resource
CN102164178A (en) * 2011-03-28 2011-08-24 华为技术有限公司 Content acquiring method and client
CN102739717A (en) * 2011-04-12 2012-10-17 腾讯科技(深圳)有限公司 Downloading method, downloading proxy server and network system

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104239125B (en) * 2014-09-28 2018-04-10 北京奇艺世纪科技有限公司 Object processing method, distributed file system and client device
CN104239125A (en) * 2014-09-28 2014-12-24 北京奇艺世纪科技有限公司 Object processing method, distributive file system and client device
CN105373615A (en) * 2015-11-24 2016-03-02 深圳市华讯方舟科技有限公司 Page customization method and device
WO2018137149A1 (en) * 2017-01-24 2018-08-02 华为技术有限公司 Method for requesting content and proxy device
CN107423394A (en) * 2017-07-25 2017-12-01 北京小米移动软件有限公司 Page display method and device
CN107835256A (en) * 2017-12-08 2018-03-23 福建润哲网络科技有限公司 A kind of double stack cache resources sharing methods of IPv4 IPv6 based on http protocol and device
CN110022339A (en) * 2018-01-10 2019-07-16 厦门雅迅网络股份有限公司 Intranet and extranet Resource Broker method and proxy server
CN108735224B (en) * 2018-04-11 2021-04-30 北京小唱科技有限公司 Audio correction method and device based on distributed structure
CN108735224A (en) * 2018-04-11 2018-11-02 北京小唱科技有限公司 Audio modification method based on distributed frame and device
CN108563492A (en) * 2018-05-07 2018-09-21 联想(北京)有限公司 Data capture method, virtual machine and electronic equipment
CN108563492B (en) * 2018-05-07 2022-05-31 联想(北京)有限公司 Data acquisition method, virtual machine and electronic equipment
CN109871489A (en) * 2019-03-06 2019-06-11 网宿科技股份有限公司 Resource retrieval method and intelligent identifying system in a kind of intelligent identifying system
US11122308B2 (en) 2019-03-06 2021-09-14 Wangsu Science & Technology Co., Ltd. Resource retrieval method in an intelligent identification system and intelligent identification system
CN110505271A (en) * 2019-07-11 2019-11-26 数字广东网络建设有限公司 Acquisition methods, device, computer equipment and the storage medium of electronics license
CN110505271B (en) * 2019-07-11 2021-09-17 数字广东网络建设有限公司 Method and device for acquiring electronic certificate, computer equipment and storage medium
CN110990146A (en) * 2019-11-01 2020-04-10 北京信安世纪科技股份有限公司 Load balancing method, device, system and storage medium
CN111405039A (en) * 2020-03-16 2020-07-10 深圳市网心科技有限公司 Data transparent transmission method, device and system, client and server
CN111988298A (en) * 2020-08-13 2020-11-24 山东伏羲智库互联网研究院 Data processing method, device and equipment
CN111988298B (en) * 2020-08-13 2023-05-30 山东伏羲智库互联网研究院 Data processing method, device and equipment
CN112637339A (en) * 2020-12-22 2021-04-09 北京东方嘉禾文化发展股份有限公司 Network acceleration method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN103944994A (en) Distributed resource obtaining method and device
CN102523314B (en) Identify the method and apparatus of efficient destination server
US20150358217A1 (en) Web Polling Method, Device and System
EP2698730B1 (en) Data acquisition method, device and system
CN102271165B (en) Device and method for sharing and managing resources searched on Internet
CN102143243B (en) Dynamic routing processing method and dynamic routing processing device and home gateway thereof
CN111970315A (en) Method, device and system for pushing message
JP2013507694A (en) System and method for increasing data communication speed and efficiency
CN103747273A (en) Video requesting method, device and system
CN110324405B (en) Message sending method, device, system and computer readable storage medium
JP7331073B2 (en) Enhanced online privacy
US20140359066A1 (en) System, method and device for offline downloading resource and computer storage medium
CN104581374A (en) Methods for obtaining slicing files and generating sub m3u8 files, node and server
CN102594901A (en) Method, system, television and server for downloading television data
CN104038917A (en) Method and device for terminal roaming authentication
WO2014166275A1 (en) Video loading method, device and system of mobile terminal
US20120005274A1 (en) System and method for offering cloud computing service
CN103139252B (en) The implementation method that a kind of network proxy cache is accelerated and device thereof
CN103595782A (en) Distributed storage system and method for downloading files thereof
CN109982152A (en) P2P CDN method for processing business, intelligent gateway and CDN platform
CN105141653A (en) Method, equipment and system for data interaction of service platform
CN102957972B (en) Video on demand method and system thereof
US20150074234A1 (en) Content system and method for chunk-based content delivery
CN102843615A (en) Cache indexing method of online video files and cache server
CN110943876B (en) URL state detection method, device, equipment and system

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: 20140723