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/spring-apps/enterprise/how-to-enterprise-application-configuration-service.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -158,13 +158,13 @@ When you modify and commit your configurations in a Git repository, several step
158
158
159
159
This process, though automated, involves the following distinct stages and components, each with its own timing and behavior.
160
160
161
-
-**Polling by Application Configuraiton Service**: The Application Configuration Service regularly polls the backend Git repositories to detect any changes. This polling occurs at a set frequency, defined by the refresh interval. When a change is detected, Application Configuration Service updates the Kubernetes ConfigMap.
162
-
-**ConfigMap Update and Interaction with Kubelet Cache**: In Azure Spring Apps, this ConfigMap is mounted as a data volume to the relevant application. However, there is a natural delay in this process due to the frequency at which the kubelet refreshes its cache to recognize changes in ConfigMaps.
163
-
-**Application Reads Updated Configuration**: Your application running in the Azure Spring Apps environment can access the updated configuration values. Note that the existing beans in the Spring Context isn't refreshed to use the updated configurations automatically.
161
+
-**Polling by Application Configuration Service**: The Application Configuration Service regularly polls the backend Git repositories to detect any changes. This polling occurs at a set frequency, defined by the refresh interval. When a change is detected, Application Configuration Service updates the Kubernetes ConfigMap.
162
+
-**ConfigMap Update and Interaction with Kubelet Cache**: In Azure Spring Apps, this ConfigMap is mounted as a data volume to the relevant application. However, there's a natural delay in this process due to the frequency at which the Kubelet refreshes its cache to recognize changes in ConfigMaps.
163
+
-**Application Reads Updated Configuration**: Your application running in the Azure Spring Apps environment can access the updated configuration values. Note that the existing beans in the Spring Context aren't refreshed to use the updated configurations automatically.
164
164
165
165
You can adjust the polling refresh interval of the Application Configuration Service to align with your specific needs. To apply the updated configurations in your application, a restart or refresh action is necessary.
166
166
167
-
In Spring applications, properties are hold or refrenced as the beans within the Spring Context. To load new configurations, use the following methods:
167
+
In Spring applications, properties are hold or referenced as the beans within the Spring Context. To load new configurations, use the following methods:
168
168
169
169
- Restart the application. Restarting the application always loads the new configuration.
170
170
@@ -203,7 +203,7 @@ In Spring applications, properties are hold or refrenced as the beans within the
203
203
curl -X POST http://{app-endpoint}/actuator/refresh
204
204
```
205
205
206
-
- Use `FileSystemWatcher` to watch the file change and refresh the context on demand. `FileSystemWatcher` is a class shipped with `spring-boot-devtools` that watches specific directories for file changes, or you can use another utility with similar function. The previous option require users to initiate the refresh actively, while the latter can monitor for file changes and automatically invoke the refresh upon detecting updates. The file path, as methioned in the [Polyglot support](#polyglot-support) section, can be retrieved using the environment variable `AZURE_SPRING_APPS_CONFIG_FILE_PATH`.
206
+
- Use `FileSystemWatcher` to watch the file change and refresh the context on demand. `FileSystemWatcher` is a class shipped with `spring-boot-devtools` that watches specific directories for file changes, or you can use another utility with similar function. The previous option requires users to initiate the refresh actively, while the latter can monitor for file changes and automatically invoke the refresh upon detecting updates. The file path, as mentioned in the [Polyglot support](#polyglot-support) section, can be retrieved using the environment variable `AZURE_SPRING_APPS_CONFIG_FILE_PATH`.
207
207
208
208
## Configure Application Configuration Service settings
209
209
@@ -284,17 +284,17 @@ Use the following steps to use Application Configuration Service with applicatio
284
284
> [!NOTE]
285
285
> When you change the bind/unbind status, you must restart or redeploy the app to for the binding to take effect.
286
286
287
-
1. In the navigation menu, select **Apps** to view the list all the apps.
287
+
1. In the navigation menu, select **Apps** to view the list of all the apps.
288
288
289
-
1. Select the target app to configure patterns for from the `name` column.
289
+
1. Select the target app to configure patterns for the `name` column.
290
290
291
291
1. In the navigation pane, select **Configuration** and then select **General settings**.
292
292
293
-
1. In the **Config file patterns** dropdown, choose one or more patterns from the list. For more information, see the [Pattern](./how-to-enterprise-application-configuration-service.md#pattern) section.
293
+
1. In the **Config file patterns** dropdown, choose one or more patterns from the list. For more information, see the [Pattern](#pattern) section in this article.
294
294
295
295
:::image type="content" source="media/how-to-enterprise-application-configuration-service/configuration-service-pattern.png" alt-text="Screenshot of the Azure portal that shows the App Configuration page with the General settings tab and api-gateway options highlighted." lightbox="media/how-to-enterprise-application-configuration-service/configuration-service-pattern.png":::
0 commit comments