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
Copy file name to clipboardExpand all lines: articles/azure-app-configuration/enable-dynamic-configuration-gin-web-app.md
+6-13Lines changed: 6 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,29 +6,22 @@ author: linglingye
6
6
ms.service: azure-app-configuration
7
7
ms.devlang: golang
8
8
ms.topic: quickstart
9
-
ms.date: 01/05/2024
9
+
ms.date: 05/27/2025
10
10
ms.author: linglingye
11
11
ms.custom: devx-track-go
12
12
---
13
13
14
14
# Tutorial: Use dynamic configuration in a Gin web app
15
15
16
-
This tutorial shows how you can implement dynamic configuration updates in a Gin web application using Azure App Configuration. It builds on the web app introduced in the previous quickstart. Before you continue, complete [Create a Gin web app with Azure App Configuration](./quickstart-go-web-app.md) first.
17
-
18
-
In this quickstart, you'll learn how to:
19
-
20
-
> [!div class="checklist"]
21
-
> * Set up your Gin app to update its configuration in response to changes in an App Configuration store
22
-
> * Implement a middleware to refresh configuration on incoming requests
23
-
> * Inject the latest configuration into your app.
16
+
This tutorial shows how you can implement dynamic configuration updates in a Gin web application using Azure App Configuration. It builds on the web app introduced in the previous quickstart.
24
17
25
18
## Prerequisites
26
19
27
20
Finish the quickstart: [Create a Gin web app with Azure App Configuration](./quickstart-go-web-app.md)
28
21
29
22
## Reload data from App Configuration
30
23
31
-
1. Open the file *`appconfig.go`*. Inside the `loadAzureAppConfiguration` function, update the `options` to enable refresh. Go provider will reload the entire configuration whenever it detects a change in any of the selected key-values (those starting with *Config.* and having no label). For more information about monitoring configuration changes, see [Best practices for configuration refresh](./howto-best-practices.md#configuration-refresh).
24
+
1. Open the file *`appconfig.go`*. Inside the `loadAzureAppConfiguration` function, update the `options` to enable refresh. Go provider will reload the entire configuration whenever it detects a change in any of the selected key-values. For more information about monitoring configuration changes, see [Best practices for configuration refresh](./howto-best-practices.md#configuration-refresh).
32
25
33
26
```golang
34
27
options:= &azureappconfiguration.Options{
@@ -60,9 +53,9 @@ Finish the quickstart: [Create a Gin web app with Azure App Configuration](./qui
0 commit comments