WebSockets is the best way to interact in real-time between your front-end and back-end. AWS provides a new WebSocket API through API Gateway, which is powerful and easy to set up. In this tutorial, we'll create a new WebSocket API, a Lambda function, and connect to it with a simple front-end client. Watch this video for more details!
Check out the code from this video: https://github.com/ryanmurakami/websockets-on-aws
Subscribe to my newsletter: https://ryanlewis.dev
Follow me on Twitter: https://www.twitter.com/ryanmurakami
Table of Contents:
0:00 Introduction
0:34 WebSockets in AWS
2:17 WebSocket API in API Gateway
2:57 WebSockets Demo Overview
3:35 Creating the Lambda Function
10:39 Creating the WebSocket API
14:13 Connecting the Front-end Client
18:19 Testing the WebSocket Connection
20:00 Responding to the Client
25:22 Configuring Lambda Permissions for WebSockets
29:07 Final thoughts
#aws #serverless #websockets #apigateway