Skip to Content

Performance

S3 request rates per prefix, multipart upload, S3 Transfer Acceleration, and byte-range fetches.

Baseline performance

S3 scales automatically to very high request rates, with first-byte latency of about 100 to 200 ms.

  • An application can reach at least 3,500 PUT/COPY/POST/DELETE and 11,000 GET/HEAD requests per second per partitioned prefix in a bucket.
  • There's no limit to the number of prefixes in a bucket.
  • The prefix is everything between the bucket name and the object name. For example:
    • bucket/folder1/sub1/file → prefix /folder1/sub1/;
    • bucket/folder1/sub2/file → prefix /folder1/sub2/;
    • bucket/1/file → prefix /1/;
    • bucket/2/file → prefix /2/.
  • So spreading reads evenly across four prefixes allows four times the rate: at least 44,000 GET requests per second.
  • S3 adds capacity to a prefix gradually as traffic grows. Too many requests too fast get an HTTP 503 Slow Down error; retry with backoff.

Updated since the slides

The slides give 5,500 GET/HEAD requests per second per prefix (so 22,000 across four prefixes). The AWS documentation now says 11,000 per partitioned prefix. Writes are still 3,500.

Multipart upload

Multipart upload: a big file is split into parts that are uploaded in parallel, and S3 joins them into one object; a failed part can be retried on its own Multipart upload: a big file is split into parts that are uploaded in parallel, and S3 joins them into one object; a failed part can be retried on its own

Split a big file and upload the parts in parallel.

Multipart upload splits one large object into parts:

  1. The file is divided into parts (1 to 10,000 parts, each 5 MB to 5 GB, except the last).
  2. The parts upload in parallel, which speeds up the transfer and uses more of the available bandwidth.
  3. If one part fails, only that part is retried.
  4. When all parts are in, S3 joins them into one object.

It's recommended for files over 100 MB and required for files over 5 GB. The AWS CLI and SDKs use it automatically for large files.

Parts of uploads that never finish still cost money; a lifecycle rule can delete incomplete multipart uploads.

S3 Transfer Acceleration

Transfer Acceleration: a file uploaded in the USA goes over a short public internet hop to a nearby CloudFront edge location, then over the fast AWS private network to the bucket in Australia Transfer Acceleration: a file uploaded in the USA goes over a short public internet hop to a nearby CloudFront edge location, then over the fast AWS private network to the bucket in Australia

Enter the AWS network at the nearest edge.

S3 Transfer Acceleration speeds up transfers over long distances.

  1. The client sends the file to the nearest AWS edge location (the CloudFront network). That hop over the public internet is short.
  2. From the edge, the data travels over the AWS private network, which is faster and more reliable than the public internet, to the bucket in its Region.
  • It is turned on per bucket and uses the special endpoint bucket-name.s3-accelerate.amazonaws.com.
  • It works with multipart upload.
  • It costs extra per GB, and only when it actually speeds up the transfer.
  • The bucket name must not contain dots.

Byte-range fetches

A byte-range fetch asks for only part of an object, using the HTTP Range header.

  • Speed up downloads: request several byte ranges of the same object in parallel (part 1, part 2 … part N), like multipart upload in reverse.
  • Better resilience: if one range fails, retry only that range.
  • Read only part of a file: for example, request just the first bytes to read a file's header.

Real-world examples

  • A video platform uploads 20 GB master files with multipart upload, 100 MB parts at a time, in parallel.
  • A company in Brazil sends files to a bucket in Tokyo. Transfer Acceleration cuts upload time noticeably.
  • A log processor reads only the first kilobyte of each large file with a byte-range request, to check its format.
  • An analytics job gets 503 errors because all its keys share one prefix. Spreading keys across many prefixes fixes it.

Exam tips

  • "Upload files larger than 5 GB" → multipart upload (required). "Faster upload of large files" → multipart upload.
  • "Faster uploads from far away", "users around the world upload to one bucket" → S3 Transfer Acceleration.
  • "Download faster", "read only the beginning of a file" → byte-range fetches.
  • "Higher request rate" → spread objects across more prefixes.
  • "HTTP 503 Slow Down" → too many requests on one prefix; spread out and retry with backoff.

Common traps

  • "Transfer Acceleration uses a VPN or Direct Connect." It uses CloudFront edge locations and the AWS network.
  • "S3 request limits are per bucket." They're per prefix, and there's no limit on prefixes.
  • "Multipart upload is only for files over 5 GB." It's required there, but recommended from 100 MB.

Hands-on lab: multipart upload and acceleration

Goal: watch the CLI use multipart upload, and compare with Transfer Acceleration.

Costs money

A 200 MB test file stored briefly in S3 Standard costs less than a cent. Transfer Acceleration adds about $0.04 per GB, only when it's faster. Any Region works.

Upload a big file

In CloudShell (which has 1 GB of storage), create and upload a 200 MB file:

dd if=/dev/urandom of=big.bin bs=1M count=200
aws s3 cp big.bin s3://<your-bucket>/big.bin --debug 2>&1 | grep -c UploadPart

The count shows how many UploadPart calls the CLI made: it split the file into parts on its own (8 MB parts by default).

Turn on Transfer Acceleration

Bucket → Properties → Transfer acceleration → Edit → Enable. Upload again through the accelerated endpoint:

aws s3 cp big.bin s3://<your-bucket>/big2.bin --endpoint-url https://s3-accelerate.amazonaws.com

From CloudShell in the same Region you won't see a big difference: acceleration helps over long distances. AWS's speed comparison tool shows the effect from your own location.

Expected result: a large file uploaded in many parts, and acceleration turned on for the bucket.

Clean up: delete big.bin and big2.bin from the bucket and from CloudShell (rm big.bin), and turn off Transfer Acceleration.

AWS documentation

On this page

Open notes

Spotted a mistake?

These notes are open source. Suggest a fix, or star the repo if they helped you.

Suggest an edit

For AI agents: llms.txt · llms-full.txt