cookie-cutter icon indicating copy to clipboard operation
cookie-cutter copied to clipboard

Azure Queue client should backoff retries when no messages

Open cross311 opened this issue 5 years ago • 0 comments

The underlying Azure queue client does not use long polling to get messages, so if there are no messages it instantly returns. Our client then while (running === true) tries to get more messages.

With a not so busy queue, this turns into the cc azure client requesting messages at a crazy high rate (100+ a minute).

I feel like there should be some sane defaults and configurable way to have a backoff.

possible configuration:

Max Backoff Time: default 5 minutes Backoff algorithm: default exponential

if max backoff time is 0, then no backoff is used

cross311 avatar Jan 23 '20 22:01 cross311