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