DEV Community

Harihar Nautiyal
Harihar Nautiyal

Posted on

Why I chose Rust over Node.js for my Code Execution Backend

I’m building a coding platform (Unifwe) where users run untrusted code.

The Problem: Running user code is dangerous. You need sandboxing. Node.js is great, but heavy for spinning up thousands of isolated instances.

Why Rust? :
Memory safety (critical for sandboxes).
Performance (cold start times were 40000 ms faster).
WebAssembly potential.

The Architecture: Briefly explain how your Next.js frontend sends code to the Rust API.

It was hard to build, but the speed is worth it.

if you want to test the speed of the engine, you can try the challenges here: Demo course
Course demo

Top comments (0)