Simple Notification Service

  Amazon Web Services (AWS), Messaging

https://www.udemy.com/aws-certified-solutions-architect-associate/learn/v4/t/lecture/2050712?start=0

What is SNS

Simple Notification Service is a web service that makes it esy to set up, operate and send notifications from the cloud.  It provides developers with a highly scalable, flexible and cost effective capability to publish messages from an application and immediately deliver them to subscribers or other applications.

Besides pushing cloud notifications directly to mobile dievices, SNS can also deliter notifications by SMS text message or email, to SQS queues, or to any HTTP endpoint.  SNS notifications can also trigger Lambda functions.  When a message is published to an SNS topic that has a Lambda function subscribed to it, the Lambda function is invoked with the payload of the published message.  The Lambda function receives the message payload as an input parameter and can manipulate the information in the message, publish the message to other SNS topics, or send the message to other AWS services.

SNS allows you to group multiple recipients using topics.  A topic is an “access point” for allowing recipients to dynamically subscribe for identical copies of the same notification.  One topic can support delivers to multiple endpoint types.  For example, you can group together iOS, Android and SMS recipients.  When you publish once to a topc, SNS delivers appropriately formatted copies of your message to each subscriber.

SNS Protocols

  • HTTP
  • HTTPS
  • Email
  • Email-JSON
  • Amazon SQS
  • Application
  • AWS Lambda

Use Cases

  • Auto Scaling
  • Cloudwatch
    • Usage alerts
    • Billing Alarms

SNS Benefits

  • Instantaneous, push based delivery (no polling!)
  • Simple APIs and easy integration with applications
  • Flexible message delivery over multiple transport protocols.
  • Inexpensive, pay and you go model with no up front costs
  • Web based AWS Management console offers the simplicity of a point and click interface.

SNS vs SQS

  • Both Messaging Services
  • SNS=Push, SQS=Poll

Pricing

  • $0.50 / 1 million SNS Requests
  • $0.06 / 100,000 HTTP notifications
  • $0.75 / 100 SMS notifications
  • $2.00 per 100,000 Email notifications

 

 

LEAVE A COMMENT