← Selected work06
Real-time Messaging App
Dating-style chat experience with WebSocket-driven messaging, presence, and persistence. Low-latency message delivery at scale.
- Role
- Full-stack developer
- Outcome
- Low-latency real-time messaging
- Stack
- Node.js · React · MongoDB · WebSockets
Topology
Problem
Product needed real-time chat with presence and reliable persistence — the kind of UX where every dropped message or a stale 'typing' indicator damages trust.
Approach
- /01Node.js WebSocket fanout layer with per-conversation rooms and presence heartbeats.
- /02MongoDB for message persistence with indexes tuned for inbox queries and pagination.
- /03Reconnect/replay logic on the client so a flaky network does not lose history.
Impact
- →Delivery latency stayed low even under concurrent conversations.
- →Reconnect storms (network changes, app backgrounding) no longer cause message loss.