2024
Concurrent chat server (Erlang/OTP)
A concurrent multi-user chat server written in Erlang as an OTP application.
ErlangOTPDynamoDBDocker
GitHub ↗
Clients log in, create public and private rooms, send messages and whisper to each other. Rooms and messages are persisted in DynamoDB, and the whole thing deploys with Docker Compose. It was a technical exercise to explore OTP supervision trees and concurrent message passing.
Highlights
- OTP application with separate server and client processes (rebar3)
- Public and private rooms, invitations, and room destruction restricted to the owner
- Whispers (1:1) in addition to room broadcast
- DynamoDB persistence of rooms and messages
- Docker Compose deployment
What I learned
- OTP and supervision trees
- Concurrency and message passing
- Stateful distributed data