Azure / Azure/azure-sdk-for-python

Keepalive for links in service bus?

Open
#43,070 8 comments 1 reaction 0 assignees View on GitHub
Client customer-reported needs-team-attention question Service Attention Service Bus
Dominant language
Python
Stars
5.6k
Forks
3.4k
Avg merge
1d 21h
Merged PRs (30d)
193

Description

**Is your feature request related to a problem? Please describe.**
Even when a connection in a service bus sender is kept open, the underlying links disconnect after a timeout (see [here](https://learn.microsoft.com/en-us/azure/service-bus-messaging/service-bus-amqp-troubleshoot)). While this may be fine for some use cases, we require a constant link to be open so that we don't have to wait for it to build up (takes around 2 seconds in our infra), which is unacceptably long.

**Describe the solution you'd like**
A keepalive setting which keeps links alive without such a timeout. Alternatively, a `ping` functionality that triggers the link not to shut down would also be ok.

**Describe alternatives you've considered**
We ended up writing the `ping` stuff ourselves, which is really not our job in my opinion. This, IMO, is a core part of any messaging service. It's fine to have default time outs, but we need to be able to overwrite those.

**Additional context**
Add any other context or screenshots about the feature request here.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.