S3 client options improvement.
See original GitHub issueIs your feature request related to a problem? Please describe. The options used to instantiate the S3 client could be improved to have better resiliency under network errors.
Describe the feature you’d like
const s3 = new AWS.S3({
maxRetries: 3,
retryDelayOptions: {
customBackoff: retryCount => {
console.log(`retry count: ${retryCount}, waiting: 100ms`)
return 100 // in milliseconds
}
},
httpOptions: {
connectTimeout: 1000, // in milliseconds
timeout: 5000, // in milliseconds
},
});
Additional context We have been experiencing failures on the network communication between the Lambda and S3. Adding the previously suggested options improved the reliability of the service having less failures.
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Best practices design patterns: optimizing Amazon S3 ...
Amazon S3 performance optimization guidelines. ... you want fast data transport over long distances between a client and an S3 bucket, use Configuring...
Read more >AWS CLI S3 Configuration
These are the configuration values you can set specifically for the aws s3 ... It is a C-based S3 transfer client that can...
Read more >Basic usage patterns of the Amazon SDK for PHP Version 3
The Aws\Sdk class acts as a client factory and is used to manage shared configuration options across multiple clients. The same options that...
Read more >Optimize uploads of large files to Amazon S3 - AWS re:Post
Consider the following options for improving the performance of uploads and ... and secure transfers over long distances between your client and Amazon...
Read more >Optimize Your AWS S3 Performance
Let's talk about improving S3 performance more. Below are the ways available to achieve ... AWS has an amazing option called S3 Byte-Range...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@eortiz-tracktik thank you for this information. I have added this to our backlog items list.
This issue was closed because it has been inactive for 7 days since being marked as closing-soon.