Caching Flashcards
“What is caching?”
“Caching is a technique that stores frequently accessed data temporarily in a fast storage layer to improve performance and reduce latency.”
“How does caching improve application performance?”
“Caching reduces latency by serving data from a fast storage layer instead of fetching it from a slower database or computation.”
“What are the main benefits of caching?”
“Improved performance, reduced server load, cost-efficiency, and better scalability.”
“What are some challenges of caching?”
“Ensuring cache consistency, handling stale data, and implementing proper cache invalidation strategies.”
“What is client-side caching?”
“Client-side caching stores data locally on the user’s device to minimize server interactions and speed up response times.”
“What are examples of client-side caching mechanisms?”
“Browser cache, local storage, and cookies.”
“What is a drawback of client-side caching?”
“Limited storage capacity and the risk of serving stale data if not properly refreshed.”
“What is CDN caching?”
“CDN caching stores static content on geographically distributed edge servers to serve users from the nearest location.”
“How does a CDN improve performance?”
“It reduces latency by serving content from a nearby server instead of the origin server.”
“What is a challenge in using a CDN?”
“Managing cache invalidation to ensure users always receive updated content.”
“What is web caching?”
“Web caching stores HTTP responses to reduce server load and improve page load times.”
“What are the two main types of web caching?”
“Proxy caching and reverse proxy caching.”
“How does reverse proxy caching work?”
“It caches content on the server-side to reduce the load on application servers.”
“What is database caching?”
“Database caching stores query results or frequently accessed data in a cache layer to reduce database load and improve query response times.”
“Which tools are commonly used for database caching?”
“Redis and Memcached.”
“What is a key challenge of database caching?”
“Ensuring cache consistency with the database and handling cache invalidation.”