Deepakgarg2309 / que-4

0 stars 0 forks source link

que-4

ANS. 4C) If I were the API designer implementing this behavior in Java, I would use a queue to store the timestamps of each API call and apply a wait mechanism to enforce the rate limit. Additionally, I would include clear documentation on the rate-limiting policy, explaining the consequences of exceeding the limit and the associated penalty period.