brunocalza / sharedcounter

Various implementations of a go-routine safe counter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Shared Counter Implementations

  • Not Safe Counter
  • Mutex Counter
  • Channel Counter
  • Atomic Counter
  • Compare and Swap Counter
  • Compare and Swap Float Counter

This is a result out of my curiosity on trying to find out multiple implementations of a shared counter. Eventually, I came across the talk Prometheus: Designing and Implementing a Modern Monitoring Solution in Go that was very influential on some implementations.

About

Various implementations of a go-routine safe counter


Languages

Language:Go 100.0%