Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is not possible to specify extra configurations like the timeout for AWS SDK Client #1213

Closed
eortiz-tracktik opened this issue Nov 15, 2021 · 2 comments

Comments

@eortiz-tracktik
Copy link
Contributor

We are using enqueue with the symfony bundle and snsqs as the DSN.

AWS service are very reliable but we don't want to be affected by any possible network issues between our App and SNS, so we want to define some timeout and connection_timeout to the AWS Sdk client what is possible using the configuration:
https://docs.aws.amazon.com/sdk-for-php/v3/developer-guide/guide_configuration.html#config-http

Right now is impossible to specify those values because even if they are passed down to:

  • \Enqueue\Sns\SnsConnectionFactory::establishConnection()
  • \Enqueue\Sqs\SqsConnectionFactory::establishConnection()

because the configuration used to initialise the AWS Sdk is defined on these methods and only takes some specified parameters from $this->config ignoring others that may be set.

@eortiz-tracktik eortiz-tracktik changed the title Is not possible to specify timeout for clients. Is not possible to specify extra configurations like the timeout for AWS SDK Client Nov 15, 2021
@makasim
Copy link
Member

makasim commented Nov 16, 2021

Does adding timeout to the config solve your issue ?

eortiz-tracktik added a commit to eortiz-tracktik/enqueue-dev that referenced this issue Nov 16, 2021
This changes allow to set in the AWS Sdk client the http configurations:
https://docs.aws.amazon.com/sdk-for-php/v3/developer-guide/guide_configuration.html#config-http

This will make possible to define custom `connect_timeout` and
`timeout` to fail fast when the network is not relaible.

Reported on php-enqueue#1213
@eortiz-tracktik
Copy link
Contributor Author

@makasim yes, something like this will allow for it #1216

eortiz-tracktik added a commit to eortiz-tracktik/enqueue-dev that referenced this issue Nov 16, 2021
This changes allow to set in the AWS Sdk client the http configurations:
https://docs.aws.amazon.com/sdk-for-php/v3/developer-guide/guide_configuration.html#config-http

This will make possible to define custom `connect_timeout` and
`timeout` to fail fast when the network is not relaible.

Reported on php-enqueue#1213
eortiz-tracktik added a commit to eortiz-tracktik/enqueue-dev that referenced this issue Nov 17, 2021
This changes allow to set in the AWS Sdk client the http configurations:
https://docs.aws.amazon.com/sdk-for-php/v3/developer-guide/guide_configuration.html#config-http

This will make possible to define custom `connect_timeout` and
`timeout` to fail fast when the network is not relaible.

Reported on php-enqueue#1213
eortiz-tracktik added a commit to eortiz-tracktik/enqueue-dev that referenced this issue Nov 17, 2021
This changes allow to set in the AWS Sdk client the http configurations:
https://docs.aws.amazon.com/sdk-for-php/v3/developer-guide/guide_configuration.html#config-http

This will make possible to define custom `connect_timeout` and
`timeout` to fail fast when the network is not relaible.

Reported on php-enqueue#1213
eortiz-tracktik added a commit to eortiz-tracktik/enqueue-dev that referenced this issue Nov 17, 2021
This changes allow to set in the AWS Sdk client the http configurations:
https://docs.aws.amazon.com/sdk-for-php/v3/developer-guide/guide_configuration.html#config-http

This will make possible to define custom `connect_timeout` and
`timeout` to fail fast when the network is not relaible.

Reported on php-enqueue#1213
eortiz-tracktik added a commit to eortiz-tracktik/enqueue-dev that referenced this issue Nov 18, 2021
This changes allow to set in the AWS Sdk client the http configurations:
https://docs.aws.amazon.com/sdk-for-php/v3/developer-guide/guide_configuration.html#config-http

This will make possible to define custom `connect_timeout` and
`timeout` to fail fast when the network is not relaible.

Reported on php-enqueue#1213
makasim pushed a commit to php-enqueue/sqs that referenced this issue Nov 19, 2021
This changes allow to set in the AWS Sdk client the http configurations:
https://docs.aws.amazon.com/sdk-for-php/v3/developer-guide/guide_configuration.html#config-http

This will make possible to define custom `connect_timeout` and
`timeout` to fail fast when the network is not relaible.

Reported on php-enqueue/enqueue-dev#1213
makasim pushed a commit to php-enqueue/sns that referenced this issue Nov 19, 2021
This changes allow to set in the AWS Sdk client the http configurations:
https://docs.aws.amazon.com/sdk-for-php/v3/developer-guide/guide_configuration.html#config-http

This will make possible to define custom `connect_timeout` and
`timeout` to fail fast when the network is not relaible.

Reported on php-enqueue/enqueue-dev#1213
php-merlin added a commit to php-merlin/equ-dev that referenced this issue Mar 21, 2024
This changes allow to set in the AWS Sdk client the http configurations:
https://docs.aws.amazon.com/sdk-for-php/v3/developer-guide/guide_configuration.html#config-http

This will make possible to define custom `connect_timeout` and
`timeout` to fail fast when the network is not relaible.

Reported on php-enqueue/enqueue-dev#1213
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants