Amazon SNS : Engage Your Customers

Updated 6 February 2025

Amazon SNS is a web service that coordinates and manages the delivery of messages to subscribing endpoints or clients.

There are two types of clients in Amazon SNS: Publishers & Subscribers.

A publisher sends messages to topics that they have created or to topics they have permission to publish.

Instead of including a specific destination address in each message, a publisher sends a message to the topic.

Amazon SNS matches the topic to a list of subscribers who have subscribed to that topic and delivers the message to each of those subscribers.

There are the following types of scenarios in which we need to notify our clients:-

Applications and System Alerts

These are simple notifications, triggered by a predefined threshold and sent to specified users via mail or SMS.

Many cases require immediate notifications, such as changes to your AWS scaling group or when disk usage exceeds a threshold.

Push Emails and Text Messaging

These are the simplest ways to transmit messages to individuals or groups.

For example, you could use Amazon SNS to push targeted headlines, including exciting offers and discounts corresponding to your application, to the subscribers.

Upon receiving the mail or sms, interested readers can choose to revert you for the same.

Fanout in Amazon SNS

The “fanout” scenario occurs when an Amazon SNS message is sent to a topic, which then replicates and pushes the message to multiple Amazon SQS queues, HTTP endpoints, or email addresses.

For example, you could develop an application that sends a message to an SNS topic each time someone places an order for a product.

Then, amazon SQS queues that are subscribed to those topics would identically receive notification for the new order.

One EC2 instance can process the order, while the other analyzes it as a data warehouse.

Mobile Push Notifications

Mobile push notifications enable you to send notifications directly to mobile applications.

You can send mobile notifications with a link to download and install the update when it’s available.

  • Mobile push notifications engage customers when your app is currently not active.
  • Users opt-in to receive them.
  • Delivered to a specific application on a specific device.
  • Short messages: read, ignore, or acknowledge to launch the app.

How does Amazon SNS work?

From a developer’s perspective, when you send a mobile notification, you address that message to a particular app on a specific device.

The message is then sent directly, so the user doesn’t have to check for it, and the mobile app doesn’t have to pull it; instead, it arrives quickly and pops up on the user’s screen.

To maintain this scenario, each mobile device uses a platform service that uses a persistent connection to send messages.

As a developer, when you address a message to a device, you don’t send it directly to the device. Instead, you send the notification to a platform service, which then delivers it to the device.

Hence, you don’t have to maintain hundreds or millions of simultaneous connections and you don’t need to hold on to messages to deliver them when the device is off.

To implement this scenario, developers manage tokens for each device and must proactively swap or disable them based on the feedback

This platform service would require you to maintain the list of all the tokens of all the devices you haven’t authorized to send mobile notifications to and when the device is disabled.

For example, if a user deletes your app or changes their device token, developers must update their databases to correctly address the list of allowed devices.

IN CASE OF ANY QUERY, PLEASE CONTACT US

Category(s) Uncategorized
author
. . .

Leave a Comment

Your email address will not be published. Required fields are marked*


Be the first to comment.

Start a Project




    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home