← All projects
Distributed Systems / Backend / Cloud Infrastructure / Full Stack

Hii-Coder

A distributed competitive coding platform engineered with dedicated microservices, event-driven orchestration via Kafka, secure sandboxed Docker code execution, and real-time WebSocket feedback.

JavaSpring BootReactTypeScriptDockerApache KafkaWebSocketsAWSTerraform
< 500 msExecution startup · from ~3 s
~70%Reported image-size reduction
100%Network & sandbox isolation
HII-CODER / EXECUTION PIPELINE
SubmissionCore API
Message queueApache Kafka
Docker sandboxIsolated workers
Result persistedExecution complete
ISOLATED SANDBOX< 500 ms startup

The problem

Running untrusted user code alongside core web APIs creates severe security risks, resource contention, and execution bottlenecks. During live coding contests and traffic bursts, querying central databases for problem definitions, hidden test cases, and user verification creates heavy read pressure. Furthermore, executing multi-case test suites without real-time feedback leaves users waiting blindly for verdicts while cold container startups degrade evaluation throughput.

The engineering approach

Architected a distributed microservices ecosystem decoupling core domain services from a high-performance judge and execution engine using Apache Kafka and shared domain contracts. To eliminate cross-service database contention during burst traffic, the execution service maintains synchronized local read snapshots populated by domain event streams. Untrusted code runs inside isolated Docker sandboxes configured with strict resource quotas, disabled networking, read-only filesystems, and bounded timeouts. Real-time WebSockets handle both live user presence tracking across coding problems and streaming incremental test-case progress directly to a multi-panel React IDE.

What’s inside

Challenges & trade-offs

Performance figures are project-reported results, not independently benchmarked measurements.

Repository link not yet providedLive demo