3 ms·
I respect the desire to work on low level language like C. Programmers should not be afraid of it. But that said, building a proper HTTP stack is not trivial.
by didip 10y ago
I respect the desire to work on low level language like C. Programmers should not be afraid of it.
But that said, building a proper HTTP stack is not trivial.
If you want to use C language, then why not create Nginx module?
Nginx already solved the hard problems:
* HTTP parser
* Distribute work via event loop on multiple workers
* Useful load balancing strategies (not as great as HAProxy, but i am satisfied with it)
* Serious effort in dealing with CVE
* Widely used and battle tested
Here's a fine guide on how to write Nginx module in C:
http://www.evanmiller.org/nginx-modules-guide.html http://www.evanmiller.org/nginx-modules-guide.html
- AdamJacobMuller 10y agohttps://kore.io/ https://kore.io/ is also a (very?) good C framework for this stuff. I don't know enough C to honestly evaluate that though.
- didip 10y agoThanks for sharing, I haven't heard about this framework.
- tptacek 10y agoI disagree, and think that programmers should be very wary of C.