Rest API - Rate Limiting and Throttling
Consider this pseudocode snippet for token bucket check:if tokens <= 0:
reject_request()
else:
tokens -= 1
allow_request()
What is the bug in this logic?
Consider this pseudocode snippet for token bucket check:if tokens <= 0:
reject_request()
else:
tokens -= 1
allow_request()
What is the bug in this logic?
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions