MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.29k stars 21.47k forks source link

How to set the Secondary and Primary store for spring boot app? #50375

Closed Prithvi1994 closed 10 months ago

Prithvi1994 commented 4 years ago

Hi, we're looking to enable disaster recovery/resiliency for azure app config with a spring boot app. Please update the document with spring boot examples as well.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

BhargaviAnnadevara commented 4 years ago

@Prithvi1994 Thanks for the feedback. I have assigned the issue to the content author to evaluate and update as appropriate.

Prithvi1994 commented 4 years ago

Hi @BhargaviAnnadevara-MSFT, any update on this?

BhargaviAnnadevara commented 4 years ago

Looping in @lisaguthrie for providing more insights on ETA.

anilpras commented 4 years ago

This is what can be used to achieve resiliency and failover.

https://github.com/microsoft/spring-cloud-azure/blob/master/spring-cloud-azure-starters/spring-cloud-starter-azure-appconfiguration-config/README.md#load-from-multiple-configuration-stores

spring.cloud.azure.appconfiguration.cache-expiration = 10000 spring.cloud.azure.appconfiguration.stores[0].connection-string=[first-store-connection-string] spring.cloud.azure.appconfiguration.stores[0].fail-fast=false spring.cloud.azure.appconfiguration.stores[1].connection-string=[second-store-connection-string] spring.cloud.azure.appconfiguration.stores[1].fail-fast=false

Additional Notes: USE "spring-cloud-azure-appconfiguration-config-web" for AUTO REFRESH with the latest version of the config SDK https://github.com/Azure/AppConfiguration/blob/2c27252d71d4d1918c6c97e6ba3ec891a7080e73/releaseNotes/SpringCloudAzureAppConfigurationConfig.md

spring-cloud-azure-appconfiguration-config has been split into two packages: spring-cloud-azure-appconfiguration-config and spring-cloud-azure-appconfiguration-config-web. The web provider take on the spring-web dependency used for automated refresh. In the spring-cloud-azure-appconfiguration-config provider, refresh needs to be manually triggered.  To continue using automated refresh, the "spring-cloud-azure-appconfiguration-config" dependency should be updated to "spring-cloud-azure-appconfiguration-config-web".

maud-lv commented 10 months ago

Having a look at this issue, I see that instructions have been removed from this doc as this is a conceptual doc and not a how-to guide. The following how-to guides may be useful for the scenario mentioned:

maud-lv commented 10 months ago

reassign: maud-lv

maud-lv commented 10 months ago

I am closing the issue as I believe the links shared provide the information needed. Please do let me know if that isn't the case. #please-close