Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes proposed ✍️
What
🤖 Generated by Copilot at 2b0a353
This pull request enhances the
sqs
library with a custom retry strategy for AWS SDK clients, based on the@smithy/util-retry
dependency. This improves the error handling and resilience of the library when dealing with network issues and throttling. It also adds some new dependencies for queue URL validation and message types.
🤖 Generated by Copilot at 2b0a353
Why
How
🤖 Generated by Copilot at 2b0a353
@smithy/util-retry
dependency tosqs
library to provide a configurable retry strategy for AWS SDK clients (link, link, link, link)psl
dependency tosqs
library to validate queue URLs (link, link)@crowd/types
dependency tosqs
library to define message payloads and attributes (link)@aws-sdk/middleware-retry
dependency fromsqs
library as it is replaced by@smithy/util-retry
and already included as a sub-dependency by AWS SDK clients (link, link)ConfiguredRetryStrategy
class from@smithy/util-retry
inclient.ts
and set it as theretryStrategy
option for the SQS client constructor (link, link)receiveMessage
,deleteMessage
,sendMessage
, andsendMessagesBulk
functions inclient.ts
to check for DNS lookup failures and retry the operations, and to increase the maximum number of retries from 5 to 10 (link, link, link, link)@aws-sdk/middleware-retry
sub-dependency topackage.json
files of@aws-sdk/client-sqs
,@aws-sdk/client-sso-oidc
,@aws-sdk/client-sso
, and@aws-sdk/client-sts
dependencies, as it is required by them (link, link, link, link)@smithy/service-error-classification
and@smithy/types
sub-dependencies topackage-lock.json
file ofsqs
library, as they are required by@smithy/util-retry
(link, link, link)Checklist ✅
Feature
,Improvement
, orBug
.