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:…
Docker packages in GitHub are stored in the GitHub Container Registry (GHCR), which works like Docker Hub but is linked directly to your GitHub repositories. Steps to Create & Publish…
Running Laravel in Docker in production is not only okay, it’s becoming very common. But there are some important considerations to make it safe, efficient, and maintainable. Why Docker for…
Uusing Docker in production is widely considered a best practice, but with some caveats. Why Docker is a Best Practice in Production 1. Consistency Across Environments 2. Portability 3. Scalability…
On GitHub, Docker packages (usually hosted in the GitHub Container Registry, GHCR) are prebuilt Docker images that you or a project’s maintainers push to GitHub. Instead of just sharing code,…