Dan Edwards
Back to all work

Real-time chat for thousands at once

Type
Infinite Red
Role
Staff software engineer
Stack
React Native / Next.js / Stream / TypeScript

Real-time chat on web and mobile inside an internal workforce app that connects managers with their teams. Built on Stream, for thousands of people using it at the same moment.

The problem

Chat only works if it feels instant. Messages arrive constantly from thousands of people at once, many users sit in a lot of conversations at the same time, and the interface has to keep up on web and mobile without slowing the rest of the app.

Decisions

It started as my build during a vendor proof of concept, where we compared chat providers. Stream won, and the work became a team effort. The messages themselves stream through Stream's SDK, and everything else syncs from our own API. Screens use list virtualization throughout, so people in many chats at once still get fast, smooth lists.

Result

Chat shipped for thousands of concurrent users and drove a 40% increase in engagement.