Serving 200 million requests per day with a cgi-bin

AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.

Why it matters

Web developers can stop treating process-per-request CGI as a performance dead-end: modern hardware plus fast-starting languages like Go make it viable for large-scale workloads.

Read this as

A developer named Jake Gold tested the oldest way of running websites, a system from the 1990s called CGI, which starts a fresh program for every visitor. On a regular 16-thread home computer, it handled over 2,400 requests per second, more than 200 million per day. Because modern computers are so much faster, an approach abandoned decades ago now works surprisingly well.

Jake Gold benchmarked CGI, the 1990s web approach where every request spawns a new process, and got 2,400+ requests per second (200M+/day) on a modest 16-thread AMD 3700X. The implication is that process-per-request architectures, long assumed too slow, are viable for many workloads, reducing the need for in-memory application servers. Practical significance for production cost or risk decisions is unproven; this was a synthetic test, not a deployed service.

Jake Gold ran a Go + SQLite program as CGI, one process spawned per HTTP request, on a 16-thread AMD Ryzen 3700X, sustaining 2,400+ requests/second (200M+/day). He credits fast process startup in Go and Rust versus slow-starting 1990s Perl/Python/Java scripts, and notes per-request processes naturally parallelise across many cores. No real-world production deployment, latency tail, or memory-pressure data is given.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

CGI Go SQLite FastCGI ripgrep Datasette AMD 3700X

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading