News for hackers. Stuff that matters.
Re:Staying Out of TTL Hell by toast0 on Wednesday March 10, 2021 @01:59PM (#26414738)
Squid had a collapsed forwarding option that can help with the thundering herd. If multiple clients request the same uncached url, it can wait for the first origin request to finish and serve the response to all clients (if cachable). Of course, that backfires if the response was uncachable; so careful configuration is required.

Also works well to combine that with stale-while-revalidate. Yahoo had some squid patches with nifty ways to have a response invalidate other cached urls, but I don't think those made it to the outside world (at least I can't find them now).

There are no comments on this comment yet.