/aws-sdk-v3-s3-client-parallel-or-sequence-execution

Example of how to use the AWS SDK v3 S3 client to upload files to S3 in parallel or sequence execution.

Primary LanguageJavaScript

Parallel or Sequence exectution of AWS SDK v3 S3 Client

Example of how to use the AWS SDK v3 S3 client to upload files to S3 in parallel or sequence execution.

Requirements

  • Run npm install to install the dependencies.
  • Set the BUCKET environment variable to a random bucket name.
  • Run node bucket-create.js to create the bucket.
  • After you run this experiment you can run node bucket-delete.js to delete the bucket.

Parallel

Using Promise.all to upload files in parallel.

Screencast.from.22-03-23.09.55.44.webm

Sequence

Using while loop to upload files in parallel.