3 ms·
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 perf
by RealNeatoDude 9y 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?
- graphememes 9y agoWas 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-limiting-f8a06cf7c94c https://blog.figma.com/an-alternative-approach-to-rate-limit...