As the price of cloud computing continues to tumble we can do what was previously unthinkable. It wasn’t long ago that getting WordPress to scale to 10 million hits a day for $15 a month was front page hacker news material; but we can do even better.
Back in the good old days of client-server architectures you had one person sitting in front of a browser connecting directly to your server. So if you ever wanted to know who that person is all you needed to do was to take a look at the
REMOTE_ADDR of your requests.
I’ve run this site on Heroku for a while now but something has always bothered me, the default Apache install on the Cedar stack does not come with
mod_deflate forcing us to send everything sent to clients uncompressed. Now I get that bandwidth is cheap but CPU time with zlib is cheaper and there’s no reason to send any text over http uncompressed.
Luckily the Heroku repo that this site is running on has already been customized to dynamically inject new configs on boot. So now all we need it to load another module and configure it as part of the dyno bootstrap process.