Skip to main content

Overview

The SNSTopic construct creates an Amazon SNS topic for pub/sub messaging. Use it to fan out events to multiple subscribers (Lambda, SQS, HTTP endpoints) from a single publish call.

Import

Basic Usage

Using the Messaging Factory

The recommended way to add SNS to a Fjall application is through the MessagingFactory:

Properties

Methods

Examples

Standard Topic

FIFO Topic

FIFO topics deliver messages in order and support deduplication:

Fan-Out to Multiple Queues

Combine SNS with SQS for fan-out patterns:

CloudFormation Outputs

Next Steps

Messaging Factory

Create messaging resources via the factory pattern

SQS Queue

Combine with SQS for fan-out patterns