The Lead Group interview question

Enforce API rate limiting at 1,000 requests per minute

Interview Answer

Anonymous

17 Sept 2020

1. Grab the IP address of the request 2. Get the value of key, key being ip address appended by colon and current minute 3. If value of key 1000 return a 400 error