Cloud service · Azure · Updated

Azure Managed Redis - Azure Managed Redis is a fully managed, Redis Enterprise–based in-memory data service for caching, shared application state, and real-time data processing on Azure.

In short

Azure Managed Redis reduces database load and application response times by keeping frequently accessed data close to application compute. It supports Redis data structures, search and vector workloads, high availability, and optional cross-region replication while Microsoft manages the underlying infrastructure.

Cloud Services Hub →

10 key features of Azure Managed Redis

01
Managed Redis Enterprise architecture

Multiple Redis shards run across service-managed nodes, allowing the service to use compute resources beyond a single Redis process. Choose a supported clustering policy and verify client routing, multi-key command, and transaction behavior before deployment.

02
Workload-specific resource tiers

Memory Optimized, Balanced, and Compute Optimized tiers offer different memory-to-compute proportions. Flash Optimized combines RAM and NVMe storage for larger datasets, so benchmark access patterns rather than sizing only by total data volume.

03
High availability and zone redundancy

Enabling high availability replicates shards across at least two nodes and places nodes across availability zones in supported regions. Production clients should still implement reconnect logic and tolerate transient failures.

04
Active geo-replication

Link instances across regions in an active-active configuration so applications can read and write through a nearby instance. Linked instances must use the same clustering policy, which cannot be changed after geo-replication is enabled.

05
Identity-based authentication and authorization

Use Microsoft Entra users or service principals, including application managed identities, instead of shared keys. Fine-grained Entra-based data RBAC is in preview; check module compatibility and distinguish Redis data permissions from Azure management-plane RBAC.

06
Private connectivity and encrypted transport

All tiers support private endpoints and TLS. Configure private DNS and application network routing together; preview IP filtering provides an additional access-control option for publicly accessible endpoints.

07
Search, JSON, and vector capabilities

Supported Redis modules extend core data structures with functionality such as secondary indexing and vector similarity search. Select required modules at creation time, and validate version requirements for newer capabilities available through the Redis 8 preview.

08
Persistence and export-based backups

Optional persistence supports recovery after infrastructure failures, while export creates backup files in Azure Blob Storage that can be imported into the same or another instance. Persistence files are not directly accessible and do not protect against logical deletion or corruption.

09
Operational monitoring

Use Azure Monitor metrics and logs to track utilization and application symptoms, and build dashboards through the integrated Grafana experience in the Azure portal. Preview shard-level metrics help diagnose uneven workload distribution and shard hotspots.

10
Keyspace notifications

Configure Redis Pub/Sub notifications for selected key changes, operations, or expirations. Treat these notifications as transient signals rather than durable events, because disconnected subscribers can miss messages.

Where Azure Managed Redis is used

  1. 01
    Database query caching

    Cache frequently requested database results using cache-aside to reduce read load and response latency. Define key ownership, expiration, invalidation, and cache-miss behavior explicitly so cached results do not become an uncontrolled source of stale data.

  2. 02
    Shared sessions and application state

    Store short-lived session data or temporary workflow state outside individual application instances. Apply appropriate expirations and plan for state loss; persist purchases and other authoritative business records in a durable database.

  3. 03
    Leaderboards, counters, and rate limiting

    Use sorted sets for rankings and atomic operations or scripts for counters and request limits. Design related keys around clustering constraints and test concurrent updates under realistic traffic.

  4. 04
    Semantic retrieval and AI memory

    Store embeddings and associated metadata for vector similarity searches, semantic caching, or agent memory using supported search capabilities. Keep source documents in an authoritative store and explicitly manage index refresh, tenant isolation, and retention.

  5. 05
    Transient messaging and work coordination

    Use Redis Pub/Sub for live notifications or supported queue and stream patterns for lightweight coordination. Select a dedicated messaging service when durable delivery, dead-lettering, or broker-managed processing guarantees are required.

  6. 06
    Geographically distributed application state

    Use active geo-replication to keep application access regional while sharing supported Redis data across locations. Design for replication delay and conflict resolution, and do not use regional cache writes as a substitute for strongly consistent global transactions.

How Azure Managed Redis is priced

Pay-as-you-go provisioned capacity

Charges depend on the selected tier, SKU, region, and deployment configuration rather than a per-command request price. Size for memory overhead and peak processing demand, and include each separately provisioned regional instance when estimating a geo-replicated deployment.

Reserved capacity

Reservations provide discounted eligible compute usage in exchange for a capacity commitment. Match reservations to a stable usage baseline and confirm applicable SKUs, regions, terms, and benefit scope before purchase; separately billed networking, storage, or monitoring costs are not automatically covered.

Services Azure Managed Redis works with

A common architecture places Azure Managed Redis alongside App Service or AKS applications, with Azure SQL Database or Azure Cosmos DB retaining authoritative records. Application code implements cache-aside reads, expiration, and invalidation rather than relying on automatic synchronization. Use versioned keys and bounded lifetimes where schema changes or asynchronous invalidation could otherwise expose stale results.

For private deployments, route application traffic through the appropriate virtual network path to a Redis private endpoint and configure private DNS. Microsoft Entra ID provides application authentication, but the client must refresh tokens and the identity must receive Redis data permissions. Reuse connections and test reconnect behavior during maintenance and failover.

Azure Monitor provides operational visibility, while Blob Storage supports export-based backup and restore workflows. Automate export schedules and test imports independently of persistence recovery. In multi-region deployments, place application compute near each linked Redis instance and explicitly accommodate asynchronous replication. Monitor cache misses together with database load so a cold cache or regional recovery does not overwhelm the authoritative data tier.

App Service

App Service applications can use Redis client libraries for shared sessions, distributed caching, or response-data caching across scaled-out workers. For example, an ASP.NET application can use a shared connection multiplexer to cache product details with short expirations. For private connectivity, configure App Service virtual network integration, a Redis private endpoint, and private DNS resolution.

Azure Kubernetes Service (AKS)

AKS-hosted services can share cached data without operating Redis pods or managing their persistence and failover. For example, several checkout service replicas can use Redis for temporary cart state while writing completed orders to a durable database. Configure cluster-to-private-endpoint connectivity and use Microsoft Entra Workload ID with a compatible Redis authentication implementation.

Azure SQL Database

Applications can place Redis in front of Azure SQL Database through an application-managed cache-aside implementation. For example, a catalog API can cache a serialized product lookup and invalidate it after the corresponding SQL transaction commits. This is not automatic database-cache synchronization, so define expiration and failure behavior explicitly.

Azure Cosmos DB

Applications can cache frequently read Cosmos DB items or computed query results in Redis. For example, a profile service can check Redis before issuing a point read and repopulate the entry after a miss. A change-feed processor can invalidate affected entries, but its asynchronous processing introduces a potential staleness window.

Azure Blob Storage

Redis import and export use Azure Blob Storage to move backup data into or out of an instance. For example, an automated export workflow can retain dated backup blobs and later import a selected export into a replacement cache. The service does not provide a built-in export scheduler, so schedule operations externally and configure storage permissions and connectivity.

Azure Monitor

Use Azure Monitor metrics, supported diagnostic logs, and alert rules to observe cache health and resource pressure. For example, alert on sustained memory pressure and evictions, then correlate those signals with application latency and database traffic. Integrated Grafana dashboards in the Azure portal can visualize Redis telemetry without requiring a separate Azure Managed Grafana instance.

API Management

Azure Managed Redis can serve as the external cache for API Management policies, letting the gateway reuse cached responses instead of calling the backend for every request. Its vector search also supports semantic caching, which lets API Management reuse a response for a sufficiently similar AI prompt.

Azure Cache for Redis

Azure Managed Redis is the migration destination for Azure Cache for Redis. For eligible migrations, DNS cutover tooling can redirect the existing cache hostname to the new Azure Managed Redis instance.

Azure Container Apps

Azure Managed Redis can back the Dapr Redis state-store and pub/sub components in Azure Container Apps. For example, Dapr can persist application state in Redis so that replicas can retrieve it after restarting.

Azure DNS

An Azure DNS private zone named `privatelink.redis.azure.net` can resolve an Azure Managed Redis hostname to its private endpoint IP address. Applications in linked virtual networks can then use the normal cache hostname over the private connection.

Alternatives to Azure Managed Redis in other clouds

AWS

Amazon ElastiCacheAmazon ElastiCache

Amazon ElastiCache and Azure Managed Redis both provide managed in-memory caching to reduce database load and speed up applications. ElastiCache offers Valkey, Redis OSS, and Memcached in serverless or node-based deployments, while Azure Managed Redis offers Redis Enterprise in provisioned tiers.

Compare fact by fact
Azure Managed RedisAmazon ElastiCache
Cache enginesRedis EnterpriseValkey, Redis OSS, Memcached
Deployment optionsProvisioned tiersServerless or node-based
Billed forProvisioned capacityNode-hours or stored data and requests
Amazon MemoryDB for RedisAmazon MemoryDB for Redis

Amazon MemoryDB and Azure Managed Redis are fully managed, Redis-compatible in-memory services for caching, shared sessions, and real-time workloads. MemoryDB is designed as a durable database with a transaction log replicated across availability zones, while Azure Managed Redis is designed as a cache with optional persistence.

Compare fact by fact
Azure Managed RedisAmazon MemoryDB for Redis
Data durabilityOptional cache persistenceBuilt-in multi-AZ transaction log
High availabilityOpt-in HA; zones where supportedAutomatic multi-AZ replication
Usage billingProvisioned capacity by tier and SKUNode-hours and GB written
Backup schedulingBlob exports; external schedulingAutomatic S3 snapshots

What is Azure Managed Redis

3 min read

Azure Managed Redis provides a managed Redis Enterprise deployment that applications access through Redis client libraries and APIs. Microsoft operates the infrastructure, distributes data across shards, and manages node health and replacement. Applications running inside or outside Azure can use the service, provided they have network connectivity and permission to access the cache.

The most common deployment places Redis between application compute and an authoritative database. With the cache-aside pattern, an application checks Redis first, reads the database on a cache miss, and caches the result with an appropriate expiration. Updates require an explicit invalidation or refresh strategy. Use expiration jitter and coordinated cache filling where necessary to avoid many application instances simultaneously reloading the same data after expiration.

Choose a tier according to both dataset size and processing requirements. Memory Optimized provides more memory relative to compute, Balanced targets workloads requiring a mix of both, and Compute Optimized provides more compute relative to memory. Flash Optimized moves less frequently accessed data to local NVMe storage, trading some access performance for larger dataset capacity. Confirm regional availability, SKU status, and feature compatibility before selecting a configuration, and benchmark realistic commands, value sizes, connection counts, and concurrency.

High availability is a deployment choice, not something to assume for every instance. When enabled, primary and replica shards are distributed across at least two nodes, with zone redundancy in regions that support multiple availability zones. High availability is required for SLA eligibility. Applications must still tolerate transient disconnects during maintenance or failover by reusing connections, setting bounded timeouts, and implementing retries with backoff. Retry non-idempotent commands carefully because a lost response does not prove that a command failed.

Use TLS and preferably private endpoints for application connectivity. Microsoft Entra ID authentication avoids distributing shared access keys, but clients must support token acquisition and renewal. Authorize application identities for Redis data access separately from Azure resource-management permissions. Fine-grained Entra-based data RBAC is available in preview; validate its restrictions for module-enabled instances before using a shared cache as a tenant security boundary. IP filtering for public endpoints is also available in preview.

Redis supports shared sessions, counters, sorted-set leaderboards, messaging patterns, and search workloads in addition to ordinary key-value caching. Select required Redis modules when creating the instance because modules cannot be manually added afterward. Redis 8 is available in preview with additional JSON, query, security, and vector capabilities; validate version-specific commands and client compatibility before adopting it in production. Active geo-replication supports reads and writes through regional instances, but applications must account for asynchronous cross-region convergence rather than assume globally synchronous writes.

Keep authoritative business records in a persistent database. Optional persistence helps recover cache data after infrastructure failures, but it does not protect against accidental deletion or corruption. Import and export provide a separate backup mechanism through Azure Blob Storage, and scheduling exports requires external automation. Monitor memory pressure, evictions, latency, connections, and throughput, then test recovery and cache-repopulation behavior. For migrations from Azure Cache for Redis Basic, Standard, or Premium, built-in DNS migration tooling can preserve the existing hostname and access key during cutover and supports data retention; validate its prerequisites and application behavior before switching traffic.

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

AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.