News for hackers. Stuff that matters.
Re:Building a Blog in Django by simonw on Tuesday September 12, 2023 @01:11PM (#37484389)
If you're worried about traffic spikes, stick your site behind a caching proxy like Varnish or Cloudflare.

My main blog 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/

Re:Building a Blog in Django by frankwiles on Tuesday September 12, 2023 @10:54PM (#37491669)
Same, 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.