Lesson 7 of 7 Amazon S3

Scaling S3 Request Rates and Transfers

This lesson explains how Amazon S3 performance works: request rates are applied per prefix, large transfers need the right techniques, and the consistency model is simple, because every read sees the latest write.

Learning outcomes

After completing this lesson, you will be able to:

  • Explain what strong read-after-write consistency guarantees.
  • Explain how request rates are applied per prefix and how spreading keys across prefixes avoids 503 Slow Down errors.
  • Choose between multipart upload, byte-range fetches and S3 Transfer Acceleration for large or distant transfers.
  • Explain how SSE-KMS affects request rates and how S3 Bucket Keys reduce KMS calls.

Consistency

Amazon S3 provides strong read-after-write consistency for all operations, at no extra cost and with no configuration. As soon as a PUT of a new object or an overwrite of an existing one succeeds, every subsequent read returns the new data, and a list operation includes the new object. Deletes behave the same way: once a delete succeeds, the object no longer appears. Older guidance described S3 as eventually consistent for overwrites and lists, and code written for that model often contains waits or retries that are no longer needed.

Strong consistency does not provide locking. If two clients write the same key at nearly the same time, both writes succeed and the one that S3 processes last wins; the other is overwritten without any error. Applications that need to coordinate concurrent updates can use conditional writes, with the If-None-Match or If-Match headers, so that a write fails if the object was created or changed by someone else, or they can keep the coordination in a database such as DynamoDB.

Request rates

S3 scales request capacity automatically, but capacity is allocated per prefix, the part of the key before the object name, such as logs/2026/10/05/. Each prefix supports at least 3,500 PUT, COPY, POST and DELETE requests and 5,500 GET and HEAD requests per second, and there is no limit on the number of prefixes in a bucket.

An application that needs more throughput spreads its objects across several prefixes, because each prefix has its own capacity. Writing a day's log files under ten prefixes instead of one, for example, gives roughly ten times the request capacity, and readers can then read the prefixes in parallel. When the request rate rises suddenly, S3 returns 503 Slow Down errors while it adds capacity; the AWS SDKs retry these automatically with exponential backoff, so a well-written client recovers without intervention.

3,500req/s

PUT, COPY, POST and DELETE per prefix

5,500req/s

GET and HEAD per prefix

Large transfers

Large objects and distant clients are the two main causes of slow S3 transfers, and S3 addresses each with a different technique.

A multipart upload splits an object into parts that are uploaded independently and in parallel, then combined by a final CompleteMultipartUpload request. A failed part is retried on its own rather than restarting the whole upload. AWS recommends multipart upload for objects above 100 MB, and it is required above 5 GB, the maximum size of a single PUT. Parts of uploads that are never completed are still stored and billed, so a lifecycle rule should abort incomplete multipart uploads after a few days. Byte-range fetches apply the same idea to downloads: the Range header requests part of an object, so several ranges can be downloaded in parallel, or a client can read only the part it needs, such as the header of a large file.

S3 Transfer Acceleration helps clients far from the bucket's Region. Clients use a special endpoint, and data enters the AWS network at the nearest CloudFront edge location instead of crossing the public internet, for an extra charge per gigabyte. The transfer managers in the AWS SDKs and the CLI's aws s3 commands apply multipart uploads and parallel downloads automatically. The following table summarises the techniques.

TechniqueUse it to
Multipart uploadUpload objects in parallel parts; recommended above 100 MB and required above 5 GB
Byte-range fetchesDownload parts of an object in parallel, or read only the part needed
S3 Transfer AccelerationSpeed up uploads and downloads from distant clients through edge locations
SDK transfer managersApply multipart upload and parallel downloads automatically

SSE-KMS and request rates

When objects are encrypted with SSE-KMS, S3 calls AWS KMS for every upload, to generate a data key, and for every download, to decrypt it. These calls count against the KMS request quota for the Region, which is shared by all services in the account. At very high request rates, uploads and downloads can therefore be throttled by KMS rather than by S3, with ThrottlingException errors from KMS.

S3 Bucket Keys solve this. With a Bucket Key enabled, S3 obtains a bucket-level key from KMS and uses it for a period to create data keys for many objects locally, which reduces KMS requests, and their cost, by up to 99%. Bucket Keys are enabled per bucket and apply to new objects.

Worked example

503 Slow Down errors during ingestion

An ingestion job writes 20,000 small objects per second, all under the prefix incoming/, and receives many 503 Slow Down responses.

ChangeEffect
Spread keys across prefixes, such as incoming/{hash 00-ff}/...Each prefix supports at least 3,500 writes per second, so 256 prefixes provide ample capacity
Let the SDK retry with backoffAbsorbs the brief throttling while S3 scales
Enable S3 Bucket KeysPrevents KMS request quotas from becoming the next bottleneck with SSE-KMS

Readers can list and read each object as soon as its write succeeds, because S3 is strongly consistent; no delay or retry is needed before processing.

Check yourself

Immediately after a PUT that overwrites an object succeeds, can a GET return the old version?

Show answer

No. S3 provides strong read-after-write consistency, so a GET after a successful write returns the new object.

Exam Tips

Remember for the exam

  • S3 provides strong read-after-write consistency for all operations.
  • To increase request throughput, spread objects across more prefixes.
  • Uploads larger than 5 GB require multipart upload.
  • To speed up uploads from distant clients, use S3 Transfer Acceleration.
  • KMS throttling under heavy S3 traffic is fixed with S3 Bucket Keys.