An Azure service that provides cloud messaging as a service and hybrid integration.
Thank you for your suggestions regarding our Service Bus latency issues. We have thoroughly reviewed those recommendations; however, we have not yet identified the root cause of the delay.
Through our investigation, we have isolated a significant latency bottleneck during the initialization phase. We observed that creating the ServiceBusClient and ServiceBusSender objects occasionally takes more than 20 seconds.
Once the client and sender are successfully established, the subsequent operation of pushing a message to the Service Bus queue is very efficient, typically completing within 100 milliseconds.
Our Questions:
- Is this initialization latency expected? Is a 20-second delay during the creation of the ServiceBusClient and ServiceBusSender considered within normal operating parameters for this SDK?
- What is the "ideal" latency? What is the typical expected time for establishing a connection and initializing these objects?
- Troubleshooting Guidance: Are there specific network or configuration factors (e.g., DNS resolution, authentication handshake, or connection pooling settings) that we should investigate to reduce this 20-second initialization time?
We are concerned that this connection-creation delay is the primary driver behind the message processing latency we are experiencing. Any guidance you can provide on optimizing this initialization process would be greatly appreciated.