Requirements of a Blob Store 00:00:01 What exactly does an upload receipt promise A photo service accepts bytes under a caller-selected key. Follow the checks, durable chunks and metadata commit before returning success. Which identifiers distinguish a version from the address used to find it? The client sends a PUT with the bytes and the key it chose. Verify the credentials and the permission, and reject too large a body early. The store creates an id for these bytes. An older version keeps its own id. Chunks go to three zones, with checksums. One commit points the key at id 7. 200 OK with an ETag. State what the receipt promises about visibility and durability. A returned entity tag is an opaque validator under the service contract and need not equal a whole-object checksum. 00:00:49 A year of photos changes the storage bill The example service accepts ten million two-megabyte photos a day. Use decimal units, estimate peak traffic separately, and compute retained bytes before choosing a redundancy scheme. For a quick capacity estimate, round a day to one hundred thousand seconds. Ten million uploads per day then gives roughly one hundred per second on average and three hundred at the illustrative three-times peak. Ten reads for each upload. Peak 3,000. 6 GB a second leaves the store at peak unless a CDN takes it. 20 TB of new photos every day. 7.3 PB a year before any redundancy. Erasure coding at 1.5x. Three copies would need 21.9 PB. Twenty decimal terabytes daily yields about seven point three petabytes in a three-hundred-sixty-five-day year. Three full copies triple that figure before metadata, transient repair and growth headroom. 00:01:45 The bytes survive but nobody can read them Three zones hold the photo. Follow four incidents and name the promise each one tests. An unreachable intact file and a reachable old revision are quite different customer experiences. Three zones hold the bytes. Another zone serves the read. Nothing is lost and nothing waits. The bytes exist and nobody can reach them: availability. No copy remains: durability. No retry helps. A read returns version 1 after version 2 was confirmed: consistency. Separate durability, availability and consistency in the requirements. Use restore tests, external read probes and version-aware checks because no single success counter measures all three. 00:02:27 Fit a large upload inside a part-count limit A hypothetical API accepts at most ten thousand parts. Its illustrated multipart policy uses a five-mebibyte minimum for nonfinal parts and a five-gibibyte maximum part. Calculate a workable part size. The minimum part of 5 MiB works: 20 parts. 5 MiB would need 20,000 parts. 10 MiB needs exactly 10,000. Ten thousand parts of five gibibytes yield about forty-eight point eight tebibytes by component arithmetic, before any separate object-size cap. File size, part count and maximum part size jointly bound an upload. These are this design's explicit limits. A real provider may impose additional object-size or operation restrictions. 00:03:09 A video appears in a photo-only product brief The existing upload API comfortably handles two-megabyte images. The first six-gigabyte video crosses the example service's configured single-request limit. What work should the original brief have budgeted? Photos of 2 MB go through one PUT. All is well. This service limits a single upload request to five gigabytes, so the six-gigabyte video needs a multipart route. Multipart needs new API calls, a resume path and a cleanup of unfinished uploads. How large is the largest file? One sentence at the start. Ask for the distribution and maximum of individual object sizes, as well as total bytes. Large objects affect resume, cleanup, checksums, client memory and the lifetime of upload credentials.