How would you design a rate limiter?

Technical