Simple & Reliable Monitoring That Scales
Our Products for Metrics
Discover
Why Choose VictoriaMetrics
See Our Latest Blogs On All Things Observability
Inside Go's Unique Package: String Interning Simplified
When you’ve got several identical values in your code, you only store one copy. Instead of having several copies of the same thing, they all just point to this one version, which is a lot more efficient. It’s a process often called ‘interning’ in programming circles.
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.
Go sync.Cond, the Most Overlooked Sync Mechanism
In Go, sync.Cond is a synchronization primitive, though it’s not as commonly used as its siblings like sync.Mutex or sync.WaitGroup. That said, as a Go engineer, you don’t really want to find yourself reading through code that uses sync.Cond and not have a clue what’s going on.
Join the VictoriaMetrics Astronauts Community
Together, we’re building the friendliest, happiest and most satisfied open-source community in the universe, where every question gets answered - fast.
- Community Chats
- GitHub Issues
- Pull Requests Are Welcome
24h Support
Need Support?
Ground Control Is Here to Help With Support From The Core Team.
Ground Control is here to provide enhanced technical support, architectural and security guidance, help with adoption, integration and performance analytics.