Architecture
Request Coalescing: Stop Cache Stampedes with Singleflight
How request coalescing collapses concurrent cache misses into a single database query, protecting your backend from catastrophic cache stampedes.
Topic
A collection of essays to explore, one idea at a time.
How request coalescing collapses concurrent cache misses into a single database query, protecting your backend from catastrophic cache stampedes.
Learn how request coalescing with Go's singleflight stops cache stampedes, plus practical fixes for context cancellation and pointer data races.