Message Queue / Event Streaming
What is Message Queue / Event Streaming?
Message Queue / Event Streaming: Reliably pass messages between services. Queues deliver each message once (SQS). Event streams replay messages and fan out to many consumers (Kafka-like). (AWS: SQS (queue) + SNS (pub/sub) + Kinesis (streaming); GCP: Pub/Sub + Dataflow; Azure: Service Bus + Event Hub) Cloud messaging services move messages reliably between parts of a system. Queues, like AWS SQS, deliver each message to one consumer, which suits background jobs. Publish and subscribe services, like SNS or Google Pub/Sub, deliver one message to many subscribers. Streams, like Kafka or Kinesis, keep messages for a while so consumers can replay them.
Frequently asked questions about Message Queue / Event Streaming
How is Message Queue / Event Streaming used in practice?
The right choice depends on the pattern. Use a queue for work that should be done once. Use pub/sub when several systems need to react to the same event. Use a stream when you need ordering and the ability to reprocess history.
What should you keep in mind with Message Queue / Event Streaming?
Managed services remove the work of running brokers yourself. Pay attention to delivery guarantees: most deliver at least once, so consumers must handle duplicates gracefully.
At a glance
| Category | Cloud services |
|---|---|
| Explained by | Reinier de la Parra |
| Updated |