In one of my previous projects, I ran into two problems. And this is not cache invalidation and naming things 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 & go-counter on Go and js-locker & js-counter on TypeScript. Comments are welcome.
![Cover image for Distributed locking & rate limiting](https://res.cloudinary.com/practicaldev/image/fetch/s--yuuAI7XE--/c_imagga_scale,f_auto,fl_progressive,h_420,q_auto,w_1000/https://thepracticaldev.s3.amazonaws.com/i/b21jt5b5sueqz93s4tsc.jpg)
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)