skip to Main Content

I tried to find the answer, even in the Azure documentation but it’s not clear.

When I set the base-delay property, is the value in seconds or milliseconds ? It’s a Duration in code.

  cloud:
    azure:
      servicebus:
        entity-type: queue
        connection-string: XXXXXXXXX
        retry:
          exponential:
            base-delay: 2000

Thank you all for your help !

2

Answers


  1. It is millisecond. You can find that in the link https://learn.microsoft.com/en-us/azure/architecture/best-practices/retry-service-specific all values are milliseconds

    Login or Signup to reply.
  2. The base-delay property in Azure is typically expressed in seconds. However, the exact unit can sometimes depend on the context or the specific Azure service you’re working with. If it’s a Duration in code, it might be in milliseconds, as Duration often represents time in milliseconds in many programming languages.

    For a definitive answer, you should refer to the specific Azure service’s documentation or the API reference for the method or function you’re using. If you’re still unsure, you could test it empirically by setting a known value and measuring the delay.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search