Unleash the Power of Azure Cache for Redis: How to Boost Performance by up to 4X!
Overview
Azure Cache for Redis has become an increasingly popular in-memory caching solution for many organizations and developers. However, the growing popularity of Redis means there is a corresponding growing need for even higher throughput and scale. Azure now offers the Enterprise and Enterprise Flash tiers of Azure Cache for Redis. These tiers are built on Redis Enterprise, rather than open-source Redis, which offers increased performance through a transparent multi-shard design that takes advantage of multiple vCPUs.
We put the Enterprise tier of Azure Cache for Redis to the test to see what kind of performance boost this offering provides. We used Redis-benchmark, one of the most popular Redis benchmarking tools, to do some simple benchmarking of GET commands. While the performance of a Redis instance can vary greatly based on a multitude of factors such as the number of clients, data value size, pipelining, and latency/throughput tradeoffs, we were blown away by the performance benefits we saw from using Azure Cache for Redis Enterprise. Read on to see how using the Enterprise tier can help improve the performance of Azure Cache for Redis by up to 4X!
Redis-benchmark
Redis-Benchmark is a tool that allows you to measure the performance of a Redis server by simulating different workloads and measuring the server's response time, throughput, and other metrics. The benchmark tool is included in the Redis distribution and can be run from the command line. For instructions on how to use Redis-benchmark and best practices, check out our docs page. We used a redis-benchmark configuration optimized for throughput, including pipelining and multiple client connections. It is possible to increase the benchmarking throughput even further by adding additional client connections, a higher total number of requests, and setting the ‘--thread’ parameter to a higher number (e.g. 32) than the default of 2. Maxing out benchmarking results is only somewhat useful, however, because it may not reflect real-world performance.
Benchmarking Results
The following graphs show the maximum throughput values that were observed while testing various sizes of Premium and Enterprise tier caches. We used Redis-benchmark from an IaaS Azure VM against the Azure Cache for Redis endpoint and display throughput numbers for GET commands.
Takeaways
As the data shows, we saw significant performance benefits in our test from using the Enterprise offering! There are significant variations to point out, of course. Performance varies greatly based on whether TLS/SSL is enabled, with plaintext communication having much higher throughput. There was also a big difference between the Enterprise and OSS cluster modes for Enterprise-tier caches. The OSS cluster mode is more throughput-optimized because clients can connect directly to each shard. See our performance benchmarking documentation page to dive into the data and give it a try yourself!
CHECK OUT THE FULL PERFORMANCE DOCUMENTATION
Getting Started with Azure Cache for Redis
For more additional information on Azure Cache for Redis, the features listed above, and Redis, please see the resources linked below.
- Azure Cache for Redis Overview
- Azure Cache for Redis Pricing
- What’s New in Azure Cache for Redis
- Azure Cache for Redis Performance Testing
- Redis-benchmark tool
- Redis Memtier_benchmark
Published on:
Learn moreRelated posts
Azure Marketplace and AppSource: A Unified AI Apps and Agents Marketplace
The Microsoft AI Apps and Agents Marketplace is set to transform how businesses discover, purchase, and deploy AI-powered solutions. This new ...
Episode 413 – Simplifying Azure Files with a new file share-centric management model
Welcome to Episode 413 of the Microsoft Cloud IT Pro Podcast. Microsoft has introduced a new file share-centric management model for Azure Fil...
Bringing Context to Copilot: Azure Cosmos DB Best Practices, Right in Your VS Code Workspace
Developers love GitHub Copilot for its instant, intelligent code suggestions. But what if those suggestions could also reflect your specific d...
Build an AI Agentic RAG search application with React, SQL Azure and Azure Static Web Apps
Introduction Leveraging OpenAI for semantic searches on structured databases like Azure SQL enhances search accuracy and context-awareness, pr...
Announcing latest Azure Cosmos DB Python SDK: Powering the Future of AI with OpenAI
We’re thrilled to announce the stable release of Azure Cosmos DB Python SDK version 4.14.0! This release brings together months of innov...
How Azure CLI handles your tokens and what you might be ignoring
Running az login feels like magic. A browser pops up, you pick an account, and from then on, everything just works. No more passwords, no more...
Boost your Azure Cosmos DB Efficiency with Azure Advisor Insights
Azure Cosmos DB is Microsoft’s globally distributed, multi-model database service, trusted for mission-critical workloads that demand high ava...
Microsoft Azure Fundamentals #5: Complex Error Handling Patterns for High-Volume Microsoft Dataverse Integrations in Azure
🚀 1. Problem Context When integrating Microsoft Dataverse with Azure services (e.g., Azure Service Bus, Azure Functions, Logic Apps, Azure SQ...
Using the Secret Management PowerShell Module with Azure Key Vault and Azure Automation
Automation account credential resources are the easiest way to manage credentials for Azure Automation runbooks. The Secret Management module ...
Microsoft Azure Fundamentals #4: Azure Service Bus Topics and Subscriptions for multi-system CRM workflows in Microsoft Dataverse / Dynamics 365
🚀 1. Scenario Overview In modern enterprise environments, a single business event in Microsoft Dataverse (CRM) can trigger workflows across m...