Domanda di colloquio di Atlassian

Write a function that performs rate limiting logic

Risposta di colloquio

Anonimo

13 set 2020

I would use tocken approach: each X seconds token is being granted, calling a service consumes n tokens, then add a cap so you won't have too many tokens accumulated overnight for example and you're good to go!

1