Queues and messaging

Back pressure

Putting a limit on the queue size. When it's full, new jobs get "server busy" and are retried later.

Example

The queue accepts up to 1,000 jobs. Job 1,001 gets "server busy, try again in a few seconds" instead of waiting forever.

Test yourself: Back pressure

Message queues

With exponential backoff, each retry waits ___ as long as the previous one.

Lessons that use it

More queues and messaging terms

All terms →

Arki, the beaver mascot

Your next interview starts with 5 minutes today.

Free on iOS and Android. Start from zero, no account needed.