Promptles
Architecture

Message Queue

intermediate

Definition

A waiting line for tasks. One part of the app drops jobs into the queue; another part picks them up and works through them at its own pace. This means slow work doesn't make people stand around waiting, and a sudden rush of jobs doesn't crash anything.

In the wild

When you upload a video to a website, the site doesn't make you wait while it converts the file. It puts 'convert this video' into a queue and immediately tells you 'we'll let you know when it's ready.' A worker pulls the job from the queue minutes later, finishes the conversion, and emails you the link.

More from Architecture