question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

S3 client options improvement.

See original GitHub issue

Is 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:closed
  • Created 2 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
fisenkodvcommented, Jan 31, 2022

@eortiz-tracktik thank you for this information. I have added this to our backlog items list.

0reactions
github-actions[bot]commented, Aug 7, 2022

This issue was closed because it has been inactive for 7 days since being marked as closing-soon.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found