All posts
Written by Sujith Quintelier β€’ Mar 20, 2023

πŸ”Ή Azure Storage Redundancy: Ensuring Data Availability and Durability

Mar 20, 2023

Azure Storage automatically stores multiple copies of your data to protect against failures, power outages, and even massive natural disasters. Redundancy ensures that your data remains available and durable even when failures occur.

This guide covers all redundancy options available in Azure Storage and how they impact data durability, availability, and failover scenarios.


🌍 Primary Region Redundancy

Azure Storage always maintains three copies of your data in the primary region. There are two replication options:

πŸ”Ή LRS (Locally Redundant Storage)
πŸ”Ή ZRS (Zone-Redundant Storage)

🟒 Locally Redundant Storage (LRS)

LRS synchronously copies your data three times within a single physical location in the primary region.

βœ… Lowest-cost option
⚠️ Not recommended for applications requiring high availability

LRS Replication
Locally Redundant Storage (LRS)

πŸ”΅ Zone-Redundant Storage (ZRS)

ZRS synchronously replicates data across three availability zones within the primary region.

βœ… Recommended for high-availability applications
βœ… Protects against data center failures

ZRS Replication
Zone Redundant Storage (ZRS)

🌎 Secondary Region Redundancy (Geo-Redundancy)

For higher durability, Azure allows replicating data to a secondary region, located hundreds of miles away from the primary region.

When creating a storage account, you select the primary region, and Azure assigns a paired secondary region (which cannot be changed).

Azure Storage provides two geo-redundancy options:

πŸ”Ή GRS (Geo-Redundant Storage)
πŸ”Ή GZRS (Geo-Zone-Redundant Storage)

Key Difference: In both cases, the secondary region always uses LRS (three copies) for durability. However, the primary region’s replication method differs.

🟑 Geo-Redundant Storage (GRS)

GRS copies data:

  1. Synchronously (LRS) within the primary region
  2. Asynchronously to a single physical location in the secondary region

βœ… Protects against regional outages
⚠️ Data in the secondary region is not readable unless failover occurs

LRS Replication
Geo-Redundant Storage (GRS)

πŸ”΄ Geo-Zone-Redundant Storage (GZRS)

GZRS combines the benefits of ZRS + GRS:

  1. Synchronously (ZRS) replicates across three availability zones in the primary region
  2. Asynchronously copies to a single location in the secondary region

βœ… Best for mission-critical applications
βœ… Protects against both zonal & regional failures

LRS Replication
Geo-Zone-Redundant Storage (GZRS)

πŸ“– Read Access to Secondary Region

By default, GRS and GZRS replicate data to a secondary region but do not allow direct access.

However, if your application requires read access to the secondary region during a primary region outage, you can enable:

πŸ”Ή Read-Access Geo-Redundant Storage (RA-GRS)
πŸ”Ή Read-Access Geo-Zone-Redundant Storage (RA-GZRS)

βœ… Data can be read from the secondary region
⚠️ Secondary region lags behind the primary (async replication)

Note: In a disaster scenario, some data might be lost since replication to the secondary region is asynchronous.


LRS Replication
Overview

πŸ“Š Comparison: Durability & Availability

Durability & Availability Parameters

ParameterLRSZRS(RA-)GRS(RA-)GZRS
Durability (per year)β‰₯ 11 9’sβ‰₯ 12 9’sβ‰₯ 16 9’sβ‰₯ 16 9’s
Availability (read requests)β‰₯ 99.9% (99% for Cool/Archive)β‰₯ 99.9% (99% for Cool/Archive)β‰₯ 99.9% for GRS / 99.99% for RA-GRSβ‰₯ 99.9% for GZRS / 99.99% for RA-GZRS
Availability (write requests)β‰₯ 99.9% (99% for Cool/Archive)β‰₯ 99.9% (99% for Cool/Archive)β‰₯ 99.9%β‰₯ 99.9%
Number of copies of data3 copies (single location)3 copies (across zones)6 copies (3 primary + 3 secondary)6 copies (ZRS primary + LRS secondary)

Availability Based on Outage Scenarios

Failure ScenarioLRSZRS(RA-)GRS(RA-)GZRS
Node failure within a data centerβœ…βœ…βœ…βœ…
Single data center failureβŒβœ…βœ…βœ…
Primary region failure (regional outage)βŒβŒβœ…βœ…
Read access to secondary during primary outageβŒβŒβœ… (RA-GRS)βœ… (RA-GZRS)

πŸ† Which Azure Storage Redundancy Should You Choose?

Use CaseBest Option
Cost-sensitive workloads, backups, non-critical dataLRS
High availability within the primary regionZRS
Disaster recovery and regional failover protectionGRS
Mission-critical workloads requiring both zonal & regional protectionGZRS
Applications requiring immediate read access to secondaryRA-GRS / RA-GZRS

πŸ›  Final Thoughts

Azure Storage offers multiple redundancy options to ensure data durability and availability. Choosing the right replication strategy depends on:

βœ”οΈ Business requirements – Do you need cross-region failover?
βœ”οΈ Cost considerations – ZRS and GZRS are costlier but offer better availability.
βœ”οΈ Read requirements – Do you need read access to the secondary region?

If you’re running mission-critical applications, GZRS (or RA-GZRS) is your best bet. Otherwise, ZRS or GRS might be sufficient depending on your redundancy needs.

πŸš€ What’s your go-to storage redundancy option? Drop a comment below! πŸ‘‡

comments powered by Disqus