Message Queue
Definition
A system that allows applications to communicate by sending messages to a waiting line. Like a post office where letters wait to be picked up.
Use Cases
- Netflix: Video streaming and processing — Netflix uses message queues to manage the processing of video files. When a new video is uploaded, it is placed in a queue for encoding into multiple formats. (Improved scalability and efficiency in processing large volumes of video content, leading to faster availability for streaming.)
Provider Equivalents
- AWS: Amazon SQS
- Azure: Azure Queue Storage
- GCP: Google Cloud Pub/Sub
- OCI: OCI Queue
Frequently Asked Questions
- What's the difference between Message Queue and Event Streaming?
- Message Queue is used for point-to-point communication where each message is processed by a single consumer. Event Streaming involves broadcasting messages to multiple consumers.
- When should I use Message Queue?
- Use Message Queue when you need to decouple components of your application, allowing them to communicate asynchronously and handle tasks independently.
- How much does Message Queue cost?
- Costs vary by provider and usage. Typically, pricing is based on the number of requests, data transfer, and message retention time. Check each provider's pricing page for details.
Category: communication
Difficulty: intermediate
Related Terms
See Also