Làm việc với WebSockets trên AWS

Tác giả: Ryan H. Lewis
Ngày xuất bản: 2021-01-05T00:00:00
Length: 30:47

Tóm tắt nội dung

Mô tả

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

Dịch Vào Lúc: 2025-08-27T16:19:49Z

Yêu cầu dịch (Một bản dịch khoảng 5 phút)

Phiên bản 3 (ổn định)

Tối ưu hóa cho một người nói. Phù hợp cho video chia sẻ kiến thức hoặc giảng dạy.

Video Đề Xuất