Chapter 11. Caching Strategies in Azure
The more we build distributed systems that are read-heavy, the more important it becomes to ensure that frequently accessed data is delivered with lightning speed, and caching stands at the forefront of that effort. As we innovate with technology and scale our products consistently to meet the increasing volume of simultaneous requests while keeping costs in check, effective caching has become a necessity. This chapter lays out a comprehensive roadmap for understanding and implementing caching within Azure’s ecosystem.
In this chapter, we will cover the fundamentals of caching, including its definition, key performance metrics, and the various types (local, distributed, and session caching), and then dive into essential caching patterns such as cache-aside, read-through/write-through, and write-behind caching, along with strategies for cache invalidation. We will explore Azure’s caching services with a focus on Azure Cache for Redis, and we’ll also look at Azure’s content delivery network (CDN) offerings.
Introduction to Caching
Let’s define caching and talk about its importance by considering an example. Let’s use a hypothetical learning management system (LMS) that your team is working on as our application. Imagine an LMS with two million daily active users, where most of these users, primarily students, are consuming content (reading or watching lectures) far more often than educators are creating or uploading new material. In such ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access