Web apps & software

What is a message queue?

A message queue is a system that holds tasks or messages until a worker process is ready to handle them, so slow or heavy work, such as sending emails or generating PDFs, happens in the background without making users wait.

Why apps use queues

The website responds immediately while work continues behind the scenes; spikes in demand are smoothed out; failed tasks can be retried; and separate parts of a system can communicate reliably.

Examples

Redis-based queues (BullMQ, Sidekiq), RabbitMQ, Amazon SQS and Google Pub/Sub. Typical jobs include notifications, image processing, syncing with external systems and AI calls that take several seconds.

Questions, answered

It is retried a set number of times and then moved to a failed list for investigation.

Once they send email, call slow APIs or process files, a simple queue usually helps.

By the Stegnor team · Updated