How to utilize active geo-replication in Azure Cache for Redis

Published Feb 02 2022 08:00 AM 3,415 Views
Microsoft

In an increasingly global and online world, the speed, availability, and consistency of data has never been more important. We’ve seen customers of all sizes take advantage of the outstanding performance of Azure Cache for Redis, but we’ve also heard your requests for a Redis solution that offers even higher availability and more robust geographic consistency. That’s why we’re excited to announce the latest element of our collaboration with Redis Corporation—the general availability of active geo-replication in our Enterprise offering of Azure Cache for Redis.

 

Active geo-replication background

Active geo-replication is a powerful tool that enables Azure Cache for Redis clusters to be linked together for seamless active-active replication of data. In other words, you can write to one Redis cluster and your data will be automatically copied to the other linked clusters, and vice versa. Data is quickly duplicated with strong eventual consistency between clusters. This multi-primary, multi-write architecture is built on conflict-free replicated data types (CRDTs), a groundbreaking technology that enables seamless conflict resolution.

 

kteegarden_0-1643313027910.png

Use-cases for active geo-replication

Active geo-replication gives developers a powerful tool to tackle otherwise frustrating technical challenges, such as:

 

Enterprise-grade Availability

As Redis steadily increases in popularity and adoption, it is becoming an essential part of mission-critical applications. Many customers in the financial services, retail, and software industries need Redis in both high availability and disaster recovery scenarios. The Enterprise tiers of Azure Cache for Redis help deliver both. Zone redundancy already enables Enterprise Azure Cache for Redis to be resilient to zone-level outages and reach a 99.99% availability SLA. Adding active geo-replication helps further protect against region-level outages, boosting the availability SLA up to 99.999%.

 

Even better, experiencing the benefits of higher availability is straightforward. Even if there is an outage in one region, the caches in other regions will have the latest synchronized copy of the data in your cache. And when the region comes back online, the original cache will automatically be updated with data written to the linked regions during the outage.

 

kteegarden_1-1643313027916.png

 

Local Latency Performance

Customer expectations for speedy application performance are sky high. Nine in ten shoppers will abandon a retail website if it is too slow. As applications become global, this presents a challenge with caching. Your cache may be quick, but if your customers are talking to a cache that is halfway around the world, network latency can erase the benefits of the cache. With active geo-replication, you can get local latency performance while maintaining cache consistency because users and applications can be directed to the geo-replicated cache closest to them.

 

 

Global Synchronization of Data

Managing multiple sources of data can be a frustrating challenge. Scale or latency constraints can force you to silo your app infrastructure by geography, which then can introduce data consistency issues. Some applications are designed to have the same experience across borders, which confounds the problem even further. For example, a game developer might want all players to see a global leaderboard which ranks players across regions. While Redis is a common way to implement a leaderboard, aggregating multiple independent leaderboards from separate Redis instances is a hassle. With active geo-replication, however, the linked Redis instances can all update the same shared sorted set leaderboard, meaning a new high score in Tokyo will be automatically ranked next to a score from a player in London.

kteegarden_2-1643313027929.png

Try it on Azure

Azure Cache for Redis gives you a fully-managed Redis experience. With full portal integration, configuring active geo-replication is straightforward, and gives you a wide selection of regions to choose from in the ever-growing Azure footprint. Try active geo-replication today in the Enterprise and Enterprise flash tiers of Azure Cache for Redis, read how to configure the feature, or check out a simple active geo-replication demo.  

%3CLINGO-SUB%20id%3D%22lingo-sub-3074404%22%20slang%3D%22en-US%22%3EHow%20to%20utilize%20active%20geo-replication%20in%20Azure%20Cache%20for%20Redis%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3074404%22%20slang%3D%22en-US%22%3E%3CP%3EIn%20an%20increasingly%20global%20and%20online%20world%2C%20the%20speed%2C%20availability%2C%20and%20consistency%20of%20data%20has%20never%20been%20more%20important.%20We%E2%80%99ve%20seen%20customers%20of%20all%20sizes%20take%20advantage%20of%20the%20outstanding%20performance%20of%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%20but%20we%E2%80%99ve%20also%20heard%20your%20requests%20for%20a%20Redis%20solution%20that%20offers%20even%20higher%20availability%20and%20more%20robust%20geographic%20consistency.%20That%E2%80%99s%20why%20we%E2%80%99re%20excited%20to%20announce%20the%20latest%20element%20of%20our%20collaboration%20with%20%3CA%20href%3D%22https%3A%2F%2Fredis.com%2Fcloud-partners%2Fmicrosoft-azure%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3ERedis%20Corporation%3C%2FA%3E%E2%80%94the%20general%20availability%20of%20active%20geo-replication%20in%20our%20Enterprise%20offering%20of%20Azure%20Cache%20for%20Redis.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH1%20id%3D%22toc-hId-2133450845%22%20id%3D%22toc-hId--2139295961%22%3EActive%20geo-replication%20background%3C%2FH1%3E%0A%3CP%3EActive%20geo-replication%20is%20a%20powerful%20tool%20that%20enables%20Azure%20Cache%20for%20Redis%20clusters%20to%20be%20linked%20together%20for%20seamless%20active-active%20replication%20of%20data.%20In%20other%20words%2C%20you%20can%20write%20to%20one%20Redis%20cluster%20and%20your%20data%20will%20be%20automatically%20copied%20to%20the%20other%20linked%20clusters%2C%20and%20vice%20versa.%20Data%20is%20quickly%20duplicated%20with%20strong%20eventual%20consistency%20between%20clusters.%20This%20multi-primary%2C%20multi-write%20architecture%20is%20built%20on%20%3CA%20href%3D%22https%3A%2F%2Fredis.com%2Fredis-enterprise%2Ftechnology%2Factive-active-geo-distribution%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Econflict-free%20replicated%20data%20types%20(CRDTs)%3C%2FA%3E%2C%20a%20groundbreaking%20technology%20that%20enables%20seamless%20conflict%20resolution.%3C%2FP%3E%0A%3CP%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_0-1643313027910.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F343084iB7053269D808AB29%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22kteegarden_0-1643313027910.png%22%20alt%3D%22kteegarden_0-1643313027910.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CH1%20id%3D%22toc-hId-325996382%22%20id%3D%22toc-hId-348216872%22%3EUse-cases%20for%20active%20geo-replication%3C%2FH1%3E%0A%3CP%3EActive%20geo-replication%20gives%20developers%20a%20powerful%20tool%20to%20tackle%20otherwise%20frustrating%20technical%20challenges%2C%20such%20as%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-1016557856%22%20id%3D%22toc-hId-1038778346%22%3EEnterprise-grade%20Availability%3C%2FH2%3E%0A%3CP%3EAs%20Redis%20steadily%20increases%20in%20popularity%20and%20adoption%2C%20it%20is%20becoming%20an%20essential%20part%20of%20mission-critical%20applications.%20Many%20customers%20in%20the%20financial%20services%2C%20retail%2C%20and%20software%20industries%20need%20Redis%20in%20both%20high%20availability%20and%20disaster%20recovery%20scenarios.%20The%20Enterprise%20tiers%20of%20Azure%20Cache%20for%20Redis%20help%20deliver%20both.%20Zone%20redundancy%20already%20enables%20Enterprise%20Azure%20Cache%20for%20Redis%20to%20be%20resilient%20to%20zone-level%20outages%20and%20reach%20a%20%3CA%20href%3D%22https%3A%2F%2Fazure.microsoft.com%2Fsupport%2Flegal%2Fsla%2Fcache%2Fv1_1%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E99.99%25%20availability%20SLA%3C%2FA%3E.%20Adding%20active%20geo-replication%20helps%20further%20protect%20against%20region-level%20outages%2C%20%3CA%20href%3D%22https%3A%2F%2Fazure.microsoft.com%2Fsupport%2Flegal%2Fsla%2Fcache%2Fv1_1%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Eboosting%20the%20availability%20SLA%20up%20to%2099.999%25%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EEven%20better%2C%20experiencing%20the%20benefits%20of%20higher%20availability%20is%20straightforward.%20Even%20if%20there%20is%20an%20outage%20in%20one%20region%2C%20the%20caches%20in%20other%20regions%20will%20have%20the%20latest%20synchronized%20copy%20of%20the%20data%20in%20your%20cache.%20And%20when%20the%20region%20comes%20back%20online%2C%20the%20original%20cache%20will%20automatically%20be%20updated%20with%20data%20written%20to%20the%20linked%20regions%20during%20the%20outage.%3C%2FP%3E%0A%3CP%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_1-1643313027916.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F343085iA140E1DDFA3DAF94%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22kteegarden_1-1643313027916.png%22%20alt%3D%22kteegarden_1-1643313027916.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--790896607%22%20id%3D%22toc-hId--768676117%22%3ELocal%20Latency%20Performance%3C%2FH2%3E%0A%3CP%3ECustomer%20expectations%20for%20speedy%20application%20performance%20are%20sky%20high.%20%3CA%20href%3D%22https%3A%2F%2Fredis.com%2Fwp-content%2Fuploads%2F2021%2F08%2FDS-RedisLabs-Retail-Transformation.pdf%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3ENine%20in%20ten%20shoppers%20will%20abandon%20a%20retail%20website%20if%20it%20is%20too%20slow%3C%2FA%3E.%20As%20applications%20become%20global%2C%20this%20presents%20a%20challenge%20with%20caching.%20Your%20cache%20may%20be%20quick%2C%20but%20if%20your%20customers%20are%20talking%20to%20a%20cache%20that%20is%20halfway%20around%20the%20world%2C%20network%20latency%20can%20erase%20the%20benefits%20of%20the%20cache.%20With%20active%20geo-replication%2C%20you%20can%20get%20local%20latency%20performance%20while%20maintaining%20cache%20consistency%20because%20users%20and%20applications%20can%20be%20directed%20to%20the%20geo-replicated%20cache%20closest%20to%20them.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-1696616226%22%20id%3D%22toc-hId-1718836716%22%3EGlobal%20Synchronization%20of%20Data%3C%2FH2%3E%0A%3CP%3EManaging%20multiple%20sources%20of%20data%20can%20be%20a%20frustrating%20challenge.%20Scale%20or%20latency%20constraints%20can%20force%20you%20to%20silo%20your%20app%20infrastructure%20by%20geography%2C%20which%20then%20can%20introduce%20data%20consistency%20issues.%20Some%20applications%20are%20designed%20to%20have%20the%20same%20experience%20across%20borders%2C%20which%20confounds%20the%20problem%20even%20further.%20For%20example%2C%20a%20game%20developer%20might%20want%20all%20players%20to%20see%20a%20global%20leaderboard%20which%20ranks%20players%20across%20regions.%20While%20Redis%20is%20a%20common%20way%20to%20implement%20a%20leaderboard%2C%20aggregating%20multiple%20independent%20leaderboards%20from%20separate%20Redis%20instances%20is%20a%20hassle.%20With%20active%20geo-replication%2C%20however%2C%20the%20linked%20Redis%20instances%20can%20all%20update%20the%20same%20shared%20sorted%20set%20leaderboard%2C%20meaning%20a%20new%20high%20score%20in%20Tokyo%20will%20be%20automatically%20ranked%20next%20to%20a%20score%20from%20a%20player%20in%20London.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22kteegarden_2-1643313027929.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F343086i1F8842A7C6FF9B0F%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22kteegarden_2-1643313027929.png%22%20alt%3D%22kteegarden_2-1643313027929.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CH1%20id%3D%22toc-hId-1686113122%22%20id%3D%22toc-hId-1708333612%22%3ETry%20it%20on%20Azure%3C%2FH1%3E%0A%3CP%3EAzure%20Cache%20for%20Redis%20gives%20you%20a%20fully-managed%20Redis%20experience.%20With%20full%20portal%20integration%2C%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fazure%2Fazure-cache-for-redis%2Fcache-how-to-active-geo-replication%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Econfiguring%20active%20geo-replication%3C%2FA%3E%20is%20straightforward%2C%20and%20gives%20you%20a%20wide%20selection%20of%20regions%20to%20choose%20from%20in%20the%20ever-growing%20Azure%20footprint.%20%3CA%20href%3D%22https%3A%2F%2Fazure.microsoft.com%2Fen-us%2Ffree%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3ETry%20active%20geo-replication%20today%3C%2FA%3E%20in%20the%20Enterprise%20and%20Enterprise%20flash%20tiers%20of%20Azure%20Cache%20for%20Redis%2C%20read%20how%20to%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fazure%2Fazure-cache-for-redis%2Fcache-how-to-active-geo-replication%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Econfigure%20the%20feature%3C%2FA%3E%2C%20or%20check%20out%20a%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FMSFTeegarden%2FAzure-Redis-Active-Geo-Demo%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Esimple%20active%20geo-replication%20demo%3C%2FA%3E.%20%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-3074404%22%20slang%3D%22en-US%22%3E%3CP%3EActive%20geo-replication%20is%20now%20generally%20available%20in%20the%20enterprise%20tiers%20of%20Azure%20Cache%20for%20Redis!%20Learn%20more%20about%20how%20to%20use%20this%20powerful%20capability.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3074404%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%20Cache%20for%20Redis%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EBest%20Practices%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EGet%20Started%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Co-Authors
Version history
Last update:
‎Feb 02 2022 08:00 AM
Updated by: