Cache | System Design Part - 6
In the last part of the SYSTEM DESIGN SERIES, we have gone through HIGH-LEVEL DESIGN , which gave us a clear picture of how a web request traverse from client to database layer, In this part we will be focusing on Cache, which helps in reducing the response time of the web requests. Cache is in-memory storage in which it will store results of frequently accessed data in the memory so that the response time for the upcoming requests will be drastically reduced Every time a web request is made, there will be a couple of database calls that will be done to fetch the data, Having frequent database calls can impact the response time and user experience, Hence to mitigate this problem we are introducing Cache in the web layer Cache Tier Cache tier is a temporary storage layer that can provide a quick response compared to the database. some of the benefits of having a cache tier are System Performance. it can be scaled independently. It reduces the workload of databases. Every time we ge...