Laravel API throttle issue in AWS auto-scaling architecture

Viewed 253

I have recently migrated the Laravel Application to AWS auto-scaling architecture. Now, I am facing an API throttle exception. Error is mentioned below. This throttle does not use to come when I had a single server. API throttle can be increased by editing kernal.php. But I want to know if the increasing throttle is the best solution for the auto-scaling architecture problems. Is there anything alternative or best solution for this?

NOTE: My problem, for now, is fixed after increasing throttle in Kernel.php.

exception: "Illuminate\Http\Exceptions\ThrottleRequestsException" file: "/var/www/html/test/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php" line: 124 message: "Too Many Attempts."

1 Answers

your solution is a correct answer but that's not where you should put it. you could use GrahamCampbell/Laravel-Throttle to change the throttle on API your calls.

Related