rebus-org / Rebus.AzureServiceBus

:bus: Azure Service Bus transport for Rebus
https://mookid.dk/category/rebus
Other
33 stars 20 forks source link

More robust message lock renewal #53

Closed mookid8000 closed 4 years ago

mookid8000 commented 4 years ago

When a message is received and automatic peek lock renewal is enabled, an async task is scheduled in the background to take care of the peek lock renewal.

I think it would be more robust to have a ConcurrentDictionary<string, PeekLockRenewer> which is checked every few seconds, and then PeekLockRenewer could take care of the logic pertaining to peek lock renewal.

This will also be a good time to add some kind of sensible retry mechanism around the renewal.

mookid8000 commented 4 years ago

fixed in Rebus.AzureServiceBus 7.1.2