Technology explained ยท General educational reading
Room between arrival and action
A message queue holds information passed between software components. A sender adds a message; a receiver takes it for processing. The sender does not have to remain occupied while the receiver completes the task. This is one form of asynchronous communication.
A queue can absorb a temporary burst of incoming work. It does not create unlimited capacity: if messages arrive faster than they are processed for long enough, the backlog grows. Waiting time is therefore as important as the number of waiting messages.
Delivery needs a definition
Persistence, acknowledgement and retry rules affect what happens after an interruption. Some configurations can deliver a message again, so a receiver may need to recognize work it has already completed. Ordering also depends on how queues and workers are arranged.
When reading about a queue, ask what survives a restart, what confirms success and what happens to a task that repeatedly fails. Those questions reveal more than the simple promise that work can wait.
Further reading: IBM: What is a message queue?