SQS (Simple Queue Service) and SNS (Simple Notification Service) are AWS messaging services that enable decoupled, asynchronous communication between application components. SQS is a message queue (one-to-one processing); SNS is pub/sub (one-to-many broadcast).
SQS — message queues (decoupling, async processing)
SQS is a managed message QUEUE: producers send messages, consumers process them:
→ producer → [QUEUE] → consumer(s) process messages (at their own pace)
→ DECOUPLES components (producer doesn't wait for/depend on the consumer)
→ BUFFERS load (queue absorbs spikes; consumers process steadily)
→ RELIABLE (messages persist until processed; retries; dead-letter queues for failures)
→ SCALABLE (add more consumers to process faster)
→ Use for: async task processing, decoupling services, smoothing load spikes
