cookie-cutter
cookie-cutter copied to clipboard
Azure Queue client should backoff retries when no messages
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