Back to Lessons

Amazon SQS SNS Messaging

April 5, 2026

Managed Messaging Services

Decouple microservices with queues and pub/sub messaging.

Messaging Services

SQS (Simple Queue Service):
Standard Queue - At-least-once, unlimited TPS
FIFO Queue - Exactly-once, 3K msg/sec
Dead Letter Queues (DLQ)
Visibility timeout

SNS (Simple Notification Service):
Fan-out (1 publisher, many subscribers)
Push notifications (APNS/GCM)
HTTP/S endpoints, SMS, Email

Integration:
Lambda, SQS, HTTP, CloudWatch alarms

Pricing

  • SQS: 1M requests free, $0.40/M
  • SNS: 1M publishes free, $0.50/M
  • Long polling (20s wait)