Engineering

Scaling Realtime Applications with WebSockets

Nov 10, 2025
Alex Rivera
6 min read

Building a realtime engine that scales to millions of concurrent connections is no easy feat. Here's how we did it using MySQL binlogs and Go.

The Architecture

We use a distributed system of WebSocket servers that subscribe to MySQL binary logs. When a change occurs in the database, it's captured, filtered, and pushed to the relevant clients.

Challenges

One of the biggest challenges was handling the sheer volume of events. We solved this by implementing a custom event bus that partitions events based on table and row IDs.

Conclusion

Our new realtime engine is now available in beta. Give it a try and let us know what you think!

Share this article