Settings

Theme

Show HN: Pushing a naive C++ web server implementation to 9k req/SEC

youtube.com

2 points by TDiblik 2 months ago · 0 comments · 1 min read

Reader

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!

No comments yet.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection