Mutex or a channel for a counter hit about 50k times a second Concurrency
Single process, twelve goroutines all incrementing one int64, and a metrics endpoint that reads it once a second. I keep going back and forth between a around the field and a dedicated goroutine owning the value with an…