Azure / azure-functions-host

The host/runtime that powers Azure Functions
https://functions.azure.com
MIT License
1.95k stars 442 forks source link

Enable/Disable service bus triggered function at runtime #8441

Open mathiasbl opened 4 years ago

mathiasbl commented 4 years ago

Implementing a Circuit Breaker pattern, for a service bus triggered function, today requires a secondary app (Logic App or Azure Function) to disable your function app in order to stop processing when your circuit breaker triggers.

It would be nice if we could prevent the need of a secondary app to start/stop your function app by allowing us to enable/disable a service bus triggered function at runtime while still running the function app with possible other functions inside of it.

Let me know what you guys think :)

References: https://github.com/Polly-Contrib/Polly.Contrib.AzureFunctions.CircuitBreaker https://github.com/jeffhollan/functions-durable-actor-circuitbreaker

alrod commented 2 years ago

This issue is more broader then service bus trigger and the "Circuit Breaker" can be applied to any type of trigger, transferring to function host for triage.