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

Cache realization method of interface calling

A technology of interface calling and caller, which is applied in the direction of memory address/allocation/relocation, program control device, input/output to record carrier, etc. It can solve the problems of caching server performance, waste of system resources, and low update frequency. Achieve the effect of reducing network transmission overhead, reducing pressure, and avoiding waste of system resources

Active Publication Date: 2014-03-19
重庆天极云服科技有限公司
View PDF5 Cites 18 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, in the centralized caching solution, all calls must be implemented by calling the cache server through the network. In this way, in the case of a particularly large number of calls, it will cause network congestion and even performance problems of the cache server itself.
At the same time, for interfaces that are not updated in real time (that is, the update frequency is low), such as basic data interfaces, etc., this kind of overhead is unnecessary, so it will cause waste of system resources

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 realization method of interface calling

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0015] In order to make the purpose, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0016] The core idea of ​​the present invention is: effectively combining the centralized cache and the stand-alone cache, not only ensuring the data consistency of the stand-alone cache, but also making full use of the stand-alone cache, effectively reducing the pressure on the centralized cache, reducing network transmission overhead, and avoiding system Waste of resources.

[0017] figure 1 It is a schematic flow chart of Embodiment 1 of the present invention, such as figure 1 As shown, this embodiment mainly includes:

[0018] Step 101 , when the caller application program executes an interface call of an external application program, it queries the Ehcache cache of the stand-alone machine where it is located, and obtains the versio...

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 realization method of interface calling, which effectively integrates a centralized cache and a stand-alone cache. Interface version number information saved in a stand-alone Ehcache cache is used for monitoring timeliness of interface information in a stand-alone memory cache, an interface calling return result is preferentially acquired from the local stand-alone cache during interface calling, so that the local stand-alone cache can be made full use of to acquire the interface calling return result under the condition of low interface update frequency, the centralized cache can be used for acquiring the interface calling return result under the condition of high interface frequency, the data consistency of the stand-alone cache can be realized, the stand-alone cache can be made full use of, the pressure of the centralized cache is effectively reduced, the network transmission overhead is reduced, and the system resource waste is avoided.

Description

technical field [0001] The invention relates to caching technology, in particular to a caching implementation method of interface calling. Background technique [0002] At present, in large-scale, high-concurrency and high-load WEB systems in the Internet and other fields, caching technology is generally used to improve performance. Without the support of caching technology, it is impossible to solve the large concurrency problem of the WEB system. Even if it is solved, it will cost a lot of money. Therefore, an excellent caching solution is very important for large-scale high-concurrency systems. [0003] According to different system scales, there are two existing caching technologies, one is stand-alone caching and the other is centralized caching. Stand-alone caching means that the WEB application and the cache are the same application, which is the simplest caching strategy. HashMap and List used in Java-based programs can all be counted as the category of caching. Ce...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/44G06F12/08G06F3/06
Inventor 李鹏涛王进思李杰赵玉勇
Owner 重庆天极云服科技有限公司
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