AWS Messaging Services

Amazon SNS - Worldwide SMS

With Worldwide SMS feature, you can use SNS to deliver SMS (text) messages to 200+ countries, and you do not require recipients to explicitly opt in like in other cases.

You must obtain prior permission from recipients to send SMS messages to their phone numbers, where required by local law and regulations.

You can also mark your SMS messages as Transactional to optimize for reliable delivery (e.g. one-time passwords (OTP) or PINs), or you can mark it as Promotional to optimize for cost savings.

Amazon SNS - Integration and Comparisons with AWS Services

SNS can be used with other AWS services such as SQS, EC2 and S3.

For example, notifications can be used to orchestrate an order processing system running on EC2, where notifications sent over HTTP can trigger real-time processing in related components such as an inventory system or a shipping service. By integrating Amazon SNS with Amazon SQS, all notifications delivered are also persisted in an SQS queue where they are processed by an auditing application at a future time.

 

Amazon SNS Features - Security Features, Push Notifications, Direct Addressing, TTL

Will discuss about some of the features of SNS.Notes on Security is important for the exams.

 

SNS Security Features

  1. All API calls made to SNS are validated for the user’s AWS Id and the signature.

  2. Topics can only be created by users with valid AWS IDs who have signed up for SNS.

Amazon SNS - Delivery Formats and Transports for Receiving Notifications

Customers can select one the following transports as part of the subscription requests:

  1. “HTTP”, “HTTPS”

    1. Subscribers specify a URL as part of the subscription registration; notifications will be delivered through an HTTP POST to the specified URL.

  2. ”Email”, “Email-JSON”

Amazon SNS - Operations API Overview and Failures

SNS operations can be classified as owner operations, subscriber operations and publisher operations.

Owner operations

  1. CreateTopic

    1. Create a new topic.

  2. DeleteTopic

    1. Delete a previously created topic.

  3. ListTopics

[Lab] Amazon Simple Notification Service (SNS)

We will experiment with SNS. Java coding is optional.

 

Steps:

  1. Login and go to SNS Dashboard.

  2. Click Create New Topic.

    1. Provide a topic name (e.g. BuddyTopic) and Display name (e.g. BuddyTopic)

    2. Click ‘Create Topic’

    3. Note: Display name is mainly for SMS anc can be upto 10 characters only.

Amazon Simple Notification Service (SNS) Overview

Amazon Simple Notification Service (SNS) is a web service that makes it easy to set up, operate, and send notifications from the cloud. It provides developers with capability to publish messages from an application and immediately deliver them to subscribers or other applications.

Amazon SNS follows the “publish-subscribe” (pub-sub) messaging paradigm, with notifications being delivered to clients using a “push” mechanism that eliminates the need to periodically check or “poll” for new information and updates.

 

Amazon SQS Benefits & Special Use Cases

SQS Benefits Summary (from Amazon)

  1. Operational Efficiency - Eliminate Administrative Overhead

    1. AWS manages the ongoing operations and underlying infrastructure needed to reliability run and scale.

    2. Queues are dynamically created and scale automatically so you can build and grow applications quickly - and efficiently.

Amazon Simple Queue Service (SQS) Overview

Amazon Simple Queue Service (SQS) is a fully managed message queuing service. You can send, store, and receive messages between distributed software components at any volume, reliably. SQS helps to decouple, coordinate and scale microservices, distributed systems, and serverless applications in cloud. SQS was the first service on the AWS.