Hacker News new | ask | show | jobs
by quangio 2746 days ago
It's great to see people still using C to make web servers !

But can you clarify what are the "state-of-the-art technologies and solutions?"

I just skim the project and think this is not a lot better in term of performance than other servers like Nginx or H2O. There is also Lwan[0], which uses epoll too and has a cool coroutine, router implementation (I implemented a framework for Kotlin/Native on top of it[1]).

Another framework having really fast and fancy technologies in it is Seastar[2]. I think implementing kernel bypass, AIO, DPSK stuff makes it the fastest web server around currently. May be you can try to push the boundary with those things, SPDK, aggressive polling, fast router...?

[0]: https://github.com/lpereira/lwan [1]: https://github.com/KwangIO/kwang [2]: https://github.com/scylladb/seastar

2 comments

If C based web servers float your boat, have you seen one written in asm? https://2ton.com.au/rwasa/
Currently, it's architecture is similar to modern nginx, while simplicity is the point that makes it faster. I'll surely, look at your links and ideas, as this is still highly WIP. If you want to help creating this, feel free to join! :)