You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `ConfigureRefresh` method is used to specify the settings used to update the configuration data with the App Configuration store when a refresh operation is triggered. The `refreshAll` parameter to the `Register` method indicates that all configuration values should be refreshed if the sentinel key changes.
114
-
115
-
Also, the `SetCacheExpiration` method overrides the default cache expiration time of 30 seconds, specifying a time of 1 second instead.
113
+
The `ConfigureRefresh` method is used to specify the settings used to update the configuration data with the App Configuration store when a refresh operation is triggered. The `refreshAll` parameter to the `Register` method indicates that all configuration values should be refreshed if the sentinel key changes.
116
114
117
-
> [!WARNING]
118
-
> Use higher cache expiration times in production to avoid unnecessary requests to App Configuration.
119
-
120
-
To actually trigger a refresh operation, configure a refresh middleware for the application to refresh the configuration data when any change occurs.
115
+
Also, the `SetCacheExpiration` method overrides the default cache expiration time of 30 seconds, specifying a time of 5 minutes instead. This reduces the number of requests made to App Configuration.
116
+
117
+
> [!NOTE]
118
+
> For testing purposes, you may want to lower the cache expiration time.
119
+
120
+
To actually trigger a refresh operation, you'll need to configure a refresh middleware for the application to refresh the configuration data when any change occurs. You'll see how to do this in step #4.
121
121
122
122
2. Add a *Settings.cs* file that defines and implements a new `Settings` class.
123
123
@@ -312,7 +312,7 @@ A *sentinel key* is a special key used to signal when configuration has changed.
312
312
1. After the build successfully completes, run the following command to run the web app locally:
313
313
314
314
dotnet run
315
-
1. Open a browser window, and go to `http://localhost:5000`, which is the default URL for the web app hosted locally.
315
+
1. Open a browser window, and go to the URL shown in the `dotnet run` output.
Copy file name to clipboardExpand all lines: articles/azure-app-configuration/faq.md
+15-2Lines changed: 15 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -95,9 +95,22 @@ You can't downgrade a store from the Standard tier to the Free tier. You can cre
95
95
96
96
## Are there any limits on the number of requests made to App Configuration?
97
97
98
-
Configuration stores in the Free tier are limited to 1,000 requests per day. Configuration stores in the Standard tier may experience temporary throttling when the request rate exceeds 20,000 requests per hour. When a store reaches its limit, it will return HTTP status code 429 for all requests made until the time period expires.
98
+
Configuration stores in the Free tier are limited to 1,000 requests per day. Configuration stores in the Standard tier may experience temporary throttling when the request rate exceeds 20,000 requests per hour.
99
99
100
-
If your application regularly experiences HTTP status code 429, consider redesigning it to reduce the number of requests made. For more information, see [Reduce requests made to App Configuration](./howto-best-practices.md#reduce-requests-made-to-app-configuration)
100
+
When a store reaches its limit, it will return HTTP status code 429 for all requests made until the time period expires. The `retry-after-ms` header in the response gives a suggested wait time (in milliseconds) before retrying the request.
101
+
102
+
If your application regularly experiences HTTP status code 429 responses, consider redesigning it to reduce the number of requests made. For more information, see [Reduce requests made to App Configuration](./howto-best-practices.md#reduce-requests-made-to-app-configuration)
103
+
104
+
## My application receives HTTP status code 429 responses. Why?
105
+
106
+
You'll receive an HTTP status code 429 response under these circumstances:
107
+
108
+
* Exceeding the daily request limit for a store in the Free tier.
109
+
* Temporary throttling due to a high request rate for a store in the Standard tier.
110
+
* Excessive bandwidth usage.
111
+
* Attempting to create or modify a key when the storage quote is exceeded.
112
+
113
+
Check the body of the 429 response for the specific reason why the request failed.
101
114
102
115
## How can I receive announcements on new releases and other information related to App Configuration?
Copy file name to clipboardExpand all lines: articles/azure-app-configuration/howto-best-practices.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -69,12 +69,14 @@ You can provide access to App Configuration for web apps or functions by using a
69
69
70
70
## Reduce requests made to App Configuration
71
71
72
-
If your application consistently experiences HTTP status code 429, consider redesigning it to reduce the number of requests made.
72
+
Excessive requests to App Configuration can result in throttling or overage charges. To reduce the number of requests made:
73
73
74
74
* Increase the refresh timeout, especially if your configuration values do not change frequently. Specify a new refresh timeout using the [`SetCacheExpiration` method](/dotnet/api/microsoft.extensions.configuration.azureappconfiguration.azureappconfigurationrefreshoptions.setcacheexpiration).
75
75
76
76
* Watch a single *sentinel key*, rather than watching individual keys. Refresh all configuration only if the sentinel key changes. See [Use dynamic configuration in an ASP.NET Core app](enable-dynamic-configuration-aspnet-core.md) for an example.
77
77
78
+
* Use Azure Event Grid to receive notifications when configuration changes, rather than constantly polling for any changes. See [Route Azure App Configuration events to a web endpoint](./howto-app-configuration-event) for more information
0 commit comments