Prompt
What should I use for pub/sub and stream processing in AWS?
Latest observation
Oct 24, 2026
OpenAI APIWeb search: off
For AWS, the best choice depends on whether you want simple event fan-out or durable streaming + processing:
1) Pub/Sub: use Amazon SNS
Use SNS (Simple Notification Service) when you want:
- one message to go to many subscribers
- decoupled services
- notifications/event fan-out
- easy integration with SQS, Lambda, HTTP endpoints, email, etc.
Typical use cases:
- order-created event sent to billing, shipping, and email services
- alerts and notifications
- lightweight event distribution
2) Stream processing: use Amazon Kinesis
Use Kinesis Data Streams when you need:
- ordered event streams
- replayable data
- high-throughput ingestion
- consumers that process events independently
- near real-time processing
Typical use cases:
- clickstream analytics
- IoT telemetry
- log/event pipelines
- real-time dashboards and ETL
If you need managed SQL-like stream processing, consider:
- Kinesis Data Analytics for real-time processing with SQL/Flink
3) If you want message queues rather than pub/sub
Use Amazon SQS when you need:
- reliable queueing
- decoupling producers and consumers
- buffering work for workers
- at-least-once delivery
- simpler async processing
Common pattern:
- SNS → SQS for pub/sub with durable queueing per consumer
Quick rule of thumb
- Pub/sub: SNS
- Queue/work distribution: SQS
- Streaming/event log + replay: Kinesis Data Streams
- Real-time processing: Kinesis Data Analytics or stream consumers on Kinesis
Practical architecture patterns
- SNS + SQS: best for fan-out with reliability
- Kinesis + Lambda/consumer apps: best for stream processing
- EventBridge: great for application/event routing across AWS services, especially SaaS and microservices, but it’s more event bus than raw stream processing
If you want, I can also give you a decision table comparing SNS, SQS, Kinesis, and EventBridge.