Azure / Azure/azure-sdk-for-python
Keepalive for links in 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
Assessment
This issue has not been assessed yet.