Nginx Rate Limiting in Action
Rate limiting an API is required for several reasons. A single service serves calls from many clients. We want to make sure that the calls from clients are served fairly and one client doesn’t consume all the app resources. Too many requests in a short period of time can overwhelm the service by consuming too much CPU or memory. Another reason why we might want to limit a client is when they used up all their allocated credits. ...