Stoppage of message consumption Service BUS

Bandaru Nagendra 0 Reputation points
2024-02-19T13:45:49.28+00:00

Hi Team, Consumption of ASB messages is stopped at particular point and if redeployed it starts consuming, for the few topics.

We have been encountering this problem repeatedly. Kindly check and assist us in resolving this issue permanently.

Thanks.

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

1 answer

Sort by: Most helpful
  1. Adharsh Santhanam 6,020 Reputation points Volunteer Moderator
    2024-02-20T06:39:11.9633333+00:00

    Hello @Bandaru Nagendra If the message consumption has stopped at a particular point and starts with a redeployment, it indicates that there's likely a deeper problem here. You can troubleshoot and try to identify the root cause for this. Some potential solutions include:

    • Each new ServiceBusClient created results in a new AMQP connection, which uses a socket. Prefer treating the Service Bus types as singletons.
    • Ensure that you call CloseAsync or DisposeAsync when a client is no longer needed.
    • Consider using the Web Socket transport option (which connects via 443) if needed.

    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    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.