I was asked to design a rate limiter.
The idea was easy and I implemented TokenBucket Algorithm.
Ask is to design a rate limitter for one single application not on the basis of IP addresess, just incoming requests.
The tough part is this:
Thought it was easy but I messed it up.