How to Improve Your Azure SQL Performance by up to 800%

Published Dec 14 2020 11:49 AM 8,275 Views
Microsoft

Databases are essential workers in nearly all applications. They form the bedrock of a data architecture—handling transactions, record-keeping, data manipulation, and other crucial tasks on which modern apps rely. But for as long as databases have existed, people have looked for ways to speed them up. With databases so central to data architecture, even small reductions in throughput or latency performance can cause ripple effects that make the rest of the application sluggish and create a disappointing user experience. And there are financial repercussions too—one study found that the probability of a web site visitor bouncing rose by 90% if the page load time increased from one second to five seconds. This problem will likely become even more pronounced as web and mobile traffic increase. The solution isn’t always simplescaling up databases can be expensive, and may not solve throughput or latency issues.

 

Caching Can Improve Application Performance

One way you can improve the performance of your data architecture is by implementing caching. In common setups like a cache-aside architecture, the most used data is stored in a fast and easy-to-access cache. When a user requests data, the cache is checked first before querying a database.

 

kteegarden_0-1607974237365.png

 

Combined with a relational database, a cache can store the most common database queries and return these queries much faster than the database when the application requests them. Not only can this result in significant reductions in latency, but it also reduces the load on the database, lowering the need to overprovision. Additionally, caches are typically better than databases at handling a high throughput of requests—enabling the application to handle more simultaneous users.

 

Caches are typically most beneficial for read-heavy workloads where the same data is being accessed again and again. Caching pricing, inventory, session state, or financial data are some examples of common use-cases. It’s important to note that caching won’t speed up operations internal to a database (like joins). Instead, caching lessens the need for those operations to occur by returning the results of a query before it reaches the database.

 

Redis Cache

Redis is one of the most popular caching solutions in the market. It is a key-value datastore that runs in-memory, rather than on disk like most databases. Running in-memory makes it lightning-fast, and a terrific complement to more deliberate and consistent primary databases like Azure SQL Database or PostgreSQL. Redis is available as a fully-managed service on Azure through Azure Cache for Redis, offering automatic patching and updates, high-availability deployment options, and the latest Redis features. Azure Cache for Redis can neatly plug into your Azure data infrastructure as a cache, allowing you to boost data performance. But by how much? We decided to put it to the test.

 

Performance Benchmark Test

To measure the performance boost from using Redis in conjunction with a database, we turned to GigaOm to run benchmarks on the performance of Azure SQL Database with and without caching. Azure SQL Database is a good point of reference—it’s a highly advanced and full-featured database that is heavily utilized by the most demanding customers. While it already has great price-performance, adding Redis can help accelerate that performance from great to outstanding. To measure this, GigaOm created a sample application based on a real-world example: users viewing inventory on an e-commerce site and placing items into their shopping cart. This test was designed to be realistic while also featuring the benefits of caching. It was run twice: once with just Azure SQL Database handling the inventory and shopping cart data, and once with Azure SQL Database plus Azure Cache for Redis.

 

kteegarden_1-1607974272027.png

 

Azure App Service was used to host the sample application, and JMeter was used to provide simulated traffic. For each test, additional simultaneous users were periodically added until the database or cache returned errors. GigaOm looked at two performance metrics: throughput and latency.

 

Throughput Performance Increased by over 800%

Throughput is a measurement of how much traffic the application can handle simultaneously. High throughput capability is essential to businesses that handle a lot of users or data—especially if demand tends to spike periodically. Azure Cache for Redis can handle millions of simultaneous requests with virtually no slowdown, making it highly suited for enhancing throughput performance. The test results showed this clearly:

 

kteegarden_3-1607974372107.pngSource: GigaOm

 

Scaling up Azure SQL Database from 8 vCores to 32 vCores produced a 50% increase in throughput performance. While this is useful, adding additional vCores has limited impact on IOPS performance which was the bottleneck factor here. Adding a cache was even more effective: maximum throughput was over 800% higher with Azure Cache for Redis, even when using a smaller database instance (2 vCores vs 8 vCores). That means more users, higher scalability, and better peak traffic performance—all without changing the core database infrastructure. Plus, scaling throughput with Azure Cache for Redis is typically much cheaper than scaling up the database.

 

Latency Performance Improved by Over 1000%

Latency measures the time duration between when a request for data is sent by the application and received from the database. The lower the latency, the snappier the user experience and the faster data is returned. Azure Cache for Redis is particularly effective at operating with low latency because it runs in-memory. The benchmarking demonstrated this strongly:

 

kteegarden_4-1607974428033.pngSource: GigaOm

 

Latency is typically measured at the 95th percentile level or above because delays tend to stack up. This is the “drive-thru” effect. If an order in front of you takes ten minutes, you do not care if your order takes only a few seconds—you had to wait for their order to be completed first! In our test, adding Azure Cache for Redis decreased the 95th percentile latency from over 3s down to 271ms—over a 1000% improvement. At the 99th and 99.9th percentile levels, the difference was even greater. Lower latency means faster applications and happier users, and Azure Cache for Redis is a great way for you to achieve the latency you need.

 

Try Azure Cache for Redis Today

Azure SQL Database is already a great database with excellent price-performance. Coupled with Azure Cache for Redis, this price-performance edge is amplified even further with a powerful solution for accelerating the throughput and latency performance of your database. Even better, Azure Cache for Redis fits into your existing data architecture and can often be bolted on without requiring huge application changes. Read the full benchmarking report, explore our free online training, and access our documentation to learn more.

 

 

Performance claims based on data from a study commissioned by Microsoft and conducted by GigaOm in October 2020. The study compared the performance of a test application using an Azure database with and without implementing Azure Cache for Redis as a caching solution. Azure SQL Database and Azure Database for PostgreSQL were used as the database element in the study. A 2 vCore Gen 5 General Purpose instance of Azure SQL Database and a 2 vCore General Purpose instance of Azure Database for PostgreSQL were used with a 6 GB P1 Premium instance of Azure for Redis. These results were compared with 8, 16, 24, and 32 vCore Gen 5 General Purpose instances of Azure SQL Database and 8, 16, 24, and 32 vCore General Purpose instances of Azure Database for PostgreSQL without Azure Cache for Redis. The benchmark data is taken from the GigaOm Web Application Database Load Test which simulates a common web application and backend database barraged by increasing HTTP requests. Actual results may vary based on configuration and region.

 

%3CLINGO-SUB%20id%3D%22lingo-sub-1986568%22%20slang%3D%22en-US%22%3EHow%20to%20Improve%20Your%20Azure%20SQL%20Performance%20by%20up%20to%20800%25%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1986568%22%20slang%3D%22en-US%22%3E%3CP%20class%3D%22MsoNoSpacing%22%3E%3CFONT%20size%3D%223%22%3EDatabases%20are%20essential%20workers%20in%20nearly%20all%20applications.%20They%20form%20the%20bedrock%20of%20a%20data%20architecture%E2%80%94handling%20transactions%2C%20record-keeping%2C%20data%20manipulation%2C%20and%20other%20crucial%20tasks%20on%20which%20modern%20apps%20rely.%20But%20for%20as%20long%20as%20databases%20have%20existed%2C%20people%20have%20looked%20for%20ways%20to%20speed%20them%20up.%20With%20databases%20so%20central%20to%20data%20architecture%2C%20even%20small%20reductions%20in%20throughput%20or%20latency%20performance%20can%20cause%20ripple%20effects%20that%20make%20the%20rest%20of%20the%20application%20sluggish%20and%20create%20a%20disappointing%20user%20experience.%20And%20there%20are%20financial%20repercussions%20too%E2%80%94%3CA%20href%3D%22https%3A%2F%2Fwww.thinkwithgoogle.com%2Fmarketing-strategies%2Fapp-and-mobile%2Fmobile-page-speed-new-industry-benchmarks%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Eone%20study%3C%2FA%3E%20found%20that%20the%20probability%20of%20a%20web%20site%20visitor%20bouncing%20rose%20by%2090%25%20if%20the%20page%20load%20time%20increased%20from%20one%20second%20to%20five%20seconds.%20This%20problem%20will%20likely%20become%20even%20more%20pronounced%20as%20web%20and%20mobile%20traffic%20increase.%20The%20solution%20isn%E2%80%99t%20always%20simple%3CFONT%20color%3D%22%23808080%22%3E%3CSPAN%20class%3D%22GramE%22%3E%E2%80%94%3C%2FSPAN%3E%3C%2FFONT%3Escaling%26nbsp%3Bup%20databases%20can%20be%20expensive%2C%20and%20may%20not%20solve%20throughput%20or%20latency%20issues.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%20class%3D%22MsoNoSpacing%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CH4%20class%3D%22MsoNoSpacing%22%20id%3D%22toc-hId--478795918%22%20id%3D%22toc-hId--478796598%22%3E%3CSTRONG%3ECaching%20Can%20Improve%20Application%20Performance%3C%2FSTRONG%3E%3C%2FH4%3E%0A%3CP%20class%3D%22MsoNoSpacing%22%3E%3CFONT%20size%3D%223%22%3EOne%20way%20you%20can%20improve%20the%20performance%20of%20your%20data%20architecture%20is%20by%20implementing%20caching.%20In%20common%20setups%20like%20a%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Farchitecture%2Fpatterns%2Fcache-aside%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ecache-aside%20architecture%3C%2FA%3E%2C%20the%20most%20used%20data%20is%20stored%20in%20a%20fast%20and%20easy-to-access%20cache.%20When%20a%20user%20requests%20data%2C%20the%20cache%20is%20checked%20first%20before%20querying%20a%20database.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%20class%3D%22MsoNoSpacing%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-align-center%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-left%22%20image-alt%3D%22kteegarden_0-1607974237365.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F240324iA1E4667B148C8AA1%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22kteegarden_0-1607974237365.png%22%20alt%3D%22kteegarden_0-1607974237365.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20class%3D%22MsoNoSpacing%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22MsoNoSpacing%22%3E%3CFONT%20size%3D%223%22%3ECombined%20with%20a%20relational%20database%2C%20a%20cache%20can%20store%20the%20most%20common%20database%20queries%20and%20return%20these%20queries%20much%20faster%20than%20the%20database%20when%20the%20application%20requests%20them.%20Not%20only%20can%20this%20result%20in%20significant%20reductions%20in%20latency%2C%20but%20it%20also%20reduces%20the%20load%20on%20the%20database%2C%20lowering%20the%20need%20to%20overprovision.%20Additionally%2C%20caches%20are%20typically%20better%20than%20databases%20at%20handling%20a%20high%20throughput%20of%20requests%E2%80%94enabling%20the%20application%20to%20handle%20more%20simultaneous%20users.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%20class%3D%22MsoNoSpacing%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22MsoNoSpacing%22%3E%3CFONT%20size%3D%223%22%3ECaches%20are%20typically%20most%20beneficial%20for%20read-heavy%20workloads%20where%20the%20same%20data%20is%20being%20accessed%20again%20and%20again.%20Caching%20pricing%2C%20inventory%2C%20session%20state%2C%20or%20financial%20data%20are%20some%20examples%20of%20common%20use-cases.%20It%E2%80%99s%20important%20to%20note%20that%20caching%20won%E2%80%99t%20speed%20up%20operations%20internal%20to%20a%20database%20(like%20joins).%20Instead%2C%20caching%20lessens%20the%20need%20for%20those%20operations%20to%20occur%20by%20returning%20the%20results%20of%20a%20query%20before%20it%20reaches%20the%20database.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%20class%3D%22MsoNoSpacing%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CH4%20class%3D%22MsoNoSpacing%22%20id%3D%22toc-hId-2008716915%22%20id%3D%22toc-hId-2008716235%22%3E%3CSTRONG%3ERedis%20Cache%3C%2FSTRONG%3E%3C%2FH4%3E%0A%3CP%20class%3D%22MsoNoSpacing%22%3E%3CFONT%20size%3D%223%22%3ERedis%20is%20one%20of%20the%20most%20popular%20caching%20solutions%20in%20the%20market.%20It%20is%20a%20key-value%20datastore%20that%20runs%20in-memory%2C%20rather%20than%20on%20disk%20like%20most%20databases.%20Running%20in-memory%20makes%20it%20lightning-fast%2C%20and%20a%20terrific%20complement%20to%20more%20deliberate%20and%20consistent%20primary%20databases%20like%20Azure%20SQL%20Database%20or%20PostgreSQL.%20Redis%20is%20available%20as%20a%20%3CSPAN%20class%3D%22GramE%22%3Efully-managed%3C%2FSPAN%3E%20service%20on%20Azure%20through%20%3CA%20href%3D%22https%3A%2F%2Fazure.microsoft.com%2Fen-us%2Fservices%2Fcache%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EAzure%20Cache%20for%20Redis%3C%2FA%3E%2C%20offering%20automatic%20patching%20and%20updates%2C%20high-availability%20deployment%20options%2C%20and%20the%20latest%20Redis%20features.%20Azure%20Cache%20for%20Redis%20can%20neatly%20plug%20into%20your%20Azure%20data%20infrastructure%20as%20a%20cache%2C%20allowing%20you%20to%20boost%20data%20performance.%20But%20by%20how%20much%3F%20We%20decided%20to%20put%20it%20to%20the%20test.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%20class%3D%22MsoNoSpacing%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CH4%20class%3D%22MsoNoSpacing%22%20id%3D%22toc-hId-201262452%22%20id%3D%22toc-hId-201261772%22%3E%3CSTRONG%3EPerformance%20Benchmark%20Test%3C%2FSTRONG%3E%3C%2FH4%3E%0A%3CP%20class%3D%22MsoNoSpacing%22%3E%3CFONT%20size%3D%223%22%3ETo%20measure%20the%20performance%20boost%20from%20using%20Redis%20in%20conjunction%20with%20a%20database%2C%20we%20turned%20to%20GigaOm%20to%20run%20benchmarks%20on%20the%20performance%20of%20%3CA%20href%3D%22https%3A%2F%2Fazure.microsoft.com%2Fen-us%2Fservices%2Fsql-database%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EAzure%20SQL%20Database%3C%2FA%3E%20with%20and%20without%20caching.%20Azure%20SQL%20Database%20is%20a%20good%20point%20of%20reference%E2%80%94it%E2%80%99s%20a%20highly%20advanced%20and%20full-featured%20database%20that%20is%20heavily%20utilized%20by%20the%20most%20demanding%20customers.%20While%20it%20already%20has%20%3CA%20href%3D%22https%3A%2F%2Fazure.microsoft.com%2Fblog%2Fazure-sql-database-continuous-innovation-and-limitless-scale-at-an-unbeatable-price%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Egreat%20price-performance%3C%2FA%3E%2C%20adding%20Redis%20can%20help%20accelerate%20that%20performance%20from%20great%20to%20outstanding.%20To%20measure%20this%2C%20GigaOm%20created%20a%20sample%20application%20based%20on%20a%20real-world%20example%3A%20users%20viewing%20inventory%20on%20an%20e-commerce%20site%20and%20placing%20items%20into%20their%20shopping%20cart.%20This%20test%20was%20designed%20to%20be%20realistic%20while%20also%20featuring%20the%20benefits%20of%20caching.%20It%20was%20run%20twice%3A%20once%20with%20just%20Azure%20SQL%20Database%20handling%20the%20inventory%20and%20shopping%20cart%20data%2C%20and%20once%20with%20Azure%20SQL%20Database%20plus%20Azure%20Cache%20for%20Redis.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%20class%3D%22MsoNoSpacing%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-align-center%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22kteegarden_1-1607974272027.png%22%20style%3D%22width%3A%20616px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F240325i84923E669C59A86A%2Fimage-dimensions%2F616x301%3Fv%3D1.0%22%20width%3D%22616%22%20height%3D%22301%22%20role%3D%22button%22%20title%3D%22kteegarden_1-1607974272027.png%22%20alt%3D%22kteegarden_1-1607974272027.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22MsoNoSpacing%22%3E%3CFONT%20size%3D%223%22%3EAzure%20App%20Service%20was%20used%20to%20host%20the%20sample%20application%2C%20and%20JMeter%20was%20used%20to%20provide%20simulated%20traffic.%20For%20each%20test%2C%20additional%20simultaneous%20users%20were%20periodically%20added%20until%20the%20database%20or%20cache%20returned%20errors.%20GigaOm%20looked%20at%20two%20performance%20metrics%3A%20throughput%20and%20latency.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%20class%3D%22MsoNoSpacing%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CH4%20class%3D%22MsoNoSpacing%22%20id%3D%22toc-hId--1606192011%22%20id%3D%22toc-hId--1606192691%22%3E%3CSTRONG%3EThroughput%20Performance%20Increased%20by%20over%20800%25%3C%2FSTRONG%3E%3C%2FH4%3E%0A%3CP%20class%3D%22MsoNoSpacing%22%3E%3CFONT%20size%3D%223%22%3EThroughput%20is%20a%20measurement%20of%20how%20much%20traffic%20the%20application%20can%20handle%20simultaneously.%20High%20throughput%20capability%20is%20essential%20to%20businesses%20that%20handle%20a%20lot%20of%20users%20or%20data%E2%80%94especially%20if%20demand%20tends%20to%20spike%20periodically.%20Azure%20Cache%20for%20Redis%20can%20handle%20millions%20of%20simultaneous%20requests%20with%20virtually%20no%20slowdown%2C%20making%20it%20highly%20suited%20for%20enhancing%20throughput%20performance.%20The%20test%20results%20showed%20this%20clearly%3A%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%20class%3D%22MsoNoSpacing%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22kteegarden_3-1607974372107.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F240327i0FBDBF34DFDEFC52%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22kteegarden_3-1607974372107.png%22%20alt%3D%22kteegarden_3-1607974372107.png%22%20%2F%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-size%3A%209.0pt%3B%22%3ESource%3A%20%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fazure.microsoft.com%2Fresources%2Fazure-cache-for-redis-benchmarking-study%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%3CSPAN%20style%3D%22font-size%3A%209.0pt%3B%22%3EGigaOm%3C%2FSPAN%3E%3C%2FA%3E%3C%2FP%3E%0A%3CP%20class%3D%22MsoNoSpacing%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22MsoNoSpacing%22%3E%3CFONT%20size%3D%223%22%3EScaling%20up%20Azure%20SQL%20Database%20from%208%20vCores%20to%2032%20vCores%20produced%20a%2050%25%20increase%20in%20throughput%20performance.%20While%20this%20is%20useful%2C%20adding%20additional%20vCores%20has%20limited%20impact%20on%20IOPS%20performance%20which%20was%20the%20bottleneck%20factor%20here.%20Adding%20a%20cache%20was%20even%20more%20effective%3A%20maximum%20throughput%20was%20over%20800%25%20higher%20with%20Azure%20Cache%20for%20Redis%2C%20even%20when%20using%20a%20smaller%20database%20instance%20(2%20vCores%20vs%208%20vCores).%20That%20means%20more%20users%2C%20higher%20scalability%2C%20and%20better%20peak%20traffic%20performance%E2%80%94all%20without%20changing%20the%20core%20database%20infrastructure.%20Plus%2C%20scaling%20throughput%20with%20Azure%20Cache%20for%20Redis%20is%20typically%20much%20cheaper%20than%20scaling%20up%20the%20database.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%20class%3D%22MsoNoSpacing%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CH4%20class%3D%22MsoNoSpacing%22%20id%3D%22toc-hId-881320822%22%20id%3D%22toc-hId-881320142%22%3E%3CSTRONG%3ELatency%20Performance%20Improved%20by%20Over%201000%25%3C%2FSTRONG%3E%3C%2FH4%3E%0A%3CP%20class%3D%22MsoNoSpacing%22%3E%3CFONT%20size%3D%223%22%3ELatency%20measures%20the%20time%20duration%20between%20when%20a%20request%20for%20data%20is%20sent%20by%20the%20application%20and%20received%20from%20the%20database.%20The%20lower%20the%20latency%2C%20the%20snappier%20the%20user%20experience%20and%20the%20faster%20data%20is%20returned.%20Azure%20Cache%20for%20Redis%20is%20particularly%20effective%20at%20operating%20with%20low%20latency%20because%20it%20runs%20in-memory.%20The%20benchmarking%20demonstrated%20this%20strongly%3A%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%20class%3D%22MsoNoSpacing%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22kteegarden_4-1607974428033.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F240328i537BFCE1EFE017F6%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22kteegarden_4-1607974428033.png%22%20alt%3D%22kteegarden_4-1607974428033.png%22%20%2F%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-size%3A%209.0pt%3B%22%3ESource%3A%20%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fazure.microsoft.com%2Fresources%2Fazure-cache-for-redis-benchmarking-study%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%3CSPAN%20style%3D%22font-size%3A%209.0pt%3B%22%3EGigaOm%3C%2FSPAN%3E%3C%2FA%3E%3C%2FP%3E%0A%3CP%20class%3D%22MsoNoSpacing%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22MsoNoSpacing%22%3E%3CFONT%20size%3D%223%22%3ELatency%20is%20typically%20measured%20at%20the%2095%3CSUP%3Eth%3C%2FSUP%3E%20percentile%20level%20or%20above%20because%20delays%20tend%20to%20stack%20up.%20This%20is%20the%20%E2%80%9Cdrive-thru%E2%80%9D%20effect.%20If%20an%20order%20in%20front%20of%20you%20takes%20ten%20minutes%2C%20you%20do%20not%20care%20if%20your%20order%20takes%20only%20a%20few%20seconds%E2%80%94you%20had%20to%20wait%20for%20their%20order%20to%20be%20completed%20first!%20In%20our%20test%2C%20adding%20Azure%20Cache%20for%20Redis%20decreased%20the%2095%3CSUP%3Eth%3C%2FSUP%3E%20percentile%20latency%20from%20over%203s%20down%20to%20271ms%E2%80%94over%20a%201000%25%20improvement.%20At%20the%2099%3CSUP%3Eth%3C%2FSUP%3E%20and%2099.9%3CSUP%3Eth%3C%2FSUP%3E%20percentile%20levels%2C%20the%20difference%20was%20even%20greater.%20Lower%20latency%20means%20faster%20applications%20and%20happier%20users%2C%20and%20Azure%20Cache%20for%20Redis%20is%20a%20great%20way%20for%20you%20to%20achieve%20the%20latency%20you%20need.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%20class%3D%22MsoNoSpacing%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CH4%20class%3D%22MsoNoSpacing%22%20id%3D%22toc-hId--926133641%22%20id%3D%22toc-hId--926134321%22%3E%3CSTRONG%3ETry%20Azure%20Cache%20for%20Redis%20Today%3C%2FSTRONG%3E%3C%2FH4%3E%0A%3CP%20class%3D%22MsoNoSpacing%22%3E%3CFONT%20size%3D%223%22%3E%3CA%20href%3D%22https%3A%2F%2Fazure.microsoft.com%2Fservices%2Fsql-database%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EAzure%20SQL%20Database%3C%2FA%3E%20is%20already%20a%20great%20database%20with%20excellent%20price-performance.%20Coupled%20with%20%3CA%20href%3D%22https%3A%2F%2Fazure.microsoft.com%2Fservices%2Fcache%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EAzure%20Cache%20for%20Redis%3C%2FA%3E%2C%20this%20price-performance%20edge%20is%20amplified%20even%20further%20with%20a%20powerful%20solution%20for%20accelerating%20the%20throughput%20and%20latency%20performance%20of%20your%20database.%20Even%20better%2C%20Azure%20Cache%20for%20Redis%20fits%20into%20your%20existing%20data%20architecture%20and%20can%20often%20be%20bolted%20on%20without%20requiring%20huge%20application%20changes.%20%3CA%20href%3D%22https%3A%2F%2Fazure.microsoft.com%2Fresources%2Fazure-cache-for-redis-benchmarking-study%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3ERead%20the%20full%20benchmarking%20report%3C%2FA%3E%2C%20explore%20our%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Flearn%2Fmodules%2Foptimize-your-web-apps-with-redis%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Efree%20online%20training%3C%2FA%3E%2C%20and%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fazure%2Fazure-cache-for-redis%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Eaccess%20our%20documentation%3C%2FA%3E%20to%20learn%20more.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%20class%3D%22MsoNormal%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22MsoNormal%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CH6%20class%3D%22WordSection1%22%20id%3D%22toc-hId--2032523526%22%20id%3D%22toc-hId--2032524206%22%3E%3CFONT%20size%3D%221%202%203%204%205%206%207%22%3EPerformance%20claims%20based%20on%20data%20from%20a%20study%20commissioned%20by%20Microsoft%20and%20conducted%20by%20GigaOm%20in%20October%202020.%20The%20study%20compared%20the%20performance%20of%20a%20test%20application%20using%20an%20Azure%20database%20with%20and%20without%20implementing%20Azure%20Cache%20for%20Redis%20as%20a%20caching%20solution.%20Azure%20SQL%20Database%20and%20Azure%20Database%20for%20PostgreSQL%20were%20used%20as%20the%20database%20element%20in%20the%20study.%20A%202%20vCore%20Gen%205%20General%20Purpose%20instance%20of%20Azure%20SQL%20Database%20and%20a%202%20vCore%20General%20Purpose%20instance%20of%20Azure%20Database%20for%20PostgreSQL%20were%20used%20with%20a%206%20GB%20P1%20Premium%20instance%20of%20Azure%20for%20Redis.%20These%20results%20were%20compared%20with%208%2C%2016%2C%2024%2C%20and%2032%20vCore%20Gen%205%20General%20Purpose%20instances%20of%20Azure%20SQL%20Database%20and%208%2C%2016%2C%2024%2C%20and%2032%20vCore%20General%20Purpose%20instances%20of%20Azure%20Database%20for%20PostgreSQL%20without%20Azure%20Cache%20for%20Redis.%20The%20benchmark%20data%20is%20taken%20from%20the%20GigaOm%20Web%20Application%20Database%20Load%20Test%20which%20simulates%20a%20common%20web%20application%20and%20backend%20database%20barraged%20by%20increasing%20HTTP%20requests.%20Actual%20results%20may%20vary%20based%20on%20configuration%20and%20region.%3C%2FFONT%3E%3C%2FH6%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-1986568%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22kteegarden_5-1607974891953.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F240333i9EC70BF969B4C47E%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22kteegarden_5-1607974891953.png%22%20alt%3D%22kteegarden_5-1607974891953.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EAdding%20a%20relatively%20simple%20Redis%20cache%20to%20your%20database%20can%20create%20a%20significant%20boost%20in%20throughput%20and%20latency%20performance%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1986568%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%20SQL%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EAzure%20SQL%20Database%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Version history
Last update:
‎Dec 14 2020 12:10 PM
Updated by: