A high-performance distributed code execution and evaluation platform built with Node.js, Docker, Redis, and MongoDB.
Codigo is a secure and scalable online judge system designed to execute untrusted user code inside isolated Docker containers.
The platform supports automated evaluation pipelines, caching, and concurrent execution while maintaining strict resource isolation.
- β‘ Distributed code execution pipeline
- π³ Secure sandboxing using Docker containers
- π¦ Redis-powered caching for faster responses
- π k6 load-tested performance benchmarking
- π CPU & memory restricted execution environments
- π§ͺ Supports 50+ test cases per submission
- π§Ή Automatic cleanup of containers and processes
- π RESTful API architecture
- Node.js
- Express.js
- Docker
- Redis
- k6
- MongoDB
- Reduced API latency by 55%
- from 86ms β 38ms
- Maintained stable throughput of:
- 47 requests/sec
- under 50 virtual users
- Sandboxed execution using isolated Docker containers
- Resource throttling with CPU & Memory limits
- Prevention of host machine exhaustion
- Automated cleanup system to avoid zombie containers
Client β API Gateway β Queue/Worker β Docker Sandbox β Evaluation Engine β Result Service