Message Queue
Category: infrastructure
A form of service-to-service communication that allows systems to process tasks asynchronously.
Queues are the "buffer." If an app needs to send 1,000 emails, it doesn't wait for the emails to send—it puts the jobs in a queue. An "email service" picks them up when it can. It keeps the user interface snappy even when the backend is buried in work.
Common Examples
- We use a message queue to manage our asynchronous insurance quoting, ensuring the UI remains instant while the backend grinds the math.
- The message queue architecture decouples our services, allowing them to scale at different rates based on their specific workload.