苹果测试工程师的日常
17:21 · 2026年1月14日 · 周三
#selected
https://victoriametrics.com/blog/go-singleflight/
VictoriaMetrics
Go Singleflight Melts in Your Code, Not in Your DB
What singleflight does is ensure that only one of those goroutines actually runs the operation, like getting the data from the database. It allows only one ‘in-flight’ (ongoing) operation for the same piece of data (known as a ‘key’) at any given moment.
Home
Powered by
BroadcastChannel
&
Sepia