Sofia - Distributed Music Bot

A Discord music bot built to stay stable when thousands of servers stream audio at the same time.

The problem

Previous open-source audio bots suffered from frequent memory leaks, voice socket dropouts, and heavy CPU spikes under simultaneous streaming across thousands of guild channels.

What I built

Engineered a clustered Node.js microservice architecture with sharded WebSocket gateways, dedicated audio worker threads, and Redis pub/sub state synchronization.

Results

4.2M+ Users · 6.7K+ Guilds · 99.9% Uptime

Stack

Node.js, WebSockets, Audio Streaming, Distributed Backend, GCP / AWS, Lavalink, Kazagumo

Contact: workbypranay@gmail.com · Beawar, Rajasthan, India