1
0
Fork 0
mirror of https://github.com/archtechx/laravel-tips.git synced 2025-12-12 05:14:04 +00:00
laravel-tips/content/tips/laravels-ratelimiter-can-be-used-to-throttle-any-parts-of-your-code.md
Samuel Štancl bcc973cc4b Week 26/2022
2022-07-02 17:24:23 +02:00

587 B

title tweet_id thread_slug author_username images created_at slug
Laravel's RateLimiter can be used to throttle ANY parts of your code 1542863730194538496 weekly-thread-2022-26 mattkingshott
https://pbs.twimg.com/media/FWflzWuWYAAyvkB.jpg
2022-07-01T13:32:32+00:00 laravels-ratelimiter-can-be-used-to-throttle-any-parts-of-your-code

🔥 #Laravel Tip: Rate-limiting is not only for throttling entire requests. You can also use it to throttle methods or parts of your code, which can be really useful when you need to protect things against spikes e.g. the DB.