Nea: A webserver that never allocates

Day 2 - Systems Programming (Thu) • 15:00 • Duration: 45m

Nea is a Roc platform for building web servers with some special characteristics: after initialization, its memory use is constant, no matter the amount of traffic.

The amount of memory used per-request (and therefore the number of concurrent requests) is fixed. This means that performance is very predictable and requests that exceed the memory budget can fail gracefully. Of course there are limitations too.

We’ll explore some Rust that is so unsafe even an unsafe block cannot handle it, writing async executors, using custom allocators, jumping up and down the stack with inline assembly, and how we can use low-level primitives to create rock- solid guarantees and high-quality user experiences.