Caching
Explore the concept of caching in distributed systems to understand how frequently accessed data is stored in fast storage layers like RAM. Learn the difference between cache-hit and cache-miss, and discover how distributed caching uses replication and partitioning to improve system availability and response times in large-scale applications.
We'll cover the following...
When we visit a webpage for the first time, it takes some time to load. But from that point on, it is quicker to load.
❓ Do you ever wonder why this happens? The answer is caching.
In this lesson, we’ll discuss caching at the database level because this is a very well-known practice in the world of distributed systems. But remember that the concept is not limited to databases only. Your laptop itself has a cache that is an integral part of the machine’s hardware.
What is caching?
The first time a website is accessed, your browser locally stores some data that helps to load the website faster in the future. This is the basic idea of caching.
Note: In caching, frequently used data is stored in faster storage (like RAM) ...