E-commerce site comparison of commonly used cache policy framework, e-commerce site Architecture _php Tutorial

Source: Internet
Author: User

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?

    • Expiration policy

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 ...

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.