Glossary

Message Queue

A buffer that decouples producers from consumers so work can be processed asynchronously and absorb bursts.

1 min read·4 sections
Open the interactive version → diagrams, practice & more

Definition

A buffer that decouples producers from consumers so work can be processed asynchronously and absorb bursts.

How it works

Producers append messages; consumers pull and process at their own pace, so a traffic spike fills the queue instead of crashing the workers (smoothing/back-pressure). Adds durability, retries and at-least-once delivery. Brokers like SQS and RabbitMQ delete on ack; Kafka keeps a replayable log. For low end-to-end latency, keep queues short and consumers scaled to drain faster than they fill.

Common questions

What is Message Queue?

A buffer that decouples producers from consumers so work can be processed asynchronously and absorb bursts.

How does Message Queue work?

Producers append messages; consumers pull and process at their own pace, so a traffic spike fills the queue instead of crashing the workers (smoothing/back-pressure). Adds durability, retries and at-least-once delivery. Brokers like SQS and RabbitMQ delete on ack; Kafka keeps a…

What is Message Queue used for in system design?

Producers append messages; consumers pull and process at their own pace, so a traffic spike fills the queue instead of crashing the workers (smoothing/back-pressure). Adds durability, retries and at-least-once delivery. Brokers like SQS and RabbitMQ delete on ack; Kafka keeps a…

Part of Glossary on SystemLore — system design explained with 148 deep topics, interactive diagrams, and a build-it-yourself game. Browse the glossary and "X vs Y" comparisons, or build this one →