Caching

Definition

Storing frequently accessed data in a fast-access location to improve performance, reduce latency, and enhance user experience in applications.

Use Cases

Provider Equivalents

Frequently Asked Questions

What's the difference between caching and a CDN?
Caching is the general technique of storing frequently used data closer to where it’s needed (often in memory or on local disk). A CDN is a global network that caches and delivers content (especially static files like images, CSS, and videos) from edge locations near users. In practice, a CDN is one specific way to do caching for web content.
When should I use caching?
Use caching when you have data that is read frequently, changes relatively infrequently, or is expensive/slow to compute or fetch (like database queries, API responses, session data, or rendered pages). It’s especially helpful when you need lower latency, want to reduce database load, or must handle traffic spikes. Avoid caching when data must always be perfectly up-to-date or when you can’t tolerate serving slightly stale results without careful invalidation.
How much does caching cost?
Costs depend on the caching layer you choose and how much data/traffic you cache. Managed in-memory caches (like Redis services) are typically priced by node size, number of nodes, and sometimes network transfer. CDN caching is usually priced by data transfer and request volume. Additional cost factors include high availability (replicas), multi-zone deployments, reserved capacity/commitments, and operational overhead (monitoring, tuning TTLs, and cache invalidation).

Category: networking

Difficulty: basic

Related Terms

See Also