Skip to content
dethlex

#go

2 notes

growing

Lock-free config reloads in Go with atomic.Pointer

When 100k RPS worth of goroutines read a lookup table that reloads every minute, RWMutex is the wrong tool. Build the new snapshot aside and swap one pointer.

2 min#go#concurrency#performance