Agile Actors Interview Question

How would you add rate limiting to A REST API?