แก้ไข

แชร์ผ่าน


Resiliency and disaster recovery

Azure App Configuration is a regional service. Each configuration store is created in a particular Azure region. A region-wide outage affects all stores in that region, and failover between regions isn't available by default. However, Azure App Configuration supports geo-replication. You can enable replicas of your data across multiple locations for enhanced resiliency to regional outages. Utilizing geo-replication is the recommended solution for high availability.

This article provides general guidance on how you can use multiple replicas across Azure regions to increase the geo-resiliency of your application.

Tip

See best practices for building applications with high resiliency.

High-availability architecture

The original App Configuration store is also considered a replica, so to realize cross-region redundancy, you need to create at least one new replica in a different region. However, you can choose to create multiple App Configuration replicas in different regions based on your requirements. You may then utilize these replicas in your application in the order of your preference. With this setup, your application has at least one additional replica to fall back on if the primary replica becomes inaccessible.

The following diagram illustrates the topology between your application and two replicas:

Diagram of geo-redundant replicas.

Your application loads its configuration from the more preferred replica. If the preferred replica is not available, configuration is loaded from the less preferred replica. This increases the chance of successfully getting the configuration data. The data in both replicas is always in sync.

Failover between replicas

If you want to leverage automatic failover between replicas, follow these instructions to set up failover using App Configuration provider libraries. This is the recommended approach for building resiliency in your application.

If the App Configuration provider libraries don't meet your requirements, you can still implement your own failover strategy. When geo-replication is enabled, and if one replica isn't accessible, you can let your application failover to another replica for accessing your configuration.

Next steps

In this article, you learned how to augment your application to achieve geo-resiliency during runtime for App Configuration. You also can embed configuration data from App Configuration at build or deployment time. For more information, see Integrate with a CI/CD pipeline.