Hacker News new | ask | show | jobs
Show HN: Pushing a naive C++ web server implementation to 9k req/SEC (youtube.com)
2 points by TDiblik 18 days ago
Hey HN, I've spent the last few years doing web/desktop/IoT dev and I'm currently pivoting to low-latency/Quant. I built this as an exercise to see how far I could push a standard blocking C++23 socket architecture before the OS became the bottleneck. I covered zero-copy parsing, struct alignment, and Gather I/O.

I'm currently working on tearing this down for an io_uring/kqueue rewrite for Part 2.

All of the code can be found at GitHub (https://github.com/TDiblik/cpp-web-server) where I have a README documenting the process of optimizations and where I'll implement the mentioned enhancements in the future.

Would love any feedback from here and/or people in the industry!