frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

FastCGI: 30 years old and still the better protocol for reverse proxies

https://www.agwa.name/blog/post/fastcgi_is_the_better_protocol_for_reverse_proxies
55•agwa•1h ago

Comments

tombert•33m ago
Interesting.

Most of the stuff I've done for reverse proxies has been pretty straightforward and just using the stuff built into Nginx, but I have to admit that it wouldn't have even occurred to me to use FastCGI if I needed something more elaborate.

I used FastCGI a bit about ten years ago to "convert" some C++ code I wrote to work on the web, but admittedly I haven't used it much since then.

nostrademons•20m ago
This is quite an interesting article for its omissions.

I remember the great FastCGI vs. SCGI vs. HTTP wars: I was founding a Web2.0 startup right at the time these technologies were gaining adoption, and so was responsible for setting up the frontend stack. HTTP won because of simplicity: instead of needing to introduce another protocol into your stack, you can just use HTTP, which you already needed to handle at the gateway. Now all sorts of complex network topologies became trivial: you could introduce multiple levels of reverse proxies if you ran out of capacity; you could have servers that specialized in authentication or session management or SSL termination or DDoS filtering or all the other cross-cutting concerns without them needing to know their position in the request chain; and you could use the same application servers for development, with a direct HTTP connection, as you did in production, where they'd sit behind a reverse proxy that handled SSL and authentication and abuse detection.

It also helped that nginx was lots faster than most FastCGI/SCGI modules of the time, and more robust. I'd initially setup my startup's stack as HTTP -> Lighttpd -> FastCGI -> Django, but it was way slower than just using nginx.

The use of HTTP was basically the web equivalent of the End-to-End Principle [1] for TCP/IP. It's the idea that the network and its protocols should be agnostic to what's being transmitted, and all application logic should be in nodes of the network that filter and redirect packets accordingly. This has been a very powerful principle and shouldn't be discarded lightly.

The observation the article makes is that for security, it's often better to follow the Principle of Least Privilege [2] rather than blindly passing information along. Allowlist your communications to only what you expect, so that you aren't unwittingly contributing to a compromise elsewhere in the network.

And the article is highlighting - not explicitly, but it's there - the tension between these two principles. E2E gives you flexibility, but with flexibility comes the potential for someone to use that flexibility to cause harm. PoLP gives you security, but at the cost of inflexibility, where your system can only do what you designed it to do and cannot easily adapt to new requirements.

[1] https://en.wikipedia.org/wiki/End-to-end_principle

[2] https://en.wikipedia.org/wiki/Principle_of_least_privilege

ragall•4m ago
The end-to-end principle within a datacenter makes little sense, and as shown in the article, ends up enabling insecure behaviour.

Robot dogs with Musk and Zuckerberg heads roam around Berlin museum

https://apnews.com/article/germany-berlin-robot-dogs-beeple-bezos-digital-art-4a2be2a4a4490553ad6...
1•stared•2m ago•0 comments

Heads we win, tails you lose – AI detectors in education

https://gwolf.org/2026/04/heads-we-win-tails-you-lose-ai-detectors-in-education.html
1•speckx•2m ago•0 comments

Ramp's Sheets AI Exfiltrates Financials

https://www.promptarmor.com/resources/ramps-sheets-ai-exfiltrates-financials
1•takira•2m ago•0 comments

'The biggest decision yet': Jared Kaplan on allowing AI to train itself

https://www.theguardian.com/technology/ng-interactive/2025/dec/02/jared-kaplan-artificial-intelli...
1•reducesuffering•3m ago•0 comments

Our Eyes Originated in a 600M-Year-Old Cyclops

https://nautil.us/our-eyes-originated-in-a-600-million-year-old-cyclops-1280279
1•Brajeshwar•4m ago•0 comments

Copy Fail: 732 Bytes to Root on Every Major Linux Distributions

https://xint.io/blog/copy-fail-linux-distributions
1•fratellobigio•4m ago•0 comments

Portability Problems: Syncing Coding Agent State Across Machines

https://www.omnara.com/blog/sandbox-sync
1•cmsparks•4m ago•0 comments

Terry Pratchett's Discworld, by those who knew him

https://inews.co.uk/culture/books/inside-story-terry-pratchett-discworld-those-knew-him-4373899
1•fanf2•5m ago•0 comments

ByteSize is to newsletter what a warm fresh croissant is to a morning coffee

1•elsadek•5m ago•0 comments

Apple cofounder Ronald Wayne–whose would be worth $400B, has no regrets

https://fortune.com/2026/04/27/apple-cofounder-ronald-wayne-missed-billionaire-opportunity-no-reg...
1•paulpauper•5m ago•0 comments

Suffering Is a Compass

https://bigthink.com/series/full-interview/true-happiness-maturity/
1•lschueller•7m ago•0 comments

(One) Good AI Is Here

https://www.anildash.com/2026/04/28/one-good-ai-is-here/
1•SLHamlet•7m ago•0 comments

ByteSize is to newsletter what a warm fresh croissant is to a morning coffee

https://e-e.beehiiv.com/subscribe
1•elsadek•8m ago•0 comments

Upstate New York man pleads guilty to stealing more than $50M in Ponzi scheme

https://abcnews.com/US/wireStory/upstate-new-york-man-pleads-guilty-stealing-50m-132474486
1•paulpauper•8m ago•0 comments

Pleasant Passwords

https://lzon.ca/posts/tips/pleasant-passwords/
1•jpmitchell•9m ago•0 comments

Probably quit your job if you're asking Reddit

https://datastream.substack.com/p/you-should-probably-quit-your-job
2•racketracer•10m ago•1 comments

Show HN: Send your first Peppol e-invoice in 5 minutes (EU mandate live)

https://getpeppr.dev/
1•zerolooplabs•10m ago•0 comments

Cursor Browser Swarm: letting AI agents see, test, and check their own UI work

https://twitter.com/tejashaveridev/status/2049518417846190509
1•TejasHaveri•10m ago•0 comments

Show HN: Record tmux, analyze with Claude, and replay as searchable episodes

https://github.com/BerryBaronBonanza/selfmod
1•crackleware•11m ago•0 comments

Zero: Search Engine for AI Agents

https://www.zero.xyz/
1•aloukissas•14m ago•0 comments

The Artemis Photos You Haven't Seen

https://www.youtube.com/watch?v=LyZE9VWJjDA
1•jrussino•14m ago•0 comments

All in All, Another Brick in the Motte (2014)

https://slatestarcodex.com/2014/11/03/all-in-all-another-brick-in-the-motte/
1•stared•14m ago•0 comments

Brent Crude hits $119.56/barrel peak today

https://tradingeconomics.com/commodity/brent-crude-oil
1•walrus01•15m ago•0 comments

Verifying your age in a privacy preserving manner

https://adayinthelifeof.nl/2026/04/27/sd-jwt.html
1•jaytaph•15m ago•0 comments

MeshCore's Problem with Security

https://alainx277.com/posts/meshcores-problem-with-security/
2•alainx277•16m ago•0 comments

The Abstraction Fallacy: Why AI can simulate but not instantiate consciousness

https://deepmind.google/research/publications/231971/
24•joshus•17m ago•10 comments

CanvasKit (Skia/WASM) Documentation with Live Editable Demos

https://blog.form.dev/canvaskit/
1•Zibx•17m ago•0 comments

Sentry's Seer Agent lets developers debug production issues in natural language

https://thenewstack.io/sentrys-seer-agent-debug/
1•Brajeshwar•21m ago•0 comments

We've Been Warned

https://www.axios.com/2026/04/29/ai-models-speed-warning
1•adamfeldman•21m ago•0 comments

OpenAI has, in practice, abandoned its Stargate JV

https://www.ft.com/content/664a57e2-dffa-401e-81ad-55129ffb0e89
3•cwwc•23m ago•0 comments