Domanda di colloquio di X

How would you implement a rate limiting system?