You are viewing a free preview of this lesson.
Subscribe to unlock all 10 lessons in this course and every other course on LearningBro.
The SNS fan-out pattern is one of the most important architectural patterns in AWS event-driven systems. By combining SNS topics with SQS queues, you can broadcast a single event to multiple independent consumers, each processing the event at its own pace with its own retry logic and dead-letter queue.
Fan-out means taking a single input and distributing it to multiple outputs. In the context of messaging:
+——> [SQS: email-queue] ——> Email Service
|
Producer ——> [SNS Topic] ——> +——> [SQS: analytics-queue] ——> Analytics Service
|
+——> [SQS: inventory-queue] ——> Inventory Service
SNS pushes messages to subscribers immediately. If the subscriber is unavailable or slow, the message may be lost (for some subscriber types) or create backpressure. Adding SQS queues as subscribers provides:
Subscribe to continue reading
Get full access to this lesson and all 10 lessons in this course.