Must be a simple question, but I didn’t really find the answer. I’m going to create few asp.net hosted services where I want to start threads that will send and receive messages from azure service bus (queue). Let’s take a look at receiving hosted service which effectively create ServiceBusClient
and ServiceBusProcessor
instances during starting HostedService and then always calling only callbacks.
I wonder whether I should worry about any failover related behavior which will force me recreating client let’s say in case the azure server is temporary not available (just example).
As far as I understand, the answer is no and creating client
and processor
during starting should be enough and as long as the issue will be gone, the callback will proceed to be called as before, but would be good to confirm it.