Azure / azure-uamqp-python

AMQP 1.0 client library for Python
MIT License
56 stars 48 forks source link

improve token refresh logic #277

Closed yunhaoling closed 2 years ago

yunhaoling commented 2 years ago

addressing issue: https://github.com/Azure/azure-sdk-for-python/issues/20573

The improvements include:

TODO:

There's one more improvement I could think of, introducing backoff when calling "update_token" if the newly-generated token is the same as old one to avoid throttling token generation module/service, but I'm afraid that goes too far for now.