In production
Mixa Lab — Music production platform
Marketplace connecting artists with audio engineers. I was responsible for the infrastructure and the real-time chat.
- Year
- 2025 — 2026
- Role
- Infrastructure and real time
- Stack
- Next.js · React · PostgreSQL · Prisma · Socket.IO · Stripe · Docker

Context
It connects artists who need a song mixed or mastered with audio engineers. Every commission runs through hiring, payment, delivery, revisions and rating, and the system splits the money. It's 45,000 lines and seven months with a team of five; my part was the infrastructure, the deployment and the real-time messaging.
The problem
An artist who has already paid can't be left waiting on an email: they need to talk to their engineer and watch the work progress as it happens. That calls for WebSockets, and there's the obstacle: Next.js gives you no access to its HTTP server, so there's nowhere to attach them.
The solution
I replaced Next's server with a custom Node one that exposes Socket.IO on the same port. The instance stays reachable from the process, so any route can write to the database and notify the room in a single operation. Then I moved the project to Docker to control startup and the order of migrations.
Technical decisions
- One socket per tab: the connection lives outside the hook, otherwise every component would open its own.
- Messages are persisted as well as sent live: real time is the fast path, not the source of truth.
- I moved the deployment to a multi-stage Docker build: migrations now run before the app accepts traffic.
- Audio is streamed in 64 KB chunks: these are ZIPs of tens of megabytes and reading them whole would take the process down.
Results
- The platform runs at mixalab.io with real payments through Stripe Connect.
- Per-project chat with typing indicator, read receipts and file sending.
- Reproducible deployment: a container that migrates and starts on its own.
Project screenshots
Click any image to enlarge it.