aws / aws-sdk-php-laravel

A Laravel 5+ (and 4) service provider for the AWS SDK for PHP
http://aws.amazon.com/sdkforphp/
Apache License 2.0
1.64k stars 242 forks source link

Does "aws-sdk-php-laravel" support retry mechanism to avoid throttling? #190

Closed SonalikaMishra closed 1 year ago

SonalikaMishra commented 3 years ago

Confirm by changing [ ] to [x] below:

Version of AWS SDK for PHP? Example: v3.133.6

Version of AWS SDK for PHP : v3.139.1 Version of AWS Service Provider for Laravel? v3.5.0

Version of Laravel (php artisan --version)? Laravel Framework Lumen (6.3.3) (Laravel Components ^6.0)

Version of PHP (php -v)? PHP 7.3.21 Describe the question We are currently using a lumen framework provided service layer on top of aws-sdk-php called aws-sdk-php-laravel. We are facing some throttling issue with ELB (describeTags).(AWS) Throttling (client): Rate exceeded - <ErrorResponse xmlns="http://elasticloadbalancing.amazonaws.com/ is there any way to configure service client for elb to use "retry" in our case? "aws-sdk-php-laravel" is it supports retry mechanism?

GrahamCampbell commented 3 years ago

Yes, the AWS SDK already backs off and retries requests that are rate limited.

SonalikaMishra commented 3 years ago

Could you please share documentation for this and how to configure it's service client for EC2 services?

yenfryherrerafeliz commented 1 year ago

Hi @SonalikaMishra - sorry for the delay on responding to this. If this is still an issue for you, you can find information about how the AWS SDK for PHP does retries and how to configure them, in the following documentation. You can also turn on debug logs by passing the parameter debug => true to the client config, and in those logs you can see the retries made for that request.

Thanks!

github-actions[bot] commented 1 year ago

This issue has not recieved a response in 1 week. If you want to keep this issue open, please just leave a comment below and auto-close will be canceled.