SNS

Solution Architect Associate

Developer Associate

Security Specialty

  • Cost effective way to publish messages from an application and send messages
  • Commonly used when auto scaling or failures occur
  • Can push notifications to Apple, Google, FireOS, and Windows
  • Instantaneous Push messaging system, unlike SQS which is pull only
  • Allows you to group multiple recipients of a notification using topics
  • One topic can group deliveries to multiple delivery types
  • To prevent message lost, messages are stored redundantly across AZs
  • You can manually create subscriptions to topics via the AWS console. You typically have to confirm subscriptions to avoid spamming
  • Pay as you go model, no up front costs
    • $0.50 for first million notifications, then pricing goes by delivery type
  • Supports
    • HTTP, HTTPS, Email, Email-JSON, SQS, Application, Lambda

Important Settings

  • Subscribers: Kinesis Data Firehose, SQS, Lambda, Email, HTTP(s), SMS, other platform application endpoints
  • Message Size: Messages can be up to 256 KB of text in any format
  • Support for Dead Letter Queues
  • FIFO and Standard SNS, but FIFO only supports SQS. So you usually use Standard
  • Encryption: Encrypted in transit by default, can be configured to support encryption at rest by choosing a KMS key
  • Access Policy: A resource policy can be applied similar to S3