Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Building Serverless Web Applications

You're reading from  Building Serverless Web Applications

Product type Book
Published in Jul 2017
Publisher Packt
ISBN-13 9781787126473
Pages 354 pages
Edition 1st Edition
Languages
Concepts
Author (1):
Diego Zanon Diego Zanon
Profile icon Diego Zanon
Toc

Implementing serverless notifications


In the previous section, you learned about the AWS IoT SDK, we just haven't tested it yet. In this section, we will use it in the following two features of our serverless store:

  • Live comments in a product review page
  • Notifications after a payment has been accepted

The first feature is a type of a public notification, as it uses an IoT topic that all users can read. The second one is a private notification, so only one person and the Lambda backend are allowed to access the IoT topic to subscribe or publish messages. We will cover both of them to learn how to give proper access for each case.

Those two examples will illustrate how you can work with IoT to serve notifications, but it does not limit what you can do with it. For example, IoT can also be used for serverless multiplayer games. You could build an HTML5 game that could make requests to a Lambda backend to execute some logic (for example, find a room to play) and an IoT topic to exchange messages...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}