Skip to content

Commit 7f43bd0

Browse files
committed
Update for Acrolinx
1 parent 772f52e commit 7f43bd0

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

articles/azure-app-configuration/howto-geo-replication.md

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -88,18 +88,20 @@ To delete a replica in the portal, follow the steps below.
8888

8989
Each replica you create has its dedicated endpoint. If your application resides in multiple geolocations, you can update each deployment of your application in a location to connect to the replica closer to that location, which helps minimize the network latency between your application and App Configuration. Since each replica has its separate request quota, this setup also helps the scalability of your application while it grows to a multi-region distributed service.
9090

91-
When geo-replication is enabled, and if one replica is not accessible, you can let your application failover to another replica for improved resiliency. App Configuration provider libraries have built-in failover support. The provider library accepts multiple endpoints. You can provide a list of your replica endpoints in the order of how you prefer your application to connect, from the most to the least. When one endpoint is not accessible, the provider library will failover to a less preferred endpoint, but it will try to connect to the more preferred endpoints from time to time. When a more preferred endpoint becomes available, it will switch to it for future requests. You can update your application to take advantage of this failover support.
91+
When geo-replication is enabled, and if one replica isn't accessible, you can let your application failover to another replica for improved resiliency. App Configuration provider libraries have built-in failover support. The provider library accepts multiple endpoints. You can provide a list of your replica endpoints in the order of how you prefer your application to connect, from the most to the least. When one endpoint isn't accessible, the provider library will fail over to a less preferred endpoint, but it will try to connect to the more preferred endpoints from time to time. When a more preferred endpoint becomes available, it will switch to it for future requests. You can update your application as the sample code below to take advantage of the failover feature.
9292

9393
<!-- ### [.NET](#tab/dotnet) -->
9494

9595
```csharp
9696
configurationBuilder.AddAzureAppConfiguration(options =>
9797
{
98-
// Provide an ordered list of replica endpoints and use AAD authentication
99-
options.Connect(new Uri[] {
100-
new Uri("https://<first-replica-endpoint>.azconfig.io"),
101-
new Uri("https://<second-replica-endpoint>.azconfig.io") },
102-
new DefaultAzureCredential());
98+
// Provide an ordered list of replica endpoints
99+
var endpoints = new Uri[] {
100+
new Uri("https://<first-replica-endpoint>.azconfig.io"),
101+
new Uri("https://<second-replica-endpoint>.azconfig.io") };
102+
103+
// Connect to replica endpoints using AAD authentication
104+
options.Connect(endpoints, new DefaultAzureCredential());
103105

104106
// Other changes to options
105107
});
@@ -112,11 +114,13 @@ configurationBuilder.AddAzureAppConfiguration(options =>
112114
Placeholder for Java Spring instructions
113115
--- -->
114116

115-
The failover in the App Configuration provider occurs in the following conditions. It will not happen for client errors like authentication failures.
117+
The failover in the App Configuration provider occurs in the following conditions.
116118
- Service unavailable responses (HTTP status code 500 or above)
117119
- Network connectivity issues
118120
- Throttled requests (HTTP status code 429)
119121

122+
The failover won't happen for client errors like authentication failures.
123+
120124
## Next steps
121125

122126
> [!div class="nextstepaction"]

0 commit comments

Comments
 (0)