Exponential retry with Azure Function and Service Bus trigger
The Problem
When you need to have Azure Function to work with a Service Bus, you could be easily confused with the way how retry mechanism works in such a case. You often need to have a retry strategy for your function. This could be a simple fixed d...
danyl.hashnode.dev4 min read
Bogdan Mihai Cosofret
I would add something to this. Because you are not throwing any exceptions in the function, then in the function monitoring you'll see only green runs, as if the function has succeeded every time when in fact it failed.
I used a solution very similar to this, but on retries, after completing the received message and sending a new one to the service bus, I threw the caught exception at the end. If you do this, then the function runs will appear as failed in the monitor.