Azure Service Bus: Subscriber delay DLQ

raminder chima 1 Reputation point
2022-02-24T16:45:27.867+00:00

Hi,

I am trying to push messages into Service Bus Topic with subscriber as Azure Function. I have configured concurrency of function to max 2. Now, if the Topic receives 10 messages, it moves down the rest 8 into DLQ. My understanding is that the messages should remain in the queue depending on TTL configuration but they all are moving to DLQ immediately. I have checked it with Logic App also and it does the same but not to all the messages. I am not sure what may be going wrong ?

Any ideas or suggestion would help please.

Thanks in advance.

Azure Service Bus
Azure Service Bus
An Azure service that provides cloud messaging as a service and hybrid integration.
700 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. MayankBargali-MSFT 70,936 Reputation points Moderator
    2022-02-28T06:32:20.11+00:00

    @raminder chima For the function issue please verify if you have configured the prefetchCount value in your host.json? Please share your host.json configuration for service bus and how much time will it take for a single message to get consumed. In case if you have specified the high value for prefetchCount and one message takes more time than your maxAutoRenewDuration then in case all the messages lock acquired in the client buffer will get expired and the message will be again visible for your client to get consumed. In the scenario, if you have configured the max delivery count as 1 on your service bus entity and enabled the "dead letter on message expiration" property and the client is not able to consume the message then your message should move to the dead letter queue.

    The message is moved to the dead letter queue in the different scenarios as mentioned here and not only depended on the TTL that you have configured on your entity/message level.
    You can leverage service bus explorer to find the reason why the messages were moved to the dead letter queue.

    0 comments No comments

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.