CN107071007A - A kind of method, device and client for obtaining configuration resource - Google Patents
A kind of method, device and client for obtaining configuration resource Download PDFInfo
- Publication number
- CN107071007A CN107071007A CN201710189356.8A CN201710189356A CN107071007A CN 107071007 A CN107071007 A CN 107071007A CN 201710189356 A CN201710189356 A CN 201710189356A CN 107071007 A CN107071007 A CN 107071007A
- Authority
- CN
- China
- Prior art keywords
- static file
- configuration
- resource
- static
- client
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
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/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
-
- 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/2866—Architectures; Arrangements
- H04L67/30—Profiles
-
- 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
Abstract
The present invention discloses a kind of method for obtaining configuration resource, including:Static file configuration server receives the configuration resource request message of client, and the configuration resource request message includes the identification information that target configures resource;According to the identification information, the first memory space of the static file configuration server is searched;The first static file in the static file set that the static file configuration server is previously generated is obtained from first memory space, wherein, first static file includes target and configures resource;The URL of first static file is sent to the client, so that the client can call the target configuration resource by the URL.The method that a kind of acquisition that the present invention is provided configures resource, concurrency can not be resisted, be easily caused the technical problem that memory cache is penetrated by solving the acquisition methods presence of configuration resource in the prior art, realize the acquisition configuration resources technology effect of high concurrent.
Description
Technical field
The present invention relates to field of computer technology, more particularly to a kind of method, device and client for obtaining configuration resource.
Background technology
With the development of direct seeding technique, client has many clients at present to the configuration needs on backstage also more and more higher
Configuration resource needs to match somebody with somebody on backstage, and needs backstage to carry out configuring in advance and timing replacing, to meet the demand of client,
For example in live broadcast system, various red-letter day logo, player animation, the resource distribution of present system broadcasts present are required for
Backstage is configured.
In the prior art, it is typically after the configuration resource that backstage sets client to need, to be saved to internal memory and delay
In depositing, and corresponding cache interface is provided supplies client call, client passes through the configuration that upper cache interface read in internal memory and provided
Source.
It is interior when having a large amount of clients while when needing to ask configuration resource however, it has been found that in the above-mentioned methods
Above-mentioned concurrent request can not be met by depositing caching, and memory cache is easily penetrated.It can be seen that, the acquisition methods that resource is configured in the prior art are deposited
Concurrency can not resisted, the technical problem that memory cache is penetrated is easily caused.
The content of the invention
The present invention provides a kind of method, device and client for obtaining configuration resource, to solve to configure in the prior art
The acquisition methods presence of resource can not resist concurrency, be easily caused the technical problem that memory cache is penetrated.
In a first aspect, the embodiments of the invention provide a kind of method for obtaining configuration resource, including:
Static file configuration server receives the configuration resource request message of client, the configuration resource request message bag
Include the identification information that target configures resource;
According to the identification information, the first memory space of the static file configuration server is searched;
The static file set that the static file configuration server is previously generated is obtained from first memory space
In the first static file, wherein, first static file include target configure resource;
The URL of first static file is sent to the client, so that the client can be adjusted by the URL
Resource is configured with the target.
Alternatively, described according to the identification information, it is quiet that the acquisition static file configuration server is previously generated
Before the first static file in state file set, in addition to:
Search in the second memory space of the static file configuration server with the presence or absence of corresponding with the identification information
The second static file, wherein, second static file be first static file backup;
If in the presence of the URL of second static file is sent to client;
If being not present, first memory space of the static file configuration server is searched.
Alternatively, sent by the URL of first static file to client, in addition to:
First static file is sent to CDN server.
Based on same inventive concept, the embodiments of the invention provide another method for obtaining configuration resource, including:
CDN server receives the configuration resource request message that client is sent;
The configuration resource request message is sent to static file configuration server, the configuration resource request message bag
Include the identification information that target configures resource;
The first static file that the static file configuration server is sent is received, wherein, the first static file bag
Include target configuration resource corresponding with the identification information.
Alternatively, the configuration resource request message is sent to before static file configuration server described, also wrapped
Include:
Search and whether there is the static state corresponding with the identification information in the 3rd memory space of the CND servers
File;
If in the presence of the URL of the static file is sent to the client;
If being not present, the configuration resource request message is sent to the static file configuration server.
Based on same inventive concept, the embodiments of the invention provide the method that another obtains configuration resource, including:
Client send configuration resource request message is to CDN server, so that the CDN server is by the configuration resource
Static file configuration server is forwarded to, wherein, the configuration resource request message includes the identification information that target configures resource;
Client receives the first static text in the static file set that the static file configuration server is previously generated
The URL of part, wherein, first static file includes the target configuration resource corresponding with the identification information;
Based on the URL, the target configuration resource is called.
Based on same inventive concept, the embodiments of the invention provide a kind of device for obtaining configuration resource, described device
For static file configuration server, including:
First receiving module, the configuration resource request message for receiving client, the configuration resource request message bag
Include the identification information that target configures resource;
First searching modul, described for according to the identification information, searching the static file configuration server
One memory space;
Module is obtained, for obtaining what the static file configuration server was previously generated from first memory space
The first static file in static file set, wherein, first static file includes target and configures resource;
First sending module, for the URL of first static file to be sent to the client, so that the client
End can call the target configuration resource by the URL.
Alternatively, static file configuration server, in addition to:
Second searching modul, for according to the identification information, obtaining described pre- Mr. of static file configuration server
Into static file set in the first static file before, search the second memory space of the static file configuration server
In whether there is second static file corresponding with the identification information, wherein, second static file is described first quiet
The backup of state file;If in the presence of the URL of second static file is returned into client;If being not present, search described
First memory space of static file configuration server.
Based on same inventive concept, the embodiments of the invention provide a kind of device for obtaining configuration resource, described device
For CDN server, including:
Second receiving module, the configuration resource request message for receiving client transmission;
Second sending module, it is described for the configuration resource request message to be sent to static file configuration server
Configuring resource request message includes the identification information that target configures resource;
3rd receiving module, for receiving the first static file that the static file configuration server is sent, wherein, institute
State the first static file and configure resource including target corresponding with the identification information.
Based on same inventive concept, the embodiments of the invention provide a kind of client, including:
3rd sending module, for send configuration resource request message to CDN server, so that the CDN server will
It is described configuration resource forwarding to static file configuration server, wherein, it is described configuration resource request message include target configure money
The identification information in source;
4th receiving module, in the static file set previously generated for receiving from static file configuration server
The URL of first static file, wherein, first static file includes the target configuration resource corresponding with the identification information;
Calling module, for based on the URL, calling the target configuration resource.
The one or more technical schemes provided in the embodiment of the present invention, have at least the following technical effects or advantages:
Prestored in first memory space of method static file configuration server provided in an embodiment of the present invention quiet
State file set, then sends the URL of first static file to the client, so described client can pass through institute
State URL and call the target configuration resource.Because static file configuration server is after configuration resource request message is received, meeting
Static file configuration server is accessed, rather than accesses memory cache, the problem of memory cache is easily penetrated is solved, and when quiet
State file configuration server is received after the configuration resource request message of client, can be believed according to the mark in configuration resource request
Breath, searches the first memory space of the static file configuration server;And obtained from first memory space with it is described
The first corresponding static file of identification information, and first static file includes target and configures resource;It is so a large amount of when having
When client request configures resource, corresponding static file can be provided by static file configuration server, so as to realize height simultaneously
The technique effect of the configuration resource acquisition of hair.Solving presence in the acquisition modes of configuration resource in the prior art can not resist simultaneously
Hair amount, it is easily caused the technical problem that memory cache is penetrated.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the accompanying drawing used required in technology description to be briefly described, it should be apparent that, drawings in the following description are this hairs
Some bright embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, can be with root
Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is a kind of flow chart for the method for obtaining configuration resource in the embodiment of the present invention;
Fig. 2 is the flow chart of static file configuration in the embodiment of the present invention;
Fig. 3 is the flow chart of another method for obtaining configuration resource in the embodiment of the present invention;
Fig. 4 is the flow chart of the method for another acquisition configuration resource in the embodiment of the present invention;
Fig. 5 is the interaction diagrams of acquisition configuration resource allocation method in the embodiment of the present invention;
Fig. 6 is the building-block of logic of static file configuration server in the embodiment of the present invention;
Fig. 7 is the building-block of logic of CDN server in the embodiment of the present invention;
Fig. 8 is the building-block of logic of client in the embodiment of the present invention.
Embodiment
The embodiment of the present application solves existing skill by providing a kind of method, device and client for obtaining configuration resource
The acquisition methods presence of resource is configured in art can not resist concurrency, be easily caused the technical problem that memory cache is penetrated, and realize
The technique effect of the acquisition of high concurrent.
Technical scheme in the embodiment of the present application, general thought is as follows:
A kind of method for obtaining configuration resource, this method includes:Static file configuration server receives the configuration of client
Resource request message, the configuration resource request message includes the identification information that target configures resource;According to the identification information,
Search the first memory space of the static file configuration server;The static file is obtained from first memory space
The first static file in the static file set that configuration server is previously generated, wherein, first static file includes mesh
Standard configuration puts resource;The URL of first static file is sent to the client, so that the client can be by described
URL calls the target configuration resource.
Understand from the above, after static file configuration server receives the configuration resource request message of client,
First static file corresponding with the identification information in configuration resource request message can be searched in the first memory space, it is described
First static file includes target and configures resource, then sends the URL of first static file to the client, so
Client can call the target configuration resource, due to receiving after configuration resource request message, static file by the URL
The static file that resource is configured comprising target is sent to client by configuration server, and client does not spend in memory cache and called
Resource is configured, and when there are a large amount of client request configuration resources, can be provided by static file configuration server corresponding quiet
State file, so as to realize the technique effect of the configuration resource acquisition of high concurrent.Solve the acquisition for configuring resource in the prior art
Presence can not resist concurrency, be easily caused the technical problem that memory cache is penetrated in mode.
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention
In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is
A part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art
The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
Embodiment one
A kind of method for obtaining configuration resource is present embodiments provided, Fig. 1 is refer to, methods described includes:
S101:Static file configuration server receives the configuration resource request message of client, the configuration resource request
Message includes the identification information that target configures resource;
S102:According to the identification information, the first memory space of the static file configuration server is searched;
S103:The static file that the static file configuration server is previously generated is obtained from first memory space
The first static file in set, wherein, first static file includes target and configures resource;
S104:The URL of first static file is sent to the client, so that the client can be by described
URL calls the target configuration resource.
Below, a kind of specific reality of the method for acquisition configuration resource of the embodiment of the present application offer is provided with reference to Fig. 1
Existing step:
First, step S101 is performed, static file configuration server receives the configuration resource request message of client, described
Configuring resource request message includes the identification information that target configures resource.
In the embodiment of the present application, the configuration resource request message that static file configuration server is received, can be client
Directly transmit or client is held first to be sent to CDN server, being then forwarded to static file by CDN server matches somebody with somebody
Put server.Above-mentioned configuration resource includes logo, the player animation in various red-letter days etc., and above-mentioned identification information is can be unique
It is determined that the information of configuration resource.Certainly, in specific implementation process, those skilled in the art can according to the actual requirements, if
The particular content of configuration resource is put, in this regard, the present invention is not limited.
Then, step S102 is performed, according to the identification information, search the static file configuration server first is deposited
Store up space.
In the embodiment of the present application, the first memory space is a part of space in static file configuration server, for example
Can be a file, preferably, when the first memory space is file, can be according to website, the industry for configuring resource
Business, project, module, function etc. are classified, to improve the speed of acquisition.
Then, step S103 is performed, the static file configuration server is obtained from first memory space advance
The first static file in the static file set of generation, wherein, first static file includes target and configures resource.
It should be noted that in existing method, it is necessary to arrive internal memory after client send configuration resource request message
Corresponding target configuration resource is called in caching, and some the configuration resources for needing to be commonly used only are saved in memory cache,
When having a large amount of client send configuration resource request messages simultaneously, because the demand of different clients is different, as a visitor
During the request configuration resource A of family end, search whether there is above-mentioned configuration resource A in memory cache first, if any then returning, do not have such as
Have, need memory cache to be sent to background data base and ask, when memory cache sends request, have different clients
Request configuration resource B, C etc.;It now can also search and whether there is above-mentioned configuration resource B, C in memory cache, and memory cache
Need to do same operation, can so cause the substantial amounts of link of memory cache, such as when background data base returns to configuration resource B
When, the partial content of meeting covering memory caching is configured so that resource A, C may not be responded, therefore memory cache easily occur
The problem of penetrating, i.e. memory cache do not work, and are carrying out sending the operation of request of data always to database, are unfavorable for a large amount of
The concurrent request of client.
In embodiments herein, the static file set that static file configuration server is previously generated, static state text
Part set is stored in above-mentioned first memory space, and above-mentioned static file set is set in advance, contain it is all the need for
Target configuration resource.So, it is not to call institute in memory cache after the configuration resource request of client is received
The configuration resource needed, but by static file configuration server, it is static when there is a large amount of client send configuration resource requests
File configuration server can return to its corresponding static file according to the identification information for configuring resource request, due to static text
Target configuration resource is contained in part, the speed for reading static file is significantly larger than the speed for reading background data base, so existed
Macroscopically then realize the technique effect of high concurrent amount, solve in the prior art configuration resource acquisition modes in exist can not
Resist concurrency, be easily caused the technical problem that memory cache is penetrated.
In specific implementation process, static file configuration server sets the flow of static file as shown in Fig. 2 configuration
Then resource can back up configuration resource conservation into data by backstage by manually being configured, static file configuration system
System receives the required parameter on backstage, by configuration resource write-in static file, preserves into file, wherein, static file can
Preserved with the form of .jason files, JSON (JavaScript Object Notation, JS object tag) is a kind of light
The data interchange format of magnitude.Its a subset based on ECMAScript specifications, using the text for being totally independent of programming language
This form stores and represented data.When setting static file, single static file file size is controlled within 100kb,
When setting static file, in order to ensure security, it is necessary to examine the configuration information of write-in, prevent from filling in illegal quick
Information is felt, in addition, in order to prevent malicious attack, when setting static file, it is necessary to carry out strict cross-site scripting attack
(Cross Site Scripting)。
Step S104 is finally performed, the URL of first static file is sent to the client, so that the client
End can call the target configuration resource by the URL.
In specific implementation process, static file configuration server can directly transmit the URL of the first static file
To the client, can also be forwarded by other servers, the URL of the first static file can for static file path or
Storage address, URL includes that the information of corresponding static file can be found, and is not particularly limited herein.
Seen from the above description, due to receiving after configuration resource request message, static file configuration server will be included
The static file of target configuration resource is sent to client, and client, which is not spent in memory cache, calls configuration resource, and ought have
During a large amount of client request configuration resources, corresponding static file can be provided by static file configuration server, so as to realize
The technique effect of the configuration resource acquisition of high concurrent.Solving presence in the acquisition modes of configuration resource in the prior art can not support
Drive concurrency, be easily caused the technical problem that memory cache is penetrated.The method of the acquisition configuration resource provided using the present invention, is passed through
It was verified that the query rate QPS per second of single server can meet the demand of whole station, realize high concurrent more than 50000
Ground obtains configuration resource.
Optionally, the method that a kind of acquisition that the embodiment of the present application one is provided configures resource, described according to the mark
Information, obtains before the first static file in the static file set that the static file configuration server is previously generated, goes back
Including:
Search in the second memory space of the static file configuration server with the presence or absence of corresponding with the identification information
The second static file, wherein, second static file be first static file backup;
If in the presence of the URL of second static file is sent to client;
If being not present, first memory space of the static file configuration server is searched.
In the embodiment of the present application, it can increase by the second memory space to store static file, specifically, above-mentioned second
Memory space is the caching of above-mentioned first memory space, stores the static text in part of static file set in the first memory space
Part, the caching mechanism can be set according to existing caching mechanism, and the renewal time of the caching can also be designed as needed, be led to
Above-mentioned second memory space is crossed, the speed for obtaining configuration resource can be improved.
Optionally, the method that a kind of acquisition that the embodiment of the present application one is provided configures resource, static literary by described first
The URL of part is sent to client, in addition to:
First static file is sent to CDN server.
In the embodiment of the present application, because the first static file is newest access, therefore, the first static file is sent
To CDN server, the storage to update CDN server, can in order to have next time during client request first static file
To be directly sent to client by CDN server, so as to improve the acquisition speed of configuration resource.
Embodiment two
Based on a same inventive concept is implemented with the present invention, the present embodiment two provides one from the visual angle of CDN server
The method for obtaining configuration resource is planted, Fig. 3 is refer to, methods described includes:
S201:CDN server receives the configuration resource request message that client is sent;
S202:The configuration resource request message is sent to static file configuration server, the configuration resource request
Message includes the identification information that target configures resource;
S203:The first static file that the static file configuration server is sent is received, wherein, the described first static text
Part includes target corresponding with the identification information and configures resource.
In the embodiment of the present application, CDN server be used for the configuration resource request message that sends client be forwarded to it is quiet
State file configuration server, the feature such as the first static file and the implication in embodiment one and explains all same, no longer superfluous herein
State.
In the method that present embodiment is provided, match somebody with somebody in described send the configuration resource request message to static file
Before putting server, in addition to:
Search and whether there is the static state corresponding with the identification information in the 3rd memory space of the CND servers
File;
If in the presence of the URL of the static file is sent to the client;
If being not present, the configuration resource request message is sent to the static file configuration server.
In the embodiment of the present application, CDN server can first look for whether there is and the mark in the 3rd memory space
The corresponding static file of information, if it is present CDN server directly sends the URL of the static file to described
Client;The configuration resource request message need not be sent to institute by static file configuration server, if being not present
State static file configuration server.From the foregoing, static file configuration server can be interviewed as the source of returning of CDN server
Ask, can alleviate in the prior art by the interior pressure for being stored back to source, the speed and efficiency for obtaining configuration resource be improved, as excellent
Choosing, the renewal frequency of the second memory space of static file configuration server is higher than the 3rd memory space of CDN server more
New frequency, for example, the 3rd memory space is to update for 10 minutes, then the second memory space is to update for 3 minutes.
Based on a same inventive concept is implemented with the present invention, the present embodiment three is obtained from the visual angle of client there is provided one kind
The method for taking configuration resource, refer to Fig. 4, methods described includes:
S301:Client send configuration resource request message is to CDN server, so that the CDN server is matched somebody with somebody described
Resource forwarding is put to static file configuration server, wherein, the configuration resource request message includes the mark that target configures resource
Know information;
S302:First in the static file set that the client reception static file configuration server is previously generated is quiet
The URL of state file, wherein, first static file includes the target configuration resource corresponding with the identification information;
S303:Based on the URL, the target configuration resource is called.
Introduce the application offer in visual angle respectively from static file configuration server, CDN server, client more than
After a kind of method for obtaining configuration resource, match somebody with somebody present invention also provides a kind of system for obtaining configuration resource, including static file
Server, CDN server, client are put, illustrates that the application one kind is preferable to carry out below by a complete interactive examples
The idiographic flow of the method for acquisition configuration resource in example, referring specifically to Fig. 5:
Client sends configuration resource request message, and CDN server receives the configuration resource request message of client, and
Search whether to exist in 3rd memory space with the corresponding static file of configuration resource request message, if it is present by the
The URL of three memory space static files is sent to client, if it does not exist, then configuration resource request message is forwarded into static state
File configuration server, now, what static file configuration server first looked for the static file configuration server second deposits
Store up and whether there is second static file corresponding with the identification information in space, if in the presence of by second static file
URL send to client;If being not present, first memory space of the static file configuration server is searched, and
First in the static file set that the static file configuration server is previously generated is obtained from first memory space
Static file, then sends the URL of first static file to the client, so that the client can pass through institute
State URL and call the target configuration resource, and in client displaying.
Example IV
Based on a same inventive concept is implemented with the present invention, the present embodiment four provides a kind of dress for obtaining configuration resource
Put, described device is static file configuration server, refer to Fig. 6, including:
First receiving module 101, the configuration resource request message for receiving client, the configuration resource request message
The identification information of resource is configured including target;
First searching modul 102, for according to the identification information, searching the described of the static file configuration server
First memory space;
Module 103 is obtained, for obtaining described pre- Mr. of static file configuration server from first memory space
Into static file set in the first static file, wherein, first static file include target configure resource;
First sending module 104, for the URL of first static file to be sent to the client, so that described
Client can call the target configuration resource by the URL.
The above-mentioned static file configuration server that the application is provided, in addition to:
Second searching modul, for according to the identification information, obtaining described pre- Mr. of static file configuration server
Into static file set in the first static file before, search the second memory space of the static file configuration server
In whether there is second static file corresponding with the identification information, wherein, second static file is described first quiet
The backup of state file;If in the presence of the URL of second static file is returned into client;If being not present, search described
First memory space of static file configuration server.
Embodiment five
Based on two same inventive concepts are implemented with the present invention, the present embodiment four provides a kind of dress for obtaining configuration resource
Put, described device is CDN server, refer to Fig. 7, including:
Second receiving module 201, the configuration resource request message for receiving client transmission;
Second sending module 202, for the configuration resource request message to be sent to static file configuration server, institute
Stating configuration resource request message includes the identification information that target configures resource;
3rd receiving module 203, for receiving the first static file that the static file configuration server is sent, its
In, first static file includes target corresponding with the identification information and configures resource.
Embodiment six
Based on three same inventive concepts are implemented with the present invention, the present embodiment six provides a kind of client, refer to figure
8, including:
3rd sending module 301, for send configuration resource request message to CDN server, so that the CDN server
By the configuration resource forwarding to static file configuration server, wherein, the configuration resource request message is configured including target
The identification information of resource;
4th receiving module 302, for receiving the static file set previously generated from static file configuration server
In the first static file URL, wherein, first static file includes corresponding with identification information target configuration money
Source;
Calling module 303, for based on the URL, calling the target configuration resource.
The various change mode and instantiation of the method for acquisition configuration resource in embodiment 1-3 are equally applicable to this reality
Static file configuration server, CDN server and the client of example are applied, passes through the detailed of the foregoing method that resource is configured to obtaining
Description, those skilled in the art are clear that static file configuration server, CDN server and visitor in the present embodiment
Family end, thus it is succinct for specification, it will not be described in detail herein.
The one or more technical schemes provided in the embodiment of the present invention, have at least the following technical effects or advantages:
Prestored in first memory space of method static file configuration server provided in an embodiment of the present invention quiet
State file set, then sends the URL of first static file to the client, so described client can pass through institute
State URL and call the target configuration resource.Because static file configuration server is after configuration resource request message is received, meeting
Static file configuration server is accessed, rather than accesses memory cache, the problem of memory cache is easily penetrated is solved, and when quiet
State file configuration server is received after the configuration resource request message of client, can be believed according to the mark in configuration resource request
Breath, searches the first memory space of the static file configuration server;And obtained from first memory space with it is described
The first corresponding static file of identification information, and first static file includes target and configures resource;It is so a large amount of when having
When client request configures resource, corresponding static file can be provided by static file configuration server, so as to realize height simultaneously
The technique effect of the configuration resource acquisition of hair.Solving presence in the acquisition modes of configuration resource in the prior art can not resist simultaneously
Hair amount, it is easily caused the technical problem that memory cache is penetrated.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or computer program
Product.Therefore, the present invention can be using the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware
Apply the form of example.Moreover, the present invention can be used in one or more computers for wherein including computer usable program code
The computer program production that usable storage medium is implemented on (including but is not limited to magnetic disk storage, CD-ROM, optical memory etc.)
The form of product.
The present invention is the flow with reference to method according to embodiments of the present invention, equipment (system) and computer program product
Figure and/or block diagram are described.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram
Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided
The processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce
A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real
The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which is produced, to be included referring to
Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or
The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that in meter
Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, thus in computer or
The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in individual square frame or multiple square frames.
, but those skilled in the art once know basic creation although preferred embodiments of the present invention have been described
Property concept, then can make other change and modification to these embodiments.So, appended claims are intended to be construed to include excellent
Select embodiment and fall into having altered and changing for the scope of the invention.
Obviously, those skilled in the art can carry out various changes and modification without departing from this hair to the embodiment of the present invention
The spirit and scope of bright embodiment.So, if these modifications and variations of the embodiment of the present invention belong to the claims in the present invention
And its within the scope of equivalent technologies, then the present invention is also intended to comprising including these changes and modification.
Claims (10)
1. a kind of method for obtaining configuration resource, it is characterised in that including:
Static file configuration server receives the configuration resource request message of client, and the configuration resource request message includes mesh
Standard configuration puts the identification information of resource;
According to the identification information, the first memory space of the static file configuration server is searched;
Obtained from first memory space in the static file set that the static file configuration server is previously generated
First static file, wherein, first static file includes target and configures resource;
The URL of first static file is sent to the client, so that the client can call institute by the URL
State target configuration resource.
2. the method as described in claim 1, it is characterised in that described according to the identification information, obtains the static text
Before the first static file in the static file set that part configuration server is previously generated, in addition to:
Search in the second memory space of the static file configuration server with the presence or absence of corresponding with the identification information the
Two static files, wherein, second static file is the backup of first static file;
If in the presence of the URL of second static file is sent to client;
If being not present, first memory space of the static file configuration server is searched.
3. the method as described in claim 1, it is characterised in that sent by the URL of first static file to client
Afterwards, in addition to:
First static file is sent to CDN server.
4. a kind of method for obtaining configuration resource, it is characterised in that including:
CDN server receives the configuration resource request message that client is sent;
The configuration resource request message is sent to static file configuration server, the configuration resource request message includes mesh
Standard configuration puts the identification information of resource;
Receive the first static file that the static file configuration server is sent, wherein, first static file include with
The corresponding target configuration resource of identification information.
5. the method as described in claim 1, it is characterised in that send the configuration resource request message to static state described
Before file configuration server, in addition to:
Search in the 3rd memory space of the CND servers with the presence or absence of the static text corresponding with the identification information
Part;
If in the presence of the URL of the static file is sent to the client;
If being not present, the configuration resource request message is sent to the static file configuration server.
6. a kind of method for obtaining configuration resource, it is characterised in that including:
Client send configuration resource request message is to CDN server, so that the CDN server is by the configuration resource forwarding
To static file configuration server, wherein, the configuration resource request message includes the identification information that target configures resource;
Client receives the first static file in the static file set that the static file configuration server is previously generated
URL, wherein, first static file includes the target configuration resource corresponding with the identification information;
Based on the URL, the target configuration resource is called.
7. a kind of device for obtaining configuration resource, described device is static file configuration server, it is characterised in that including:
First receiving module, the configuration resource request message for receiving client, the configuration resource request message includes mesh
Standard configuration puts the identification information of resource;
First searching modul, for according to the identification information, search the static file configuration server described first to be deposited
Store up space;
Module is obtained, for obtaining the static state that the static file configuration server is previously generated from first memory space
The first static file in file set, wherein, first static file includes target and configures resource;
First sending module, for the URL of first static file to be sent to the client, so that the client energy
The target is called to configure resource by the URL.
8. device as claimed in claim 7, it is characterised in that also include:
Second searching modul, for according to the identification information, obtaining what the static file configuration server was previously generated
Before the first static file in static file set, it is in the second memory space for searching the static file configuration server
It is no to there is second static file corresponding with the identification information, wherein, second static file is the described first static text
The backup of part;If in the presence of the URL of second static file is returned into client;If being not present, the static state is searched
First memory space of file configuration server.
9. a kind of device for obtaining configuration resource, described device is CDN server, it is characterised in that including:
Second receiving module, the configuration resource request message for receiving client transmission;
Second sending module, for the configuration resource request message to be sent to static file configuration server, the configuration
Resource request message includes the identification information that target configures resource;
3rd receiving module, for receiving the first static file that the static file configuration server is sent, wherein, described the
One static file includes target corresponding with the identification information and configures resource.
10. a kind of client, it is characterised in that including:
3rd sending module, for send configuration resource request message to CDN server, so that the CDN server will be described
Resource forwarding is configured to static file configuration server, wherein, the configuration resource request message includes target and configures resource
Identification information;
4th receiving module, first in the static file set previously generated for receiving from static file configuration server
The URL of static file, wherein, first static file includes the target configuration resource corresponding with the identification information;
Calling module, for based on the URL, calling the target configuration resource.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710189356.8A CN107071007B (en) | 2017-03-27 | 2017-03-27 | Method, device and client for obtaining configuration resources |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710189356.8A CN107071007B (en) | 2017-03-27 | 2017-03-27 | Method, device and client for obtaining configuration resources |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107071007A true CN107071007A (en) | 2017-08-18 |
CN107071007B CN107071007B (en) | 2020-09-08 |
Family
ID=59620647
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710189356.8A Active CN107071007B (en) | 2017-03-27 | 2017-03-27 | Method, device and client for obtaining configuration resources |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107071007B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108566411A (en) * | 2018-02-07 | 2018-09-21 | 链家网(北京)科技有限公司 | Static resource acquisition methods, electronic equipment and storage medium |
CN109660859A (en) * | 2018-12-25 | 2019-04-19 | 北京潘达互娱科技有限公司 | A kind of animated show method and mobile terminal |
CN110381386A (en) * | 2018-04-12 | 2019-10-25 | 武汉斗鱼网络科技有限公司 | A kind of methods of exhibiting and relevant device of stage property present |
CN110868320A (en) * | 2019-11-13 | 2020-03-06 | 武汉微派网络科技有限公司 | Dynamic configuration distribution method, device, apparatus and system |
CN111865676A (en) * | 2020-07-10 | 2020-10-30 | 深圳市欢太科技有限公司 | Configuration file update checking method, device, server and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101799817A (en) * | 2009-12-15 | 2010-08-11 | 北京乐途游网络科技有限责任公司 | Method and system for exhibiting static files by means of cross-server |
US20150081835A1 (en) * | 2012-05-21 | 2015-03-19 | Tencent Technology (Shenzhen) Company Limited | Method and apparatus for speeding up web page access |
CN105871994A (en) * | 2015-12-15 | 2016-08-17 | 乐视网信息技术(北京)股份有限公司 | Static file service method and unit |
CN106327550A (en) * | 2016-08-18 | 2017-01-11 | 乐视控股(北京)有限公司 | Icon generation method and device for recommendation website on browser homepage |
-
2017
- 2017-03-27 CN CN201710189356.8A patent/CN107071007B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101799817A (en) * | 2009-12-15 | 2010-08-11 | 北京乐途游网络科技有限责任公司 | Method and system for exhibiting static files by means of cross-server |
US20150081835A1 (en) * | 2012-05-21 | 2015-03-19 | Tencent Technology (Shenzhen) Company Limited | Method and apparatus for speeding up web page access |
CN105871994A (en) * | 2015-12-15 | 2016-08-17 | 乐视网信息技术(北京)股份有限公司 | Static file service method and unit |
CN106327550A (en) * | 2016-08-18 | 2017-01-11 | 乐视控股(北京)有限公司 | Icon generation method and device for recommendation website on browser homepage |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108566411A (en) * | 2018-02-07 | 2018-09-21 | 链家网(北京)科技有限公司 | Static resource acquisition methods, electronic equipment and storage medium |
CN110381386A (en) * | 2018-04-12 | 2019-10-25 | 武汉斗鱼网络科技有限公司 | A kind of methods of exhibiting and relevant device of stage property present |
CN109660859A (en) * | 2018-12-25 | 2019-04-19 | 北京潘达互娱科技有限公司 | A kind of animated show method and mobile terminal |
CN110868320A (en) * | 2019-11-13 | 2020-03-06 | 武汉微派网络科技有限公司 | Dynamic configuration distribution method, device, apparatus and system |
CN111865676A (en) * | 2020-07-10 | 2020-10-30 | 深圳市欢太科技有限公司 | Configuration file update checking method, device, server and storage medium |
CN111865676B (en) * | 2020-07-10 | 2023-05-23 | 深圳市欢太科技有限公司 | Method, device, server and storage medium for updating and checking configuration file |
Also Published As
Publication number | Publication date |
---|---|
CN107071007B (en) | 2020-09-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107071007A (en) | A kind of method, device and client for obtaining configuration resource | |
CN106980669B (en) | A kind of storage of data, acquisition methods and device | |
CN104965691B (en) | The method, apparatus and system of the page elements of the configuration webpage page | |
US9002868B2 (en) | Systems and methods for secure access of data | |
CN103617191B (en) | Use the hardware-accelerated method and browser for realizing that browser renders | |
CN108984170A (en) | The multilingual rendering method of the H5 page and device | |
CN104104717A (en) | Inputting channel data statistical method and device | |
CN103164525B (en) | WEB application dissemination method and device | |
CN107920112A (en) | Support configuration file method for pushing, central server and the storage medium of grayscale mode | |
CN108363564A (en) | Entry modularization implementation method, device, terminal device and storage medium | |
CN109388766A (en) | The method and apparatus of page load | |
CN107798037A (en) | The acquisition methods and server of user characteristic data | |
CN109726094A (en) | The method and apparatus of pressure test | |
CN109657174A (en) | Method and apparatus for more new data | |
CN106033388A (en) | A test use case library management method and system | |
US20150287071A1 (en) | Performance based approval in cms workflow process | |
CN107807937A (en) | A kind of website SEO processing methods, apparatus and system | |
CN106878370A (en) | The update method and equipment of a kind of local cache | |
CN108513145A (en) | A kind of control method and device of even wheat live streaming | |
CN106254417A (en) | Data cache method, Apparatus and system | |
CN103731692A (en) | Method and system for playing SDM data | |
CN109492176A (en) | A kind of page info update method and device | |
CN109657125A (en) | Data processing method, device, equipment and storage medium based on web crawlers | |
CN106055988A (en) | Permission control method and apparatus for control | |
CN107864384A (en) | Redirect the method and device that internet video plays on cloud desktop |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |