3 ms·
If you're worried about traffic spikes, stick your site behind a caching proxy like Varnish or Cloudflare. My main blog https://simonwillison.net/ https://simo
by simonw 3y ago
If you're worried about traffic spikes, stick your site behind a caching proxy like Varnish or Cloudflare.
My main blog https://simonwillison.net/ https://simonwillison.net/ runs as a Django+PostgreSQL app on Heroku behind Cloudflare, with a 15m cache TTL for every page.
This works perfectly. I survived a surprise Elon Musk tweet a few months ago which the server didn't even notice, because Cloudflare absorbed all the traffic: https://simonwillison.net/2023/Feb/17/analytics/ https://simonwillison.net/2023/Feb/17/analytics/
- frankwiles 3y agoSame, a bit of caching and the REVSYS blog survived being on the front page of Slashdot (back when that was a thing), Reddit and HN all at the same time. No Elon tweet for sure, but caching like Varnish, Cloudflare, Fastly etc go a LONG way.