E-commerce site comparison of commonly used cache policy framework, e-commerce site architecture
Cache is an important component in distributed system, which mainly solves the performance problem of hot data access in high concurrency and big data scenarios. Provides fast, high-performance data access.
This time, it is easy to understand how to share the schema of a caching strategy that I think is more common. Welcome to the sink.
Have a more awesome also welcome everyone said:
Cache is an important component in distributed system, which mainly solves the performance problem of hot data access in high concurrency and big data scenarios. Provides fast, high-performance data access.
The principle of caching
(1) Data write/read faster storage (device);
(2) cache the data to the nearest location of the application;
(3) cache the data to the nearest user location.
Cache classification
In distributed systems, the application of caching is very extensive, from the deployment perspective there are several aspects of the cache application.
(1) CDN Cache;
(2) reverse proxy cache;
(3) distributed cache;
(4) local application cache;
Cache Media
Common middleware: Varnish,ngnix,squid,memcache,redis,ehcache, etc.;
Cached content: Files, data, objects;
Cached media: CPU, Memory (local, distributed), disk (local, distributed)
Cache design
The caching design needs to address several issues:
(1) What is cached?
Which data needs to be cached: 1. Hot data; 2. static resources;
(2) Where is the cache?
CDN, reverse proxy, distributed cache server, native (memory, hard disk)
(3) How to cache the problem?
1. Fixed time: For example, specify the cache time is 30 minutes;
2. Relative time: such as data not accessed in the last 10 minutes;
- Synchronization mechanism
http://www.bkjia.com/PHPjc/1135476.html www.bkjia.com true http://www.bkjia.com/PHPjc/1135476.html techarticle e-commerce site comparison of commonly used cache policy framework, e-commerce site architecture cache is an important component of distributed systems, mainly to solve high concurrency, big data scenarios, hot data visit ...