BRK374 · Breakout
Beyond the cache: How Sitecore builds to scale on Azure Managed Redis
Speakers: Justine Cocchi, Shruti Pathak
Microsoft’s player cannot open a video at a given time: once it plays, skip to the time shown.
What the session covers
The session positions Azure Managed Redis as a fully managed in-memory store and announces Redis 8.2 support (public preview), with modules pre-built into every cache and vector sets for AI applications. Sitecore explains how Content Hub on AKS uses a single Redis instance in three roles: an entity store built on hashes and sets, a low-latency layer for Elasticsearch index rebuilds, and a priority queue on sorted sets with KEDA autoscaling. Justine Cocchi then covers database tuning before caching and five caching patterns (cache-aside, reference data prefetching, write-behind, write-through, event-driven invalidation via Azure Functions), demonstrated in a Contoso storefront backed by Azure SQL. She announces keyspace notifications as GA, gives production guidance (TTL jitter, connection reuse, tenant-scoped and versioned keys) and shows the Azure Managed Redis Agent Kit (public preview) reviewing code in VS Code.
Best for: Developers and architects building AKS or database-backed applications who want concrete Redis caching and data-modelling patterns on Azure.
New material starts at 03:59. After a recap of Azure Managed Redis capabilities, the Redis 8.2 announcement with integrated modules and vector sets starts at 03:59.
Where to skip: Watch 03:59–04:53 for Redis 8.2, then skip to 11:39 for the Sitecore architecture and the sorted-set priority queue with KEDA (to 21:23). Skip the 21:23 recap; the caching patterns from 30:25, the GA announcement at 41:06, the demo at 42:33 and the Agent Kit at 48:12 are the core. For a Copilot specialist it is only marginally relevant, apart from the Agent Kit demo.
Chapters (15)
- 00:00 Recap Depth 200 · Novelty 0/3
Azure Managed Redis overview: workload types, geo-replication, Flash and modules
Shruti Pathak introduces the session and positions Azure Managed Redis as a first-party, fully managed in-memory data store with five nines of availability. She groups Redis workloads into database apps, app state, real-time messaging and AI apps; the session focuses on the first two. She recaps active-active geo-replication across up to five regions, Flash-optimized tiering to NVMe, the RediSearch, TimeSeries, JSON and Bloom modules, and automatic updates with online scaling.
- 03:59 New Depth 200 · Novelty 2/3
Redis 8.2 on Azure Managed Redis with integrated modules and vector sets
Redis 8.2 is announced for Azure Managed Redis, with performance improvements and modules pre-built into every cache so they no longer have to be selected at creation. It also adds expanded vector search APIs and vector sets for AI applications. It applies to newly created clusters; the slide labels it Public Preview while the speaker says it is available now.
- 04:53 Customer story Depth 200 · Novelty 1/3
Sitecore video: Content Hub on AKS, freed ops staff, Entra ID and private endpoints
Thomas Duck, director of engineering at Sitecore, briefly shows Content Hub asset search and explains that the platform runs on Azure Kubernetes Service with Azure Managed Redis. Dedicated resources per customer give predictable performance and reduce planned downtime and spike investigations. Automated management and upgrades freed two dedicated operational staff, and security improved via Microsoft Entra ID with managed identities and private endpoints; right-sizing per customer brought cost savings.
- 07:51 Customer story Depth 100 · Novelty 1/3
What Sitecore Content Hub does: assets, metadata, workflows and AI-powered search
Shruti explains Content Hub as a shared workspace for creating, organising, reviewing and distributing digital assets with metadata, relationships, permissions, versions, rights and approvals. A fictitious retail product illustrates the many images, videos and documents per item. Content Hub offers metadata-based filtering and AI-powered search, and behind the scenes must handle versioning, rights checks, approvals and renditions for thousands of assets.
- 11:39 Deep dive Depth 300 · Novelty 1/3
Content Hub architecture: Redis as primary entity store using hashes and sets
The architecture splits data across Azure Blob Storage (original files and renditions), Azure Managed Redis (entity data and relationships) and Elasticsearch (denormalised projections for search, which can be rebuilt), with asynchronous workers on AKS. In the first Redis role, Sitecore models flexible schemas and bidirectional relationships with native Redis hashes and sets instead of JSON documents, so relationship changes become set operations. The speaker stresses this is not advice to replace databases with Redis, but to choose structures based on the data objects and interactions an app needs.
- 16:01 Deep dive Depth 300 · Novelty 1/3
Redis for index rebuilds and a priority queue on sorted sets with KEDA autoscaling
In the second role, low latency and high throughput matter for background work: rebuilding the Elasticsearch index requires pulling large volumes of entity and relationship data from Redis, so small latency differences add up. In the third role, Sitecore built a custom priority-based message broker on Redis sorted sets, where worker pods on AKS pop the highest-priority item first. The outstanding message count is exposed as a metric via a custom endpoint and KEDA scales the worker pods horizontally, down to zero when the backlog is empty.
- 21:23 Recap Depth 200 · Novelty 0/3
Sitecore takeaways: one Redis instance, three roles, design questions for your apps
Shruti recaps the split between Blob Storage, Azure Managed Redis and Elasticsearch and that the same Redis instance can serve as entity store, low-latency data layer and priority queue. She cautions against copying Sitecore's stack, since their choices follow from a flexible entity model and processing needs. Suggested questions are which data objects you have, how the app interacts with them and which signals it should emit for autoscaling; she then hands over to Justine for database-backed apps.
- 24:48 Deep dive Depth 300 · Novelty 1/3
Before adding a cache: database tuning, precomputation and when caching pays off
Justine introduces a sample retail storefront with a products API backed by Azure SQL, noting the concepts also apply to PostgreSQL and Cosmos DB. Before caching, she recommends optimising queries and indexes, using engine features such as the Azure SQL buffer pool and plan cache or the configurable PostgreSQL shared buffer cache, and precomputing with summary tables or materialized views. Caching adds consistency and expiry complexity, so decisions should weigh result reuse, freshness requirements per update type (price vs. inventory) and the option to defer writes in batches.
- 30:25 Deep dive Depth 300 · Novelty 1/3
Cache-aside with TTL, volatile-LRU eviction and reference data prefetching
Justine outlines five caching patterns and starts with cache-aside: read from Azure Managed Redis first, fall back to Azure SQL on a miss and write the result back with a TTL to manage freshness. She distinguishes TTL-based freshness from eviction, explaining that the default Azure Managed Redis eviction policy is volatile-LRU, which evicts least recently used keys that have a TTL. For stable data such as product categories, reference data prefetching loads data at application startup without a TTL, relying on event-driven invalidation for changes.
- 36:06 Deep dive Depth 300 · Novelty 1/3
Write-behind batching, write-through updates and event-driven invalidation via Azure Functions
For page view counters, write-behind increments a hash in Redis and a background task (every 15 seconds in the example) flushes pending batches to Azure SQL in one write. For price updates, write-through updates Azure SQL first and then Redis with a new TTL; since there is no distributed transaction, retries and error handling are needed, and writing SQL first avoids caching wrong values. For writes from outside the app, such as a warehouse updating inventory, Azure SQL change tracking triggers an Azure Function that invalidates the Redis key, which also keeps TTL-less reference data fresh.
- 41:06 New Depth 300 · Novelty 2/3
Reacting to data changes: CDC, Redis Streams and keyspace notifications now GA
Justine lists ways to react to data changes: change data capture (Azure SQL change tracking, Cosmos DB change feed), application-published events on Redis Streams with replay for consumers, and keyspace notifications that publish Pub/Sub events whenever a Redis key changes. Keyspace notifications in Azure Managed Redis are announced as generally available, enabling event-driven workflows and key monitoring without polling.
- 42:33 Demo Depth 300 · Novelty 1/3
Demo: Contoso storefront showing prefetch, cache-aside, write-through, invalidation, write-behind
Justine demonstrates all five patterns in a Contoso retail web app. Category chips load from prefetched Redis data; a first product load from Azure SQL takes about 136 ms while the cached reload takes about 1 ms. A price change from $110.05 to $11.05 is written through to SQL and Redis, an external restock from 85 to 95 propagates via the Azure Functions invalidation, and a stats page shows a page view pending in Redis before being flushed to Azure SQL as a batch.
- 46:50 Deep dive Depth 300 · Novelty 1/3
Production readiness: TTL jitter, connection reuse, resiliency, tenant-scoped and versioned keys
Moving the demo app to production, Justine recommends TTL jitter to prevent simultaneous expirations from overloading the database. Redis uses long-lived TCP connections, so clients should be reused with connection pools, alongside retries and the circuit breaker pattern. Keys should be scoped per tenant with authorised cache hits, and versioned so that application versions can coexist without breaking changes.
- 48:12 Demo Depth 300 · Novelty 2/3
Azure Managed Redis Agent Kit in public preview: AI code review in VS Code
The Azure Managed Redis Agent Kit is announced in public preview to bring AI-assisted development guidance into the coding environment, catching client configuration risks and giving infrastructure recommendations. In Visual Studio Code, Justine asks the agent to review the app's connection management against best practices and return the top three improvements with file names and line numbers. The agent flags refreshing Microsoft Entra ID tokens on long-lived connections, timeouts and bounded retries, and setting max connections, and lists what is already done well.
- 50:34 Closing Depth 100 · Novelty 0/3
Recap of takeaways and Ignite roundup blog for Azure Managed Redis
Justine recaps the application types, Redis data structures, when cache reuse earns its place, freshness patterns and using the Agent Kit for best practices. She points to a blog roundup of further Azure Managed Redis announcements from Ignite at aka.ms/ignite26/amr and closes with reference links.
Announcements (3)
-
Redis 8.2 support in Azure Managed Redis
New Azure Managed Redis clusters can run Redis 8.2 with performance improvements, modules integrated by default and expanded vector search APIs and vector sets.
Speaker’s quote (at 03:59)
„we are thrilled to announce that Redis 8.2 is also available with Azure Managed Redis now. This is the latest version of Managed Redis on Azure.“
-
Keyspace notifications in Azure Managed Redis
Pub/Sub notifications emitted automatically whenever a Redis key changes, for building event-driven workflows without polling.
Speaker’s quote (at 42:00)
„We are excited to announce that key space notifications in Azure Managed Redis are now generally available.“
-
Azure Managed Redis Agent Kit
AI-assisted development kit used in the existing coding environment to review Redis client configuration and give infrastructure recommendations.
Speaker’s quote (at 48:12)
„luckily, we now have the Azure Managed Redis Agent Kit, which is public preview now.“
Demos (2)
-
Show developers how five caching patterns behave in a retail web app backed by Azure SQL and Azure Managed Redis.
Steps (7)
- Open the Contoso storefront and note the category chips loaded from Redis without calling SQL.
- Open a product for the first time and observe it served from Azure SQL in about 136 ms.
- Return to the catalog, open the same product and observe it served from Redis in about 1 ms.
- Edit the product price from $110.05 to $11.05 and save, updating Azure SQL and Redis via write-through.
- Simulate an external warehouse restock of 10 units directly in SQL; the page is served from SQL with stock 95.
- Refresh the page and confirm it is served from Redis with the updated stock thanks to the Azure Functions change-tracking trigger.
- Open the stats page, view a product, see the page view pending in Redis, then refresh after the 15-second background task to see it flushed to Azure SQL.
Prerequisites: Azure Managed Redis instance, Azure SQL database with change tracking enabled, an Azure Function with a SQL trigger, and a background task flushing batches every 15 seconds; the sample app itself is not stated as published.
-
A developer uses an AI agent in Visual Studio Code to review Redis connection management and get prioritised fixes.
Steps (4)
- Open the sample app project in Visual Studio Code.
- Ask the agent to review the app's connection management against best practices and return the top three recommendations with file names and line numbers.
- Review the results: refresh Microsoft Entra ID authentication on long-lived connections, add timeouts and bounded retries, and set max connections.
- Open the referenced file to confirm Entra ID is used without passwords, and review the list of what is already done well.
Prerequisites: Visual Studio Code with an AI agent and the Azure Managed Redis Agent Kit (https://aka.ms/amr-agent-kit); which agent host is used is not stated.