Hacker News new | ask | show | jobs
by RealNeatoDude 3110 days ago
Excellent article! One question though:

> A better approach is to use a “set-then-get” mindset, relying on atomic operators that implement locks in a very performant fashion, allowing you to quickly increment and check counter values without letting the atomic operations get in the way.

Can you elaborate on this? Why is it more performant? And what are the trade-offs vs. get-then-set?

1 comments

Was passing by and saw this, a better explanation and in-depth analysis can be found here:

> https://blog.figma.com/an-alternative-approach-to-rate-limit...