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.
Or read this on Hacker News