CodeArena
A distributed competitive programming platform built with Golang microservices, featuring a WebSocket matchmaking server and a gRPC + PostgreSQL Elo rating management engine.
Real-Time 1v1 Algorithmic Battles
CodeArena pairs developers in live 1-on-1 algorithmic coding duels. To keep matchmaking latency low and rating updates strictly consistent, the backend is decomposed into specialized Golang microservices.
The matchmaking service (codearena-ws) maintains persistent WebSocket connections and pairs players within compatible skill windows in real time.
gRPC Rating Service & Concurrent Rooms
Player ratings are managed by a dedicated Golang gRPC microservice (rating-management) backed by PostgreSQL. Match outcomes trigger strongly typed Protobuf RPC calls to recompute Elo deltas atomically.
Goroutine-per-room isolation ensures that ratusan concurrent coding duels execute state transitions and timer synchronization without lock contention.
Built for Low-Latency Competition
By combining Go's lightweight concurrency primitives with gRPC service boundaries, CodeArena delivers snappy real-time matchmaking and audit-grade rating persistence.




