Get the latest tech news

Io_uring, kTLS and Rust for zero syscall HTTPS server


Around the turn of the century we started to get a bigger need for high capacity web servers. For example there was the C10k problem paper.

In the end the web server just puts stuff on the queue, and calls a library function that only does that syscall if the kernel actually has stopped busylooping. The request load will still not be perfectly balanced between the threads (and therefore cores), but I guess fixing that would have to be the topic of a future post. The code needs a lot of work, and there’s no guarantee that the TLS library (rustls) doesn’t do memory allocations during handshakes.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Rust

Rust

Photo of HTTPS

HTTPS

Photo of syscall HTTPS server

syscall HTTPS server

Related news:

News photo

The Core of Rust

News photo

Show HN: Typed-arrow – compile‑time Arrow schemas for Rust

News photo

Index 1.6B Keys with Automata and Rust (2015)