Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Cache generation and control method, cache server and interface server

A cache server and interface server technology, which is applied in the fields of cache generation and control, cache server and interface server, can solve problems such as database congestion, high concurrency, and performance degradation, and achieve the effects of ensuring efficiency, improving user experience, and alleviating database congestion

Active Publication Date: 2017-02-22
NUBIA TECHNOLOGY CO LTD
View PDF5 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, when the cached result does not exist, the existing cache generation scheme will inevitably have the problem of high concurrency caused when the user sends the same user request at a certain moment and the cached result corresponding to the user request does not exist, that is, this Sometimes, if there are highly concurrent requests to the system, the system will separately access the database according to these user requests in a short period of time, resulting in database congestion and a sharp drop in performance

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Cache generation and control method, cache server and interface server
  • Cache generation and control method, cache server and interface server
  • Cache generation and control method, cache server and interface server

Examples

Experimental program
Comparison scheme
Effect test

no. 1 example

[0072] refer to figure 2 , figure 2 It is a flow chart of the cache generation control method provided in the first embodiment of the present invention, and its control process includes:

[0073] S201: The cache server receives a cache generation lock request;

[0074] S202: Determine whether there is already a cache generation lock request identical to the received cache generation lock request; if yes, go to S203; otherwise, go to S204;

[0075] S203: Feedback the locked indication to the interface server.

[0076] S204: Feedback an indication of successful locking to the interface server.

[0077] In this embodiment, the cache generation lock request received by the cache server refers to a request generated and sent by the interface server when receiving a user request and judging that the corresponding cache value does not exist.

[0078] It should be understood that, in this embodiment, there are two states that the cache value does not exist: the cache value is in...

no. 2 example

[0116] This embodiment provides a cache generation method on the basis of the first embodiment.

[0117] refer to Figure 6 , Figure 6 It is a flow chart of sending a buffer to generate a lock request when the interface server screens user requests provided in the second embodiment of the present invention. The process includes:

[0118] S601: The interface server receives the user request;

[0119] S602: judge whether there is a corresponding cache value; if so, turn to S603; otherwise, turn to S604;

[0120] S603: Return the corresponding cached value to the user.

[0121] S604: judge whether there is the same user request; if so, turn to S605; otherwise, turn to S606;

[0122] S605: Send a cache generation lock request to the cache server for the same user request.

[0123] S606: Send a cache generation lock request to the cache server for each user request.

[0124] That is, when the interface server determines that among received user requests, at least two identi...

no. 3 example

[0137] In order to minimize the situation that the cache value corresponding to the user request does not exist, this embodiment provides a cache generation control method on the basis of the first embodiment and the second embodiment.

[0138] refer to Figure 7 , Figure 7 The flow chart of cache refreshing provided by the third embodiment of the present invention. The cache refresh process includes:

[0139] S701: The interface server scans the effective time of each cache value in the cache server;

[0140]S702: Whether the remaining effective time of the scanned cache value is less than the preset time threshold; if so, then proceed to S703; otherwise, proceed to S706;

[0141] S703: Obtain the cache key corresponding to the cache value;

[0142] S704: Obtain a corresponding interface according to the cache key;

[0143] S705: Call the obtained interface to regenerate the cache value and write it into the cache server.

[0144] S706: Do not operate on the cached val...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a cache generation and control method, a cache server and an interface server. The cache generation and control method, the cache server and the interface server are used for solving the technical problems of database congestion and sharp reduction of performances caused by highly concurrent requests for access to a database when a cache is invalid or nonexistent in an existing caching scheme. The cache generation and control method comprises the steps of judging whether a cache generation locking request same as a received cache generation locking request is existent after the cache server receives the cache generation locking request; and if so, feeding back an indication for indicating that the cache generation is locked to the interface server to inform the interface server of waiting for generation of a cache value. Consequently, the technical problems of database congestion and sharp reduction of the performances caused by the highly concurrent requests of a system are relieved efficiently, application of the caching technology is not affected, and generalization and application of the caching scheme are facilitated.

Description

technical field [0001] The present invention relates to the technical field of caching, and more specifically, to a caching generation and control method, a caching server and an interface server. Background technique [0002] With the development of information technology and network technology, caching technology has gradually become a popular and indispensable field. The caching technology improves the concurrent performance of the system to a certain extent, solves the problem of the speed difference between the central processing unit speed and the memory speed in server products, and at the same time, the response speed to user requests is also improved to a certain extent. [0003] In the existing cache generation scheme, when the user requests to enter the server, the corresponding interface will be called. In the method, it will first judge whether the cache result corresponding to the interface exists, and if it exists, it will be directly returned to the user; if ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): H04L29/08
CPCH04L67/568
Inventor 倪秉炬
Owner NUBIA TECHNOLOGY CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products