Azure / AppConfiguration-JavaScriptProvider

The configuration provider for consuming data in Azure App Configuration from JavaScript applications like Node or browser apps.
https://github.com/Azure/AppConfiguration
MIT License
7 stars 2 forks source link

Add minimum uptime to avoid massive requests from restart-on-failure apps #33

Closed Eskibear closed 9 months ago

Eskibear commented 9 months ago

Assume the app that is using the provider is something like an Azure Function. If it fails at startup for some reason (e.g. identity has no permission to store) it will auto restart. If it does it will load again and again, super fast, sending massive requests in a short time.

We should add a minimum uptime, so that when error occurs at the very beginning, wait a reasonable amount of time to exit. That would ensure not to send massive unexpected requests.

Eskibear commented 9 months ago

implemented in #35