# Distributed locking & rate limiting

In one of my previous projects, I ran into two problems. And this is not  [cache invalidation and naming things](https://martinfowler.com/bliki/TwoHardThings.html) as you might think :). This is distributed locking and distributed rate limiting. In my opinion, I did a pretty good job solving these two. And now after some simplifying and reshaping I think the solutions are ready for publishing and here they are: [go-locker](https://github.com/da440dil/go-locker) &  [go-counter](https://github.com/da440dil/go-counter)   on  [Go](https://golang.org/)  and [js-locker](https://github.com/da440dil/js-locker) &  [js-counter](https://github.com/da440dil/js-counter)  on  [TypeScript](http://www.typescriptlang.org/). Comments are welcome.
