A fully serverless real-time chat application built on AWS using WebSockets. Messages are instantly broadcast to all connected clients without any servers to manage.
- AWS API Gateway — WebSocket connections
- AWS Lambda — Python backend logic
- Amazon DynamoDB — stores connections and messages
- Real-time messaging via WebSockets
- Multiple chat channels
- Custom nicknames
- Fully serverless — no servers to manage
- AWS Account
- AWS CLI configured
- AWS SAM CLI installed
- Python 3.x
git clone https://github.com/YOUR_USERNAME/serverless-websocket-chat
cd serverless-websocket-chat
sam build
sam deploy --guidedConnect using wscat:
./node_modules/.bin/wscat -c wss://YOUR_ENDPOINTCommands:
/name John— set your nickname/channel random— switch channel/help— list commands
sam deleteMIT-0