|
|
|
|
|
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? |
|
> https://blog.figma.com/an-alternative-approach-to-rate-limit...