[AWS] Amazon SNS

SNS is a fully managed pub/sub message delivery service hat enables you to decouple microservices, distributed systems, and serverless applications.

Simple Notification Service (SNS)

SNS can be used for event notification, notifying admins of system alerts (CloudWatch), mobile push (no polling) notification.

  • Messages (<= 256 KB) are sent to a topic and delivered to subscribers.
    • Typically, JSON key-value pairs
  • Resource policies define who can access a topic.
    • For some AWS services (EC2 or Lambda), IAM roles are used.

SNS Components

  • Topic: A configuration for SNS. Messages are sent to a topic.
  • Subscriber: Endpoints that receive a message for a topic (HTTP, Email, SQS, Lambda, Mobile push notification)
  • Publisher: An entity that sends messages to a topic (Application, S3, CloudWatch, CloudFormation)

SNS Benefits

  • SNS Can be used with the AWS Console, API, CLI, and multiple SDKs.

Use Cases

  • Using Amazon SNS topics, publisher systems can fan out messages to a large number of subscriber endpoints for parallel processing, including Amazon SQS queues, AWS Lambda functions, and HTTP/S webhooks.
  • Additionally, SNS can be used to fan out notifications to end users using mobile push, SMS, and email.

Leave a Comment

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s