Ravindra BagaleCourses & study guides मराठी Track your progress

Ravi Sir's Cards › AWS

When to use WebSocket APIs

What is a VPC: your own private network inside one AWS Region, example ThreeTierVpc 10.0.0.0/16.

When to use WebSocket APIs Chat and live boards need push, not one-shot request/response. WebSocket APIs keep a connection; Gateway routes $connect, $disconnect, messages. Create WebSocket API → integrate Lambda on routes → manage connection ids. Teacher pushes a quiz update to all open student connections.
When to use WebSocket APIs · Download PNG
Read card text

What this card says

Why do we need it?

Chat and live boards need push, not one-shot request/response.

What is it?

WebSocket APIs keep a connection; Gateway routes $connect, $disconnect, messages.

How to do it

Create WebSocket API → integrate Lambda on routes → manage connection ids.

$connect

Example

Teacher pushes a quiz update to all open student connections.

See all AWS revision cards