Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Browser notification using AWS SNS [closed]

I am new to Amazon services. I already used FIREBASE and PUBNUB for browser notification in other applications. I would like to build browser notification like FIREBASE or PUBNUB using AWS SNS.

For web application front end I am using ReactJs and back-end Nodejs lambda functions.

Is it possible to use SNS for Browser or Web application Notification? Please advice.

Thanks

like image 856
user3541485 Avatar asked Apr 11 '18 09:04

user3541485


People also ask

What type of notification mechanism does Amazon SNS use?

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.

Is SNS real time?

Similar to Amazon Kinesis, Amazon SNS is designed for near real-time event processing. It decouples the input from the individual processing nodes. But, unlike Kinesis, SNS is designed to trigger multiple actions based on one event.

How do I disable SNS topic in AWS?

To delete an Amazon SNS subscription and topic using the AWS Management Console. Sign in to the Amazon SNS console . In the left navigation pane, choose Subscriptions. On the Subscriptions page, select a subscription with a Status of Confirmed, and then choose Delete.

Which AWS service can be used to send automated notifications to HTTP endpoints?

You can use Amazon SNS to send notification messages to one or more HTTP or HTTPS endpoints. When you subscribe an endpoint to a topic, you can publish a notification to the topic and Amazon SNS sends an HTTP POST request delivering the contents of the notification to the subscribed endpoint.


1 Answers

You can use AWS IOT Websockets or AWS AppSync for This. Following articles will give you an overview of using these technologies.

  • Realtime Serverless Web Apps with AWS to get an overview of the usage.
  • Receiving AWS IoT messages in your browser using websockets to understand in using AWS IOT for Notifications.
  • Building a JavaScript Client App which is useful as a tutorial for AppSync.

Out of AWS AppSync and AWS IOT, I would recommend AppSync due to its support for JavaScript Frameworks.

Note: However, with AWS SNS, this is not possible in browsers (But possible for mobile applications with Push Notifications).

like image 50
Ashan Avatar answered Sep 28 '22 17:09

Ashan