Agile Actors interview question

How would you add rate limiting to A REST API?