CGI: Ruby's Bare Metal
mikeperham.com
mikeperham.com
Being able to see that 'socket / file duality' is one the best observational powers a network-facing developer can have. It's also one of the biggest worries I have about HTTP 2.0.
If you really want to do something like this, do use FastCGI – and wrap it in Rack, too. That way, you'll get nice request and response objects.
Also the use of the phrase "bare metal" in reference to a ruby CGI script is pretty lulzy. I suppose thats the new normal. The embedded programmers of the world must feel pretty annoyed when people do that. I suppose they're too high on magic smoke to care.