Message Queue
ELI5 — The Vibe Check
A Message Queue is a waiting room for tasks. Producers drop tasks in the queue, consumers pick them up and process them one at a time. If the consumer is busy, messages wait patiently. This prevents your app from being overwhelmed by a sudden spike of work.
Real Talk
A Message Queue is a form of asynchronous service-to-service communication. Messages are stored in a queue until processed and deleted by a consumer. Guarantees delivery, buffers load spikes, and decouples producers from consumers. Popular implementations: RabbitMQ, AWS SQS, Redis Streams.
When You'll Hear This
"Put the image resizing in a message queue so it doesn't block the HTTP response." / "The queue absorbs traffic spikes without dropping requests."
Related Terms
Bulkhead Pattern
The bulkhead pattern isolates different parts of your system so one failure doesn't sink everything. Named after ship bulkheads that contain flooding.
Event-Driven Architecture
Event-Driven Architecture is like a gossip network. When something happens (order placed!), it broadcasts the news.
Message Broker
A Message Broker is the post office of your microservices world.
Pub/Sub (Pub/Sub)
Pub/Sub is like a newspaper service. Publishers write articles and drop them off.