<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Performance on Vijay Pagare</title><link>https://www.vijaypagare.in/blog/performance/</link><description>Recent content in Performance on Vijay Pagare</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Fri, 17 Apr 2026 22:23:16 +0530</lastBuildDate><atom:link href="https://www.vijaypagare.in/blog/performance/index.xml" rel="self" type="application/rss+xml"/><item><title>Caching: Types, Patterns, and Trade-offs</title><link>https://www.vijaypagare.in/blog/caching-types-patterns-and-trade-offs/</link><pubDate>Fri, 17 Apr 2026 21:05:00 +0530</pubDate><guid>https://www.vijaypagare.in/blog/caching-types-patterns-and-trade-offs/</guid><description>&lt;hr>
&lt;h2 id="what-is-caching">What is Caching?&lt;/h2>
&lt;p>Caching is the practice of storing data in temporary storage to enable faster access.&lt;/p>
&lt;p>At a systems level, the speed difference is massive:&lt;/p>
&lt;ul>
&lt;li>Hard disk access: ~1 ms&lt;/li>
&lt;li>Memory (RAM) access: ~100 ns&lt;/li>
&lt;/ul>
&lt;p>That’s roughly &lt;strong>10,000x faster&lt;/strong>.&lt;/p>
&lt;p>The entire idea of caching is to avoid expensive operations (disk, DB, network, computation) by serving precomputed or previously fetched data.&lt;/p>
&lt;hr>
&lt;h2 id="types-of-caching">Types of Caching&lt;/h2>
&lt;h3 id="1-external-cache">1. External Cache&lt;/h3>
&lt;p>A separate system acting as a shared cache layer.&lt;/p></description></item></channel></rss>