CN107197000B - Static and dynamic hybrid caching method, device and system - Google Patents

Static and dynamic hybrid caching method, device and system Download PDF

Info

Publication number
CN107197000B
CN107197000B CN201710308357.XA CN201710308357A CN107197000B CN 107197000 B CN107197000 B CN 107197000B CN 201710308357 A CN201710308357 A CN 201710308357A CN 107197000 B CN107197000 B CN 107197000B
Authority
CN
China
Prior art keywords
user request
user
proxy server
server
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710308357.XA
Other languages
Chinese (zh)
Other versions
CN107197000A (en
Inventor
倪新宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Weimeng Chuangke Network Technology China Co Ltd
Original Assignee
Weimeng Chuangke Network Technology China 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 Weimeng Chuangke Network Technology China Co Ltd filed Critical Weimeng Chuangke Network Technology China Co Ltd
Priority to CN201710308357.XA priority Critical patent/CN107197000B/en
Publication of CN107197000A publication Critical patent/CN107197000A/en
Application granted granted Critical
Publication of CN107197000B publication Critical patent/CN107197000B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/63Routing a service request depending on the request content or context

Abstract

The invention relates to the technical field of internet caching, in particular to a static and dynamic hybrid caching method, a device and a system, which comprise the following steps: receiving a user request sent by a client; judging whether the data required by the user request is cached locally in the proxy server or not according to the routing rule of the proxy server; and distributing the user request according to the user request characteristics and a pre-configured proxy server routing rule, wherein the proxy server routing rule comprises a request characteristic list which is allowed to be cached in the local cache of the proxy server. The invention converts the request of the user dynamic data into small file cache, and distributes according to different routing rules, thereby being compatible with the user dynamic request which can not be cached, realizing the maximized cache utilization rate, greatly improving the load performance of the server, and reducing the deployment cost of the server.

Description

Static and dynamic hybrid caching method, device and system
Technical Field
The invention relates to the technical field of internet caching, in particular to a static and dynamic hybrid caching method, device and system.
Background
Caching is the primary and important means to address server load pressure. By putting the data requested by the user into the faster storage medium, the work of sorting, packaging and the like of the data requested each time is reduced, and the data reading speed is improved, so that the user requesting speed is greatly improved, the requesting time is shortened, and the server load capacity is enhanced.
The common caching scheme mainly has two architectures according to different resource types requested:
1. and user dynamic data is stored in the database server. When each request occurs, the data is acquired from different database servers through the processing logic of the application server, and is stored in the cache after being packaged. Therefore, when the same type of request occurs next time, the application server can directly acquire the data in the cache and directly return the data to the front-end proxy server, so that data is prevented from being pulled from the database server, and performance improvement is realized.
2. Small files such as pictures are stored in the server hard disk. Because the content of the file changes less, the data in the hard disk is usually put into the memory for caching, thereby greatly improving the execution efficiency of the proxy server for requesting the small file, reducing the request time and realizing the performance improvement.
In the existing caching scheme, the small file has the fastest caching speed, but cannot process dynamic data requested by a user. Meanwhile, dynamic data caching of a user cannot meet the increasingly higher request access pressure.
Disclosure of Invention
Embodiments of the present invention provide a static and dynamic hybrid caching method, apparatus, and system, which can process user request dynamic data, improve caching efficiency, and meet increasing request access pressure.
The invention discloses a static and dynamic mixed caching method, which comprises the following steps: receiving a user request sent by a client; distributing the user request according to the user request characteristics and a pre-configured proxy server routing rule, wherein the proxy server routing rule comprises a request characteristic list allowing caching in a local cache of a proxy server; if the user request characteristics meet the routing rule of the proxy server and the data required by the user corresponding to the user request is cached in a local cache of the proxy server in a static file mode to form cached data, acquiring the data required by the user corresponding to the user request from the local cache of the proxy server; if the user request characteristics meet the routing rules of the proxy server, but the data required by the user corresponding to the user request is not cached locally in the proxy server, sending the user request to the corresponding application server, acquiring the data required by the user corresponding to the user request through the application server, and caching the data required by the user corresponding to the user request in a static file manner locally in the proxy server to form cached data; and if the user request characteristics do not meet the routing rule of the proxy server, sending the user request to a corresponding application server, and acquiring the data required by the user corresponding to the user request through the application server.
Further, any request feature in the request feature list comprises a user request type, a user request parameter value, a user request parameter name and a user request path; the method for judging whether the user request characteristics meet the routing rule of the proxy server comprises the following steps: when the user request characteristic is the same as any one item in the request characteristic list, judging that the user request characteristic meets a proxy server routing rule; and when the user request characteristic is different from each item in the request characteristic list, judging that the user request characteristic does not meet the routing rule of the proxy server.
In the above technical solution, obtaining, by the application server, data required by a user corresponding to the user request includes: the application server receives a user request sent by a proxy server; and the application server acquires the data required by the user corresponding to the user request from the data cache server and then returns the data to the proxy server, or acquires the data required by the user corresponding to the user request from the database server and then returns the data to the proxy server.
Further, if the data required by the user corresponding to the user request is cached in a data cache server, the application server obtains the data required by the user corresponding to the user request from the data cache server and returns the data to the proxy server; and if the data required by the user corresponding to the user request is not cached in the data cache server, the application server obtains the data required by the user corresponding to the user request from the database server and returns the data to the proxy server.
Still further, the method further comprises: and the application server performs encapsulation operation on the data required by the user corresponding to the user request acquired from the database server and caches the data to the data cache server.
The invention designs a static and dynamic mixed cache device, which comprises: the receiving unit is used for receiving a user request sent by a client; the judging unit is used for judging whether the user request characteristics meet the routing rules of the proxy server or not according to the user request characteristics and the routing rules of the proxy server configured in advance and judging whether the data required by the user corresponding to the user request is cached in the local of the proxy server or not; the proxy server routing rule comprises a request feature list allowing caching in a local cache of the proxy server; the static processing unit is used for acquiring the data required by the user corresponding to the user request from the local cache of the proxy server if the user request characteristic meets the routing rule of the proxy server and the data required by the user corresponding to the user request is cached in the local cache of the proxy server in a static file mode to form cached data; the dynamic processing unit is used for sending the user request to a corresponding application server if the user request characteristics meet the routing rule of the proxy server but the data required by the user corresponding to the user request is not cached locally in the proxy server, acquiring the data required by the user corresponding to the user request through the application server, and caching the data required by the user corresponding to the user request locally in the proxy server in a static file manner to form cached data; and the data processing module is used for sending the user request to a corresponding application server and acquiring the data required by the user corresponding to the user request through the application server if the user request characteristics do not meet the routing rule of the proxy server.
Further, any request feature in the request feature list comprises a user request type, a user request parameter value, a user request parameter name and a user request path; the judging unit is specifically configured to judge that the user request feature satisfies a proxy server routing rule when the user request feature is the same as any one of the request feature list; and when the user request characteristic is different from each item in the request characteristic list, judging that the user request characteristic does not meet the routing rule of the proxy server.
The invention designs a static and dynamic hybrid cache system, which comprises a proxy server and an application server; the proxy server is used for receiving a user request sent by a client; distributing the user request according to the user request characteristics and a pre-configured proxy server routing rule, wherein the proxy server routing rule comprises a request characteristic list allowing caching in a local cache of a proxy server; if the user request characteristics meet the routing rule of the proxy server and the data required by the user corresponding to the user request is cached in a local cache of the proxy server in a static file mode to form cached data, acquiring the data required by the user corresponding to the user request from the local cache of the proxy server; if the user request characteristics meet the routing rules of the proxy server, but the data required by the user corresponding to the user request is not cached locally in the proxy server, sending the user request to the corresponding application server, acquiring the data required by the user corresponding to the user request through the application server, and caching the data required by the user corresponding to the user request in a static file manner locally in the proxy server to form cached data; if the user request characteristics do not meet the routing rules of the proxy server, sending the user request to a corresponding application server, and acquiring user required request data corresponding to the user request through the application server; and the application server is used for receiving the user request sent by the proxy server, acquiring the data required by the user corresponding to the user request and returning the data to the proxy server.
Further, the system also includes a data caching server and a database server, wherein: the application server is specifically used for judging whether the data required by the user corresponding to the user request is cached in the data cache server or not when receiving the user request sent by the proxy server; if the data required by the user corresponding to the user request is cached in a data cache server, acquiring the data required by the user corresponding to the user request from the data cache server and returning the data to the proxy server; if the data required by the user corresponding to the user request is not cached in the data cache server, acquiring the data required by the user corresponding to the user request from the database server and returning the data to the proxy server; the data cache server is used for caching the data required by the user corresponding to the user request; and the database server is used for providing the data required by the user corresponding to the user request.
Furthermore, the application server is further configured to perform an encapsulation operation on the data required by the user corresponding to the user request acquired from the database server, and cache the data to the data cache server.
The static and dynamic mixed caching method, the device and the system have the following beneficial effects:
1. the user request is reduced to the direct data return of the proxy server through a plurality of layers of server links, the request response time is greatly shortened, the concurrent connection number is greatly increased, the load performance of the whole server is greatly improved, and the investment cost of the server is reduced.
2. The method is flexibly configured according to routing rules, is compatible with the original dynamic data request, avoids invasive influence on the old logic by a new framework, reduces the mental cost of development, improves the performance, reduces the cost and does not generate new burden.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flow chart of the method of the present invention;
FIG. 2 is a schematic diagram of the architecture of the present invention;
FIG. 3 is a schematic diagram of a proxy server according to the present invention;
FIG. 4 is a schematic view of the structure of the device of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 1, the static and dynamic hybrid caching method includes:
101. and receiving a user request sent by the client.
102. And distributing the user request according to the user request characteristics and a pre-configured proxy server routing rule, wherein the proxy server routing rule comprises a request characteristic list which is allowed to be cached in the local cache of the proxy server.
Any request feature in the request feature list comprises a user request type, a user request parameter value, a user request parameter name and a user request path.
The method for judging whether the user request characteristics meet the routing rule of the proxy server comprises the following steps: when the user request characteristic is the same as any one item in the request characteristic list, judging that the user request characteristic meets a proxy server routing rule; and when the user request characteristic is different from each item in the request characteristic list, judging that the user request characteristic does not meet the routing rule of the proxy server.
103. And if the user request characteristics meet the routing rule of the proxy server and the data required by the user corresponding to the user request is cached in a local cache of the proxy server in a static file mode to form cached data, acquiring the data required by the user corresponding to the user request from the local cache of the proxy server.
104. And if the user request characteristics meet the routing rule of the proxy server but the data required by the user corresponding to the user request is not cached locally in the proxy server, sending the user request to the corresponding application server, acquiring the data required by the user corresponding to the user request through the application server, and caching the data required by the user corresponding to the user request in a static file manner locally in the proxy server to form cached data.
105. And if the user request characteristics do not meet the routing rule of the proxy server, sending the user request to a corresponding application server, and acquiring the data required by the user corresponding to the user request through the application server.
Acquiring data required by the user corresponding to the user request through the application server, wherein the data required by the user comprises the following steps: the application server receives a user request sent by a proxy server; and the application server acquires the data required by the user corresponding to the user request from the data cache server and then returns the data to the proxy server, or acquires the data required by the user corresponding to the user request from the database server and then returns the data to the proxy server.
And if the data required by the user corresponding to the user request is cached in the data cache server, the application server obtains the data required by the user corresponding to the user request from the data cache server and returns the data to the proxy server.
And if the data required by the user corresponding to the user request is not cached in the data cache server, the application server obtains the data required by the user corresponding to the user request from the database server and returns the data to the proxy server. And the application server performs encapsulation operation on the data required by the user corresponding to the user request acquired from the database server and caches the data to the data cache server.
As shown in fig. 2 and 3, the static and dynamic hybrid cache apparatus includes:
a receiving unit 211, configured to receive a user request sent by a client;
a determining unit 212, configured to determine, according to a user request feature and a pre-configured proxy server routing rule, whether the user request feature satisfies the proxy server routing rule, and determine whether data required by a user corresponding to the user request is cached locally in the proxy server; the proxy server routing rule includes a list of request characteristics that are allowed to be cached locally at the proxy server.
And a static processing unit 213, configured to, if the user request characteristic satisfies the proxy server routing rule and data required by the user corresponding to the user request is cached in a local cache of the proxy server in a static file manner to form cached data, obtain the data required by the user corresponding to the user request from the local cache of the proxy server.
A dynamic processing unit 214, configured to send the user request to a corresponding application server if the user request characteristic satisfies the proxy server routing rule but the data required by the user corresponding to the user request is not cached locally in the proxy server, obtain the data required by the user corresponding to the user request through the application server, and then cache the data required by the user corresponding to the user request locally in the proxy server in a static file manner to form cached data; and the data processing module is used for sending the user request to a corresponding application server and acquiring the data required by the user corresponding to the user request through the application server if the user request characteristics do not meet the routing rule of the proxy server.
Any request feature in the request feature list comprises a user request type, a user request parameter value, a user request parameter name and a user request path.
The determining unit 212 is specifically configured to determine that the user request feature satisfies a proxy server routing rule when the user request feature is the same as any one of the request feature list; and when the user request characteristic is different from each item in the request characteristic list, judging that the user request characteristic does not meet the routing rule of the proxy server.
As shown in fig. 2 and 4, the static and dynamic hybrid cache system includes a proxy server 21 and an application server 22;
the proxy server 21 receives a user request sent by a client; distributing the user request according to the user request characteristics and a pre-configured proxy server routing rule, wherein the proxy server routing rule comprises a request characteristic list allowing caching in a local cache of a proxy server; if the user request characteristics meet the routing rule of the proxy server and the data required by the user corresponding to the user request is cached in a local cache of the proxy server in a static file mode to form cached data, acquiring the data required by the user corresponding to the user request from the local cache of the proxy server; if the user request characteristics meet the routing rules of the proxy server, but the data required by the user corresponding to the user request is not cached locally in the proxy server, sending the user request to the corresponding application server, acquiring the data required by the user corresponding to the user request through the application server, and caching the data required by the user corresponding to the user request in a static file manner locally in the proxy server to form cached data; and if the user request characteristics do not meet the routing rule of the proxy server, sending the user request to a corresponding application server, and acquiring the required request data of the user corresponding to the user request through the application server.
The application server 22 is configured to receive a user request sent by the proxy server, obtain data required by a user corresponding to the user request, and return the data to the proxy server 21.
The application server 22 is specifically configured to, when receiving a user request sent by a proxy server, determine whether data required by a user corresponding to the user request is cached in a data cache server; if the data required by the user corresponding to the user request is cached in a data cache server, acquiring the data required by the user corresponding to the user request from the data cache server and returning the data to the proxy server; and if the data required by the user corresponding to the user request is not cached in the data cache server, acquiring the data required by the user corresponding to the user request from the database server and returning the data to the proxy server.
The system further comprises the database server 23 and the data cache server 24; the data cache server 24 is configured to cache data required by a user corresponding to the user request; the database server 23 is configured to provide data required by the user corresponding to the user request.
The application server 22 is further configured to perform an encapsulation operation on the data required by the user corresponding to the user request acquired from the database server 23, and cache the data to the data cache server 24.
It should be understood that the specific order or hierarchy of steps in the processes disclosed is an example of exemplary approaches. Based upon design preferences, it is understood that the specific order or hierarchy of steps in the processes may be rearranged without departing from the scope of the present disclosure. The accompanying method claims present elements of the various steps in a sample order, and are not intended to be limited to the specific order or hierarchy presented.
In the foregoing detailed description, various features are grouped together in a single embodiment for the purpose of streamlining the disclosure. This method of disclosure is not to be interpreted as reflecting an intention that the claimed embodiments of the subject matter require more features than are expressly recited in each claim. Rather, as the following claims reflect, invention lies in less than all features of a single disclosed embodiment. Thus, the following claims are hereby expressly incorporated into the detailed description, with each claim standing on its own as a separate preferred embodiment of the invention.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. To those skilled in the art; various modifications to these embodiments will be readily apparent, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the disclosure. Thus, the present disclosure is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
What has been described above includes examples of one or more embodiments. It is, of course, not possible to describe every conceivable combination of components or methodologies for purposes of describing the aforementioned embodiments, but one of ordinary skill in the art may recognize that many further combinations and permutations of various embodiments are possible. Accordingly, the embodiments described herein are intended to embrace all such alterations, modifications and variations that fall within the scope of the appended claims. Furthermore, to the extent that the term "includes" is used in either the detailed description or the claims, such term is intended to be inclusive in a manner similar to the term "comprising" as "comprising" is interpreted when employed as a transitional word in a claim. Furthermore, any use of the term "or" in the specification of the claims is intended to mean a "non-exclusive or".
Those of skill in the art will further appreciate that the various illustrative logical blocks, units, and steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate the interchangeability of hardware and software, various illustrative components, elements, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as hardware or software depends upon the particular application and design requirements of the overall system. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present embodiments.
The various illustrative logical blocks, or elements, described in connection with the embodiments disclosed herein may be implemented or performed with a general purpose processor, a digital signal processor, an Application Specific Integrated Circuit (ASIC), a field programmable gate array or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination thereof designed to perform the functions described herein. A general-purpose processor may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller, or state machine. A processor may also be implemented as a combination of computing devices, e.g., a digital signal processor and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a digital signal processor core, or any other similar configuration.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may be stored in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. For example, a storage medium may be coupled to the processor such the processor can read information from, and write information to, the storage medium. In the alternative, the storage medium may be integral to the processor. The processor and the storage medium may reside in an ASIC, which may be located in a user terminal. In the alternative, the processor and the storage medium may reside in different components in a user terminal.
In one or more exemplary designs, the functions described in the embodiments of this invention may be implemented in hardware, software, firmware, or any combination thereof, if implemented in software, these functions may be stored on a computer-readable medium or transmitted as one or more instructions or code on a computer-readable medium including a computer storage medium and a communications medium that facilitates transfer of a computer program from one place to another.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are merely exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (8)

1. A static and dynamic hybrid caching method is characterized by comprising the following steps:
receiving a user request sent by a client;
distributing the user request according to the user request characteristics and a pre-configured proxy server routing rule, wherein the proxy server routing rule comprises a request characteristic list allowing caching in a local cache of a proxy server; any request feature in the request feature list comprises a user request type, a user request parameter value, a user request parameter name and a user request path;
judging whether the user request characteristics meet the routing rules of the proxy server, including: when the user request characteristic is the same as any one item in the request characteristic list, judging that the user request characteristic meets a proxy server routing rule; when the user request characteristic is different from each item in the request characteristic list, judging that the user request characteristic does not meet a routing rule of a proxy server;
if the user request characteristics meet the routing rule of the proxy server and the data required by the user corresponding to the user request is cached in a local cache of the proxy server in a static file mode to form cached data, acquiring the data required by the user corresponding to the user request from the local cache of the proxy server;
if the user request characteristics meet the routing rules of the proxy server, but the data required by the user corresponding to the user request is not cached locally in the proxy server, sending the user request to the corresponding application server, acquiring the data required by the user corresponding to the user request through the application server, and caching the data required by the user corresponding to the user request in a static file manner locally in the proxy server to form cached data;
and if the user request characteristics do not meet the routing rule of the proxy server, sending the user request to a corresponding application server, and acquiring the data required by the user corresponding to the user request through the application server.
2. The static and dynamic hybrid caching method according to claim 1, wherein obtaining, by the application server, data required by the user corresponding to the user request comprises:
the application server receives a user request sent by a proxy server;
and the application server acquires the data required by the user corresponding to the user request from the data cache server and then returns the data to the proxy server, or acquires the data required by the user corresponding to the user request from the database server and then returns the data to the proxy server.
3. The static dynamic hybrid caching method of claim 2,
if the data required by the user corresponding to the user request is cached in a data cache server, the application server obtains the data required by the user corresponding to the user request from the data cache server and returns the data to the proxy server;
and if the data required by the user corresponding to the user request is not cached in the data cache server, the application server obtains the data required by the user corresponding to the user request from the database server and returns the data to the proxy server.
4. The static and dynamic hybrid caching method of claim 3, further comprising: and the application server performs encapsulation operation on the data required by the user corresponding to the user request acquired from the database server and caches the data to the data cache server.
5. A static and dynamic hybrid cache device, comprising:
the receiving unit is used for receiving a user request sent by a client;
the judging unit is used for judging whether the user request characteristics meet the routing rules of the proxy server or not according to the user request characteristics and the routing rules of the proxy server configured in advance and judging whether the data required by the user corresponding to the user request is cached in the local of the proxy server or not; the proxy server routing rule comprises a request feature list allowing caching in a local cache of the proxy server; any request feature in the request feature list comprises a user request type, a user request parameter value, a user request parameter name and a user request path;
the judging unit is specifically configured to judge that the user request feature satisfies a proxy server routing rule when the user request feature is the same as any one of the request feature list; when the user request characteristic is different from each item in the request characteristic list, judging that the user request characteristic does not meet a routing rule of a proxy server;
the static processing unit is used for acquiring the data required by the user corresponding to the user request from the local cache of the proxy server if the user request characteristic meets the routing rule of the proxy server and the data required by the user corresponding to the user request is cached in the local cache of the proxy server in a static file mode to form cached data;
the dynamic processing unit is used for sending the user request to a corresponding application server if the user request characteristics meet the routing rule of the proxy server but the data required by the user corresponding to the user request is not cached locally in the proxy server, acquiring the data required by the user corresponding to the user request through the application server, and caching the data required by the user corresponding to the user request locally in the proxy server in a static file manner to form cached data; and the data processing module is used for sending the user request to a corresponding application server and acquiring the data required by the user corresponding to the user request through the application server if the user request characteristics do not meet the routing rule of the proxy server.
6. A static and dynamic hybrid cache system is characterized by comprising a proxy server and an application server;
the proxy server is used for receiving a user request sent by a client; distributing the user request according to the user request characteristics and a pre-configured proxy server routing rule, wherein the proxy server routing rule comprises a request characteristic list allowing caching in a local cache of a proxy server; if the user request characteristics meet the routing rule of the proxy server and the data required by the user corresponding to the user request is cached in a local cache of the proxy server in a static file mode to form cached data, acquiring the data required by the user corresponding to the user request from the local cache of the proxy server; if the user request characteristics meet the routing rules of the proxy server, but the data required by the user corresponding to the user request is not cached locally in the proxy server, sending the user request to the corresponding application server, acquiring the data required by the user corresponding to the user request through the application server, and caching the data required by the user corresponding to the user request in a static file manner locally in the proxy server to form cached data; if the user request characteristics do not meet the routing rules of the proxy server, sending the user request to a corresponding application server, and acquiring user required request data corresponding to the user request through the application server;
and the application server is used for receiving the user request sent by the proxy server, acquiring the data required by the user corresponding to the user request and returning the data to the proxy server.
7. The static and dynamic hybrid caching system of claim 6, further comprising a data caching server and a database server, wherein:
the application server is specifically used for judging whether the data required by the user corresponding to the user request is cached in the data cache server or not when receiving the user request sent by the proxy server;
if the data required by the user corresponding to the user request is cached in a data cache server, acquiring the data required by the user corresponding to the user request from the data cache server and returning the data to the proxy server; if the data required by the user corresponding to the user request is not cached in the data cache server, acquiring the data required by the user corresponding to the user request from the database server and returning the data to the proxy server;
the data cache server is used for caching the data required by the user corresponding to the user request;
and the database server is used for providing the data required by the user corresponding to the user request.
8. The static and dynamic hybrid cache system according to claim 7, wherein the application server is further configured to perform an encapsulation operation on the data required by the user corresponding to the user request obtained from the database server, and cache the data to the data cache server.
CN201710308357.XA 2017-05-04 2017-05-04 Static and dynamic hybrid caching method, device and system Active CN107197000B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710308357.XA CN107197000B (en) 2017-05-04 2017-05-04 Static and dynamic hybrid caching method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710308357.XA CN107197000B (en) 2017-05-04 2017-05-04 Static and dynamic hybrid caching method, device and system

Publications (2)

Publication Number Publication Date
CN107197000A CN107197000A (en) 2017-09-22
CN107197000B true CN107197000B (en) 2020-07-31

Family

ID=59872903

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710308357.XA Active CN107197000B (en) 2017-05-04 2017-05-04 Static and dynamic hybrid caching method, device and system

Country Status (1)

Country Link
CN (1) CN107197000B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110109931B (en) * 2017-12-27 2021-08-24 航天信息股份有限公司 Method and system for preventing data access conflict between RAC instances
CN110866204B (en) * 2018-08-10 2023-04-11 阿里巴巴集团控股有限公司 Page processing method and device
CN112506432A (en) * 2020-12-08 2021-03-16 国电南瑞科技股份有限公司 Dynamic and static separated real-time data storage and management method and device for electric power automation system
CN115203075B (en) * 2022-06-27 2024-01-19 威胜能源技术股份有限公司 Distributed dynamic mapping cache design method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101662503A (en) * 2009-09-14 2010-03-03 金蝶软件(中国)有限公司 Information transmission method, proxy server and service system in network
CN103095691A (en) * 2012-12-31 2013-05-08 清华大学 Method of controlling access to Internet of things nodes
CN104331444A (en) * 2014-10-27 2015-02-04 北京京东尚科信息技术有限公司 Method and device for protecting database
CN105245554A (en) * 2015-11-24 2016-01-13 无锡江南计算技术研究所 Dynamic property access control method in cloud environment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7360075B2 (en) * 2001-02-12 2008-04-15 Aventail Corporation, A Wholly Owned Subsidiary Of Sonicwall, Inc. Method and apparatus for providing secure streaming data transmission facilities using unreliable protocols
CN202121606U (en) * 2010-12-15 2012-01-18 金华六度信息科技有限公司 WEB instant messaging system based on server push technology
CN104168300B (en) * 2013-05-17 2017-06-27 中国电信股份有限公司 Content accelerated method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101662503A (en) * 2009-09-14 2010-03-03 金蝶软件(中国)有限公司 Information transmission method, proxy server and service system in network
CN103095691A (en) * 2012-12-31 2013-05-08 清华大学 Method of controlling access to Internet of things nodes
CN104331444A (en) * 2014-10-27 2015-02-04 北京京东尚科信息技术有限公司 Method and device for protecting database
CN105245554A (en) * 2015-11-24 2016-01-13 无锡江南计算技术研究所 Dynamic property access control method in cloud environment

Also Published As

Publication number Publication date
CN107197000A (en) 2017-09-22

Similar Documents

Publication Publication Date Title
CN107197000B (en) Static and dynamic hybrid caching method, device and system
CN107948314B (en) Business processing method and device based on rule file and server
EP3493084B1 (en) Method for processing data in bloom filter and bloom filter
US20140143647A1 (en) Method for improving browser cache by reducing duplicate stored content
CN106933871A (en) Short linking processing method, device and short linked server
CA2840450C (en) Method of hybrid message passing with shared memory
US20160373545A1 (en) Method and apparatus for webpage resource acquisition
CN115964319A (en) Data processing method for remote direct memory access and related product
CN108182119B (en) Read-write separation control method and device, storage medium and electronic device
EP3316543B1 (en) Device and method of enhancing item access bandwidth and atomic operation
CN109656670B (en) Page rendering method and device
CN111200637A (en) Cache processing method and device
CN107277062B (en) Parallel processing method and device for data packets
CN109032693A (en) Method and device for loading display information, electronic equipment and readable storage medium
US9471552B1 (en) Optimization of scripting for web applications
CN110750744A (en) Page presentation method and device
CN112152993A (en) Method and device for detecting webpage hijacking, computer equipment and storage medium
CN114116656B (en) Data processing method and related device
CN109101564A (en) A kind of method, apparatus and electronic equipment of page resource load simultaneously
EP4324181A1 (en) Network interface card for caching file-system internal structures
AU2022200121A1 (en) Systems and methods for storage device resource management
CN113849125A (en) Method, device and system for reading disk of CDN server
CN112612984A (en) Cross-domain forwarding proxy method and device
CN107273188B (en) Virtual machine Central Processing Unit (CPU) binding method and device
CN111182027A (en) Flow data distribution method and device based on novel architecture

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