Azure / Azure/azure-sdk-for-python
Keepalive for links in service bus?
- Lingua principale
- Python
- Stelle
- 5.6k
- Fork
- 3.4k
- Merge medio
- 2g 2h
- PR unite (30g)
- 213
Descrizione
**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.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia individuando il Python Service Bus sender e l'implementazione del collegamento AMQP, quindi esamina la guida di troubleshooting di Azure Service Bus collegata e i test esistenti del sender. Determina se un keepalive configurabile o un ping esplicito è compatibile con il ciclo di vita attuale del collegamento. Il lavoro è completato quando il comportamento scelto è specificato, coperto dai test ed evita il ritardo segnalato nella ricostruzione del collegamento.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- azure, python
- Ambito
- api, distributed-systems
- Tipo di issue
- Funzionalità
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Tranquilla
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100