SNS – AWS Developer Certified Exam Notes

  • Simple Notification Service, it’s a web service that makes it easy to set up, operate, and send notifications from the cloud
  • It provides developers with a highly scalable, flexible, and cost-effective capacity to publish messages from an application and immediately deliver them to subscribers or other applications
  • Amazon SNS follows the “Publish-Subscribe” messaging paradigm, with notifications being delivered to clients using a”push” mechanism that eliminates the need to periodically check or “poll” for new notifications
  • To prevent messages from being lost, all messages published to Amazon SNS are stored redundantly across multiple availability zones
  • 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 deliveries to multiple endpoint types — for example, you can group together iOS, Android and SMS recipients. When you publish once to a topic, SNS delivers appropriately formatted copies of your message to each subscriber
  • SNS Pricing:
    • Users pat 0.50$ per 1 million Amazon SNS requests
    • 0.06$ per 100000 Notification deliveries over HTTP
    • 0.75$ per 100 Notification deliveries over SMS
    • 2.00$ per 100000 Notification deliveries over Email
  • A subscriber has the ability to unsubscribe from a topic
  • SNS Used Protocols:
    • HTTP, HTTPS, Email, Email-JSON, Amazon SQS, Application, AWS Lambda, SMS
  • With Amazon SNS, there is no minimum fee and you pay only for what you use. Users pay $0.50 per 1 million Amazon SNS Requests, $0.06 per 100,000 notification deliveries over HTTP, and $2.00 per 100,000 notification deliveries over email
  • Topic names must be unique within an AWS account. After you delete a topic, you can reuse the topic name
  • Topic ARN which will include the service name (SNS), region, AWS ID of the user and the topic name:
  • A topic can support subscriptions and notification deliveries over multiple transports.
  • Amazon SNS DOES NOT currently support forwarding messages to Amazon SQS FIFO queues
  • Format of structured notification message sent by SNS:
  • The AddPermission and RemovePermission APIs provide a simple interface for developers to add and remove permissions for a topic.
  • Amazon SNS makes it easy for users with and without AWS IDs to receive notifications
  • Token included in the confirmation message sent to end-points on a subscription request are valid for 3 days.
  • All notification messages will contain a single published message.
  • The Amazon SNS service will attempt to deliver messages from the publisher in the order they were published into the topic. However, network issues could potentially result in out-of-order messages at the subscriber end. NO GUARRANTEE
  • Once a message has been successfully published to a topic, it cannot be recalled.
  • SMS messages that are of high priority to your business should be marked as Transactional. This ensures that messages such as those that contain one-time passwords (OTP) or PINs get delivered over routes with the highest delivery reliability
  • You can now mark your SMS messages as Transactional to optimize for reliable delivery, or you can mark it as Promotional to optimize for cost savings
  • You can reserve a dedicated short code to ensure that all SMS messages that you send through Amazon SNS have a persistent short code
  • Amazon SNS uses a pool of long codes or short codes to send SMS notifications
  • Amazon SNS ensures that the messages sent from an AWS account to a specific phone number, always come from the same long code or short code. This is called “Sticky Sender ID”.
  • To opt out, the recipient must reply to the same long code or short code that Amazon SNS used to deliver the message “UNSUBSCRIBE, …”
  • The SNS console displays the list of opted out numbers for your account
  • Opt-outs do not unsubscribe a number from an Amazon SNS topic, but rather disable the subscription
  • You may be charged for failed deliveries if the destination carrier reports back that you attempted to send messages to an invalid phone number
  • You may be charged for failed deliveries if the destination carrier reports back that you attempted to send messages to an invalid phone number
  • Each SMS message can contain up to 140 bytes
  • Raw message delivery can be enabled by setting the “RawMessageDelivery” property on the subscriptions
  • SNS Mobile Push lets you use Simple Notification Service (SNS) to deliver push notifications to Apple, Google, Fire OS, and Windows devices
  • To track the success or failure status of message deliveries, you need to activate the Delivery Status feature of Amazon SNS
  • Amazon SNS messages do not publish the source and destination
  • Using SNS JSON message generator, you can choose the appropriate endpoint types and edit the generated code to send different test to the different endpoint types
  • There is no source is SNS message
  • The CreatePlatformPoint API creates an endpoint for a device and mobile app on one of the supported push notification services, such as GCM and APNS
  • SubjectID is not part of SNS message body :
  • For Amazon SNS to send notification messages to mobile endpoints, whether it is direct or with subscriptions to a topic, you first need to register the app with AWS. To register your mobile app with AWS, enter a name to represent your app, select the platform that will be supported, and provide your credentials for the notification service platform. After the app is registred with AWS, the next step is to create an endpoint for the app and mobile device
  • Amazon SNS guarantees that each message is delivered to Amazon SQS at least once
  • In SNS, the max number of characters for a topic name is 256
  • SNS API: CreateTopic, DeleteTopic, ListTopics, ListSubscriptionByTopic, SetTopicAttributes, GetTopicAttributes, AddPermission, RemovePermission

Leave a Reply

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

You are commenting using your 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