News for hackers. Stuff that matters.
Re:OpenBSD, C, httpd and SQLite – Web App stack by sedachv on Saturday June 09, 2018 @12:23PM (#17273712)
Great observation. And in fact "serverless" is the way that Unix network servers used to work: https://en.wikipedia.org/wiki/Inetd

CGI is also the way the web used to work. Spawning processes has only gotten faster since then. The entire "process spawning doesn't scale to the modern web" argument is completely and totally bogus. Today, spawning a process in Linux is only 10-20 microseconds slower than creating a thread: http://www.bitsnbites.eu/benchmarking-os-primitives/

The performance problems are elsewhere.

Re:OpenBSD, C, httpd and SQLite – Web App stack by sfifs on Saturday June 09, 2018 @10:16PM (#17276069)
What you are missing here is the fact that I/O is orders of magnitude slower than processor. Most of the time in servers is spent waiting for I/O and multiplexing green threads on processes without context switches while some execution paths are waiting on I/O gives you far higher capacity on the same hardware. See the other comment thread on GP comment.