Lesson 3 of 6 Amazon S3

Scaling S3 Performance and Speeding Up Transfers

This lesson explains how design choices affect S3 throughput, latency and upload speed, although S3 scales automatically.

Learning outcomes

After completing this lesson, you will be able to:

  • Explain how request rates scale across prefixes.
  • Explain how multipart upload and Transfer Acceleration speed up transfers.
  • Describe Batch Operations, event notifications, checksums and S3 Inventory.
  • Explain why CloudFront is placed in front of S3 static websites.

Request rates

At least 3,500 PUT/COPY/POST/DELETE and 5,500 GET/HEAD requests per second per prefix, with unlimited prefixes, so spread high rates across prefixes. Reads after writes and lists are strongly consistent.

3,500req/s

PUT, COPY, POST and DELETE per prefix

5,500req/s

GET and HEAD per prefix

Fill in the value

Request rates per prefix

Exam skills 3.1.1

Recall S3's request rates per prefix.

Log in to try this activity Interactive activities are free with an account.

Speeding up transfers

Several features make transfers to and from S3 faster. A multipart upload splits an object into parts that upload in parallel and can be retried individually; it is recommended above 100 MB and required above 5 GB. Byte-range fetches download parts of an object in parallel, or only the part that is needed, such as a file's header.

Transfer Acceleration helps users far from the bucket's Region: uploads enter the AWS network at the nearest CloudFront edge location instead of crossing the internet. CloudFront caches objects that are read often, so repeated downloads are served from edge locations. Mountpoint for Amazon S3 lets Linux applications read and write S3 objects as files at high throughput, though without full POSIX file system behaviour. The following table summarises the features.

FeatureUse
Multipart uploadParallel parts; recommended above 100 MB, required above 5 GB (objects up to 50 TB)
Byte-range fetchesParallel downloads, or only the part you need
Transfer AccelerationUploads via CloudFront edge locations for long distances
CloudFrontCache frequently read objects
Mountpoint for Amazon S3High-throughput file access from Linux (not full POSIX)

The following diagram shows a multipart upload using Transfer Acceleration.

Speeding up uploads from far away. A multipart upload splits a large object into parts that upload in parallel and are retried individually. With Transfer Acceleration, the parts enter the AWS network at the nearest CloudFront edge location and cross the AWS backbone to the bucket's Region, instead of crossing the public internet.
The locations are illustrative. Acceleration helps most when users are far from the bucket's Region.
Scenario questions

Faster transfers

Exam skills 3.1.1 · 3.5.3

Choose the S3 feature for each transfer requirement.

Log in to try this activity Interactive activities are free with an account.

Operating at scale

Amazon S3 provides features for managing very large numbers of objects. S3 Batch Operations performs an action, such as copying, tagging, restoring from Glacier or invoking a Lambda function, across billions of objects in a single managed job. Event notifications send object events to Amazon SQS, Amazon SNS, AWS Lambda or Amazon EventBridge, so new objects can trigger processing.

Checksums, such as CRC64NVME, CRC32 and SHA-256, calculated on upload reject transfers that were corrupted and allow later downloads to be verified. S3 Inventory produces scheduled lists of objects and their properties, which are used to audit encryption, replication status or storage class across a bucket.

Match the pairs

Managing objects at scale

Exam skills 4.1.1 · 3.1.2

Match each requirement with the S3 feature that meets it.

Log in to try this activity Interactive activities are free with an account.

Websites and billing

S3 can host static websites, serving HTML, CSS, JavaScript and images directly from a bucket. Website endpoints support only HTTP, so Amazon CloudFront is placed in front to provide HTTPS, custom domains and caching.

Requester Pays buckets change who pays for data transfer and requests: the requester, rather than the bucket owner, is billed when downloading, which suits organisations that share large datasets with others.

Worked example

Speeding up uploads from around the world

Users in Asia and South America upload large files to a bucket in eu-west-1, and uploads are slow and often fail.

TechniqueEffect
Multipart uploadParts upload in parallel; a failed part is retried alone
S3 Transfer AccelerationUploads enter the AWS network at the nearest edge location
Spread keys across prefixesRequest rates scale per prefix for very high upload volumes

Transfer Acceleration addresses distance; multipart upload addresses large files and unreliable connections. Together they solve the problem without moving the bucket.

Check yourself

How can a large object be downloaded from S3 faster?

Show answer

With byte-range fetches: several GET requests for different ranges of the object run in parallel.

Exam Tips

Remember for the exam

  • For faster uploads from distant users, use Transfer Acceleration with multipart upload.
  • For high request rates, spread keys across more prefixes.
  • To trigger processing of new objects, send event notifications to Lambda, SQS, SNS or EventBridge.
  • For an HTTPS static website, use S3 with CloudFront and origin access control.
  • To detect corruption during uploads, supply S3 checksums.
  • For large-scale reads of S3 data through a file interface, use Mountpoint for Amazon S3.