Laravel API uses Redis+Lua for request throttling
Laravel already has Redis support out of the box, so we can use the Redis::eval() method to run Lua scripts. 1. Store the Lua Script (rate_limit.lua) Put this in app/Services/Redis/rate_limit.lua:…
Laravel already has Redis support out of the box, so we can use the Redis::eval() method to run Lua scripts. 1. Store the Lua Script (rate_limit.lua) Put this in app/Services/Redis/rate_limit.lua:…