Dapr resiliency policy for retries not working as expected

Sandeep Chandra 0 Reputation points
2024-11-30T01:31:13.7+00:00

I have a subscription with resiliency policy defined for Dapr as shown in the screenshot. The issue I have is that the retries happen all at once without any delays, and then the message is DLQed. Have I got something wrong in this config?

Image

Azure Container Apps
Azure Container Apps
An Azure service that provides a general-purpose, serverless container platform.
543 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Khadeer Ali 3,670 Reputation points Microsoft Vendor
    2024-12-02T02:12:48.8433333+00:00

    Hi Sandeep Chandra,

    Welcome to the Microsoft Q&A Platform! Thank you for reaching out regarding your query on Dapr Resiliency Policy.

    The issue here might lie in the large initial delay. Since the first retry is delayed by an hour, subsequent retries might happen in quick succession after the initial delay. This can result in a burst of retries, potentially overwhelming the target system and causing DLQing.

    Could you try reducing the initial delay to a smaller value? This would ensure that retries begin sooner and are more evenly spaced out.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.