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

AWS IoT


It may sound strange to use the Internet of Things as a service for websites, but AWS IoT is the only service offered by Amazon that supports WebSockets in a serverless model. Without WebSockets, we need to rely on polling. Polling is the process where the client needs to make repeated and frequent requests to the server, checking whether a new message is available, while WebSockets are used to create a link between the client and the server where the server can send the message directly to the client without the need of being constantly requested. WebSockets are used to implement the publish-subscribe pattern, which is more efficient than polling.

Besides AWS IoT, another candidate to implement real-time serverless notifications is Amazon Simple Queue Service (SQS). You can create a queue of messages that are destined for a single user and wait for this user to request SQS looking for new messages. While polling is necessary for this solution, Amazon offers a feature named long-polling...

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}