Cloud service · Azure · Updated

Azure Cache for Redis - Azure Cache for Redis is a managed Redis service that provides shared, low-latency data storage for application caching, sessions, and coordination.

In short

Azure Cache for Redis hosts dedicated Redis instances and manages their infrastructure, maintenance, and tier-dependent availability capabilities. Applications use Redis clients to cache database results, share session state, and work with in-memory data structures. All tiers have announced retirement timelines, so existing deployments should plan migration to Azure Managed Redis.

Cloud Services Hub →

9 key features of Azure Cache for Redis

01
Managed Redis infrastructure

Microsoft operates the Redis hosting infrastructure and manages service maintenance. Engineers still own client configuration, key design, capacity planning, and application behavior during maintenance or failover.

02
Redis data structures and atomic operations

Use strings, hashes, lists, sets, and sorted sets for shared application state. Atomic commands such as INCR support counters without an application-side read-modify-write race; Redis transactions do not provide relational-style rollback.

03
Expiration and memory eviction

Assign time-to-live values to individual keys and configure an appropriate eviction policy. Monitor evictions separately from expirations, because memory-driven eviction can remove entries earlier than the application expects.

04
Replication and availability zones

Standard and higher tiers provide replicated configurations with failover capabilities. Zone redundancy is available in supported regions and configurations, but applications must tolerate reconnections and potential loss of recently written data.

05
Scaling and clustering

Increase cache size to obtain more capacity and associated compute or network resources, or use supported clustering configurations to partition data. Clustered applications need compatible clients, and multi-key operations must respect hash-slot restrictions.

06
Tier-dependent persistence and geo-replication

Premium and Enterprise configurations offer persistence options to improve recovery after failures. Geo-replication capabilities differ by tier, including passive replication in Premium and active geo-replication in supported Enterprise configurations; validate recovery procedures and consistency behavior.

07
Private connectivity and identity-based access

Use Azure Private Link to access supported deployments through private endpoints and configure DNS resolution for application networks. Basic, Standard, and Premium support Microsoft Entra authentication and can disable access-key authentication after clients have migrated.

08
Enterprise modules

Enterprise tiers support modules such as RediSearch, RedisJSON, RedisBloom, and RedisTimeSeries. Confirm module availability and compatibility for the selected configuration and migration target before relying on module-specific commands.

09
Monitoring and connection auditing

Azure Monitor exposes operational metrics, and diagnostic settings support connection auditing. Combine service metrics with application traces to distinguish cache saturation, network delays, authentication failures, and client-side bottlenecks.

Where Azure Cache for Redis is used

  1. 01
    Database query caching

    Cache frequently requested Azure SQL Database or Azure Cosmos DB results using cache-aside. Set explicit expiration and invalidation rules, and ensure the database can handle cache misses or a controlled cache rebuild.

  2. 02
    Shared web session state

    Store session data centrally so requests can move between application instances without relying on instance-local memory. Align key expiration with session policy and define what users experience if session data is evicted or lost.

  3. 03
    Rendered content and computed-result caching

    Reuse expensive page fragments, API responses, or computed results across application instances. Include tenant, locale, authorization scope, and relevant input versions in cache keys to prevent serving the wrong content.

  4. 04
    Rate limiting and short-lived counters

    Use atomic increments and expiration to track request quotas or temporary activity counts. Implement the increment-and-expiration sequence atomically where required, and choose an explicit fail-open or fail-closed policy for cache outages.

  5. 05
    Real-time rankings and membership checks

    Use sorted sets for leaderboards and sets for fast membership checks. Keep an authoritative record elsewhere when the application must reconstruct rankings or memberships after data loss.

  6. 06
    Lightweight messaging and task coordination

    Use Redis pub/sub for transient notifications or lists and streams for application-managed work distribution. Pub/sub does not retain messages for disconnected consumers; use Azure Service Bus when durable broker features and managed delivery guarantees are required.

How Azure Cache for Redis is priced

Basic provisioned capacity

Billed for the selected cache size while provisioned, rather than per cache operation. The single-node design has no availability SLA and is intended for development, testing, or noncritical workloads.

Standard provisioned capacity

Billed according to the selected replicated cache size. Choose capacity using measured memory consumption, throughput, and connection requirements rather than stored value size alone.

Premium provisioned capacity and shards

Charges depend on the selected Premium size and deployed shard configuration. Additional shards increase provisioned capacity and cost; persistence storage and related resources can add charges.

Enterprise and Enterprise Flash capacity

Costs reflect the selected Enterprise SKU and deployed capacity, with Redis Enterprise software licensing obtained through Azure Marketplace. Marketplace purchasing eligibility is required; these tiers are retiring, and new creation requests are blocked starting April 1, 2026.

Associated resource and migration costs

Budget separately for applicable private endpoints, storage, monitoring ingestion, and network transfer. Parallel operation of the old cache and Azure Managed Redis during validation or migration incurs charges for both resources.

Services Azure Cache for Redis works with

A typical architecture places application compute in Azure App Service, Azure Functions, or Azure Kubernetes Service, with Redis serving as a shared cache in front of Azure SQL Database or Azure Cosmos DB. Application code implements cache-aside, expiration, and invalidation; deploying these services together does not establish automatic data synchronization. Keep the database authoritative and control concurrent reloads so a cold cache does not overwhelm the backend.

For private architectures, connect application networks to a cache private endpoint and configure private DNS resolution. App Service and Functions require suitable outbound network integration, while AKS requires compatible routing and DNS. Where supported, managed identities and Microsoft Entra authentication remove the need to distribute cache access keys, but clients must support token refresh for long-lived connections.

Use Azure Monitor and application telemetry together to investigate latency, evictions, and connection pressure. Plan migration to Azure Managed Redis as a separate architecture change: validate commands, modules, clustering, identity, and network paths before production cutover. Supported DNS migration tooling can reduce endpoint changes, but it does not replace workload testing, recovery planning, or validation of retained data.

App Service

App Service applications connect through Redis client libraries or framework caching providers to share cached data and session state. For example, an ASP.NET Core application can use a Redis-backed IDistributedCache so requests handled by different instances read the same session data. For private access, configure App Service VNet integration and private endpoint DNS resolution; on supported cache tiers, use a managed identity with the required data-access policy.

Azure Functions

Functions can access Redis through client libraries, and Azure Functions also provides Redis-specific bindings and triggers. For example, an HTTP-triggered function can cache a frequently requested reference-data response with a short expiration. Reuse connections across invocations, check binding and authentication support, and verify that the hosting plan supports the required private-network connectivity.

Azure SQL Database

Applications commonly place Redis in front of Azure SQL Database using cache-aside; the cache is not an automatically synchronized SQL replica. For example, an API can cache a product lookup and invalidate its key after a successful SQL update. Design for stale reads and limit concurrent database reloads when a popular key expires.

Azure Cosmos DB

Applications can cache frequently accessed Cosmos DB items or query results to reduce repeated database requests. For example, a customer-profile API can cache a profile by tenant and customer identifier, then invalidate the entry when the profile changes. A change-feed processor can perform invalidation, but processing delays mean the cache remains eventually consistent.

Azure Kubernetes Service (AKS)

AKS-hosted services can share a managed Redis cache without operating Redis pods themselves. For example, multiple checkout-service replicas can use the same short-lived cart cache through a private endpoint. Configure cluster DNS and routing, reuse client connections within each process, and account for connection growth as pods scale.

Azure Monitor

Use Azure Monitor metrics and diagnostic settings to observe cache behavior and send supported logs to Log Analytics. For example, alert on sustained memory pressure or evictions and correlate the incident with API latency and database traffic. Track application-level cache-hit rates separately when the service metrics do not capture the business-level behavior being measured.

Azure Managed Redis

Azure Managed Redis is the migration destination for retiring Azure Cache for Redis deployments. For example, an existing Premium cache can move to a compatible Managed Redis configuration after testing client behavior, authentication, and clustering. Built-in DNS migration tooling supports redirecting an existing Basic, Standard, or Premium cache hostname to an existing Managed Redis instance while preserving the hostname and access key, with data-retention support; validate eligibility and cutover prerequisites.

API Management

Azure Cache for Redis can serve as the external cache for API Management. API Management caching policies can use it to store and retrieve backend responses or individual values.

Azure Advisor

Azure Advisor surfaces retirement recommendations for affected Azure Cache for Redis instances so their owners can identify which caches need to move to Azure Managed Redis.

Azure App Testing

Azure Cache for Redis can be added as an application component in Azure Load Testing. A test run can show cache metrics, such as server load and cache hits, alongside request latency and throughput.

What is Azure Cache for Redis

2 min read

Azure Cache for Redis provides a network-accessible data store for applications that need fast access to frequently used information. Microsoft operates the underlying infrastructure, while engineers configure capacity, connectivity, authentication, and application caching behavior. Basic, Standard, and Premium use open-source Redis; Enterprise and Enterprise Flash use Redis Enterprise. Applications connect through Redis client libraries, but should validate command, module, and clustering compatibility rather than assuming unrestricted access to every Redis capability.

The service is retiring. Basic, Standard, and Premium retire on September 30, 2028, and instances that have not migrated will be shut down. Enterprise and Enterprise Flash retire on March 31, 2027; new creation requests are blocked starting April 1, 2026. Remaining Enterprise instances are scheduled for automatic migration after April 1, 2027, but engineering teams should plan and validate their own migration rather than depend on an automatic transition. Azure Managed Redis is the recommended destination for existing workloads and the starting point for new Redis deployments.

A common application design uses cache-aside. The application checks Redis for a key, reads the authoritative database on a miss, and stores the result with an expiration time. Database writes must also invalidate or refresh affected cache entries. Choose expiration periods according to acceptable staleness, add expiration jitter to reduce synchronized misses, and protect frequently requested keys against concurrent reloads. Redis does not automatically synchronize arbitrary database changes into cached values.

Capacity planning must account for serialized values, key overhead, fragmentation, connection overhead, and memory reserved for replication or persistence. An eviction policy determines what happens when usable memory fills; it does not replace an application-level expiration strategy. Test realistic value sizes and command mixes, because network bandwidth, server load, and expensive commands can limit throughput before memory is exhausted. Reuse client connections and configure bounded timeouts, reconnection behavior, and retry policies.

Availability and durability depend on the tier and configuration. Basic has a single node and no availability SLA. Replicated tiers provide failover, and supported configurations can distribute replicas across availability zones. Replication is not a guarantee against data loss. Persistence on supported Premium and Enterprise configurations can improve recoverability, but a cache should not become the only copy of critical business data without a deliberate durability design.

Use TLS, restrict network access, and prefer private endpoints where appropriate. Basic, Standard, and Premium support Microsoft Entra authentication, including managed identities and disabling access-key authentication. Monitor memory usage, evictions, connection counts, server load, and latency alongside application cache-hit rates. During migration, test authentication, command compatibility, clustering, and failure recovery. Built-in DNS migration tooling supports redirecting an existing Basic, Standard, or Premium hostname to an existing Azure Managed Redis instance while retaining the hostname and access key, with data-retention support; validate its prerequisites before cutover.

Azure architecture icons are the property of Microsoft. BlowStack is not affiliated with or endorsed by Microsoft.