1 min read 34 words Updated Nov 30, 2026 Created Nov 30, 2026
#Go

The golang.org/x/sync/singleflight package suppresses duplicate concurrent function calls for the same key, running the work once and sharing the result with waiting callers

There is also: https://github.com/janos/singleflight

Useful for dealing with Thundering Herd problem