mardi 27 février 2018

Laravel API rate limit is per hour not per minute

Route rate limiting (throttling) was added in 5.2.

Docs were only really added in 5.6: Laravel 5.6 Routing Docs

The docs seem to say that it's specified number of requests,number of minutes

The throttle middleware accepts two parameters that determine the maximum number of requests that can be made in a given number of minutes.

This answer Disable rate limiter in Laravel and this blog API rate limiting in Laravel 5.2 then pointed out it's number of requests per minute,number of minutes lockout

Through experimenting with this (in Laravel 5.2), and logging when we get rate-limited, it seems to be per hour, not per minute. So: number of requests per hour,number of minutes lockout

Has anybody else ever had issues with this?



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2FBlJIQ
via IFTTT

Aucun commentaire:

Enregistrer un commentaire