---
title: "Discussion on \"Exponential retry with Azure Function and Service Bus trigger\" | Hashnode"
description: "Discussion on \"Exponential retry with Azure Function and Service Bus trigger\". Implementing a custom exponential backoff retry strategy"
url: "https://hashnode.com/posts/exponential-retry-with-azure-function-and-service-bus-trigger/6322edf68350c8888bf306c3"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Exponential retry with Azure Function and Service Bus trigger](https://danyl.hashnode.dev/exponential-retry-with-azure-function-and-service-bus-trigger?utm_source=hashnode&utm_medium=feed)

Implementing a custom exponential backoff retry strategy

Sep 15, 2022 · 4 min read · danyl.hashnode.dev  
Read the article

-   [#azure](https://hashnode.com/tag/azure)
-   [#csharp](https://hashnode.com/tag/csharp)
-   [#azure-functions](https://hashnode.com/tag/azure-functions)
-   [#azure-service-bus-queues](https://hashnode.com/tag/azure-service-bus-queues)
-   [#net](https://hashnode.com/tag/net)

## Written by

[Danyl Novhorodov](https://hashnode.com/@danyl)

@danyl · NL

  
[View profile](https://hashnode.com/@danyl)

Software warrior

I’m an experienced software developer and technical leader working in the software industry since 2004. My interests are in software architecture, functional programming, web development, DevOps, cloud computing, Agile, and much more.

## Responses 1

Markdown supported · ⌘↵ to post

[Bogdan Mihai Cosofret](https://hashnode.com/@bgdncsf)

[Oct 5, 2023](https://hashnode.com/posts/exponential-retry-with-azure-function-and-service-bus-trigger/6322edf68350c8888bf306c3/comment/651e7d9c11a36fafb910f6cc)

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.
