How would you implement a rate-limiting feature on Django REST APIs?
Instruction: Discuss the design and implementation of rate limiting to protect Django REST APIs from abuse or excessive use.
Context: Candidates need to show their understanding of API security and performance considerations by implementing rate limiting.
Updated
Official answer available
Read the opening below, then unlock the full answer and practical guidance.
For ordinary API usage policies, I would configure DRF throttle classes and rates, then choose a cache shared by all application workers...