Caching = Storing data so that it can be fetched much faster next time.
#systemdesign #tech #interview
Caching = Storing data so that it can be fetched much faster next time.
Comment “pdf” for detailed notes on caching.
✅ 1. Browser-Side Caching (Client Cache)
What it is: Store static assets (JS, CSS, images) in the user’s browser so future visits load instantly.
Why: Reduces repeat network requests and speeds up subsequent page loads.
✅ 2. CDN Layer Caching (Edge Caching)
What it is: CDN caches your static content near users (Cloudflare, Azure Front Door).
Why: Cuts round‑trip latency drastically and reduces load on your servers.
✅ 3. Application-Level Caching
What it is: Stores API response or computed data in memory so that backend doesn’t process the same request again.
Types:
• In-memory (fastest, per node)
• Distributed (Redis, Memcached)
✅ 4. Database Query Caching
What it is: Cache results of heavy joins or repeated queries.
Why: Minimizes DB load and speeds up dynamic content.
✅ 5. Reverse Proxy / Gateway Caching (Nginx Level)
What it is: A gateway layer caches responses before they hit your backend.
Why: Protect backend from repetitive load during spikes.
(Nginx, AWS API Gateway Cache etc)
#systemdesign #tech #interview #caching #career
(Caching strategies, API optimisation,Web performance, Cdn cache, Redis , Database Cache, browser cache, scaling web apps, backend engineering)
Comments
Comments from the original post on Instagram
No comments yet
