Tuesday, July 29, 2025

CGI web server apps: GoLang, Rust, C

When WWW and HTTP was first created, 30+ years ago,
the way to integrate web server apps with other tools was to "spawn" a new process each time with CGI interface. That was not very efficient, but was universal and simple. 

The alternative was to embed handling on HTTP/TCP sockets directly in the web server.
That is how most of web server apps work now.

But apparently due to Go efficient and compact compiled programs,
CGI can still be efficient, even now, same as was C/C++ a while ago.

Serving 200 million requests per day with a cgi-bin | Jake Gold

Jacob2161/cgi-bin @GitHub: GoLang


Serving a half billion requests per day with Rust + CGI | Jake Gold

strangely enough, C is still the fastest option!

the old is good again, in part thanks to CPU HW improvements






No comments: