architect-handbook

Software Architect Handbook

View on GitHub

Caching

Overview

Caching is a technique that stores a copy of a given resource and serves it back when requested. It is a temporary data store layer, much faster than the database, and it usually stores the result of expensive responses or frequently accessed data in memory so that subsequent requests are served more quickly.

When a web cache has a requested resource in its store, it intercepts the request and returns its copy instead of redownloading from the originating server.

Considerations

Refer to the paper titled “Scaling Memcache at Facebook”.