AlgoViz

Amazon S3

medium 30 min

Amazon S3 stores objects, whole files with a key and metadata, in buckets that you reach over HTTP.

Remember it

The few things worth knowing cold, and how to make them stick.

Memory hook

One number, three mountains, colder floors.

A seed vault: every packet has a drawer number, the seeds lie in three mountains, old packets stay behind as versions, a ticket opens one drawer for 15 minutes, and colder floors cost less.

Cheat sheet

Durability
eleven nines by design
Availability
99.99% design, 99.9% agreement
Writes per prefix
3,500 a second or more
Reads per prefix
11,000 a second or more
Largest object
50 TB
Single PUT
5 GB
Parts
5 MiB-5 GiB, 10,000
Small object latency
about 100-200 ms
Presigned life
7 days at most
Minimum days
IA 30, Glacier 90, Deep 180

Spot it when you see

  • Files in a design.
  • Keep for years.
  • Many readers of one file.
  • A data lake.

Tricks that stick

  • Sign, send, event, serve.
  • Cold is cheap to keep, dear to touch.
  • Condition or lose the update.
  • Marker hides, version ID deletes.

Do not forget

  • Public buckets.
  • Client-chosen keys.
  • Millions of tiny objects.
  • Forgotten multipart parts and old versions.
  • Dated prefixes at high rates.
  • Calling replication a backup.