Index

Free, with Google

Keep going, free.

A free account opens lessons 2 and 3 of every track, 33 more lessons, and keeps your progress and review cards on every device.

Start free with Google

A chalk plan

Open everything on chalk.

Every lesson, board, video, lab and paper, and the full review decks. Yearly is $39/year.

See plansStart free instead

Module 04 · DevOps · One machine, one proxy, one bucket · about 42 min to read

Play it as a journeyTutor comes with a plan

Object Storage and the CDN

S3 & CloudFront
S3 & CloudFront · Open board

The board’s wiring is right: storage (one source of truth) is a different job from distribution (cached copies near people), and an Origin Access Control (a setting that lets only the CDN, Amazon’s is called CloudFront, read the storage bucket) is what joins those two boxes safely. This lesson gives that wiring its missing half: what an object actually is, what a cache actually buys you, and every number both of them run on.

Note on names. Every hostname, distribution id and bucket name below is a placeholder (app.example.com, d111111abcdef8.cloudfront.net, assets-prod). Nothing here refers to a real account, bucket or client.

Before you start. You need to know what a web address is and that a server is just a computer that answers requests: you have used both today. A bucket is one named storage area in S3, Amazon’s file storage. Who may read what inside a bucket is The Locked Filing Cabinet, folder-level S3 access‘s subject. This lesson is about what the bucket’s contents actually are, and what a cache remembers about you.

Lesson 34 of 70 in DevOps

The rest of this lesson is part of a plan.

A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year.

See plansAlready a member? Sign in

Or start free: a free account opens lessons 2 and 3 of every track.

In this lesson

  • 2017: the morning the map went missing
  • There was only ever one list
  • 1999: the trailer that broke the internet, except at one company
  • The same shape, twice
  • The keyspace has no folders, and no rename
  • No partial write, and a limit that is not what it looks like
  • Consistency: settled in 2020, still open in a few corners
  • The list is real, and listing it is what costs
  • Storage classes, and why the same 10 TB pays back in hours, or over a year
  • Durability, availability, and neither one is a backup
  • Proximity, computed in round trips
  • Origin offload, and the flash crowd
  • The cache key is the whole game
  • The fill floor: one formula, three knobs
  • What a bad hit rate actually costs
  • Invalidation, and why versioned names beat it
  • Signed URLs: a sealed bucket is not private content

Terms it explains: storage, distribution, key, bucket, origin, cache key, hit rate, 128 KB, 180 days, 97.0%, 37.0%, 99.97%, 99.9%, 99.999%, not atomic, O(number of keys), sequential continuation-token chain, 12.5×, 16.7 minutes, don't list, S3 Inventory, per-prefix, $105.00/mo, ≈ 7 hours, IA has a, $70.00/mo, 14.3 months, aggregate first, 10,000 years, a billion times, 99.99% = 52.6 min/year, 99.5% = 43.8 h/year, versioning, miss, 0.167 req/s, 10,000, 97.0% ceiling, 33× offload, 37.0% ceiling, 1.6× offload, . Versioned names divide, not atomic across objects.

Review DevOps