Rest API - Rate Limiting and Throttling
Consider this pseudo-code for a fixed window rate limiter with a limit of 3 requests per 10 seconds:
window_size = 10
limit = 3
requests = [timestamp1, timestamp2, timestamp3, timestamp4]
If the first three requests happen at seconds 1, 5, and 9, and the fourth at second 11, which requests are allowed?
