The app saves a photo with one HTTPS request A seller uploads a product photo. The shop app sends it to object storage with an HTTPS PUT request to the bucket shop-images under the name photos/123.jpg.
Object storage has no disk to mount and no file system to format. You read and write whole objects through an HTTP API. PUT writes an object, GET reads it, DELETE removes it, and LIST shows names.
A bucket holds objects under flat keys A bucket is a named container. Inside it, each object has a key (its full name), the data, and metadata such as Content-Type and size. There is no directory tree. photos/123.jpg is one key, and the slash is just a character in it.
Consoles and the CLI show "folders" by grouping keys that share a prefix such as photos/. You list a prefix, not a directory. Renaming a "folder" means copying every object to a new key and deleting the old ones.
Key idea An object is replaced as a whole. You cannot append to it or change bytes in the middle. To change one byte, you upload the object again.
Every request is signed, then checked against policies The app does not keep a password. It runs with an IAM role and gets temporary access keys from STS. The SDK uses them to sign each request (Signature Version 4). The signature covers the method, the key, the headers and the time.
The S3 API checks the signature, then evaluates the identity policy of the role together with the bucket policy. An explicit Deny in either one wins. Without an Allow, the answer is 403 Access Denied.
Key idea Give the app only the actions it needs on only this bucket, for example s3:PutObject and s3:GetObject on shop-images/photos/*.
The browser gets 403, and that is the safe default The product page puts the object URL straight into an img tag. The browser's GET has no signature, so it is an anonymous request. New buckets have Block Public Access turned on, so the answer is 403 Access Denied.
The tempting fix is to turn off Block Public Access and allow everyone to read. This is a classic way data leaks: one wrong policy and the whole bucket, including invoices or backups, can be read by anyone who knows or guesses its name.
Watch out If the caller does not have s3:ListBucket, a missing key also returns 403, not 404. A 403 does not always mean the object exists.
A presigned URL lends access for a short time The app signs the GET request itself and hands the result to the browser as a URL. The signature, the key ID and an expiry time are in the query string. The browser downloads directly from S3, and the bucket stays private.
Anyone who has the URL can use it until it expires, so keep the expiry short (minutes). With SigV4 the longest expiry is 7 days, and a URL signed with temporary credentials stops working when those credentials expire.
Key idea For public assets at scale, put a CDN in front of the private bucket instead of making the bucket public.
Reads see the new version right away, but there is no lock The seller replaces the photo. The app PUTs photos/123.jpg again. Since December 2020, Amazon S3 has strong read-after-write consistency: once the PUT succeeds, a following GET or LIST returns the new object.
Object storage does not lock objects for you. If two writers PUT the same key at the same time, the last write wins and the other is silently lost. Use unique keys, or conditional writes where the service supports them.
Versioning keeps the old object when you overwrite or delete Without versioning, that overwrite destroyed the original photo. With versioning turned on for the bucket, each PUT creates a new version ID, and the previous one becomes a noncurrent version.
A DELETE without a version ID does not remove data. It adds a delete marker, so GET returns 404, while older versions stay and can be restored. This protects against mistakes and some ransomware, but you pay to store every version.
Key idea Turn on versioning for buckets that hold anything you cannot rebuild. Once turned on, versioning can only be suspended, not removed.
Lifecycle rules move and expire objects for you Most photos are read often in the first weeks and rarely after that. A lifecycle rule moves objects to a cheaper storage class after a number of days, such as Standard-IA after 30 days or an archive class like Glacier after 180 days.
Cheaper classes trade price for something else. Infrequent-access classes charge per GB read and have a minimum storage time. Some archive classes, such as Glacier Flexible Retrieval, take minutes to hours to restore. The same rules can expire noncurrent versions after, say, 90 days so versioning does not grow forever.
Large files go up in parts A seller uploads a 4 GB product video. One PUT can carry at most 5 GB, and a single long upload fails as a whole if the network drops. Multipart upload splits the file into parts (5 MiB to 5 GiB each, up to 10,000 parts) that are sent in parallel and retried one by one.
The CLI and SDKs switch to multipart automatically above a size threshold. If an upload is started and never completed or aborted, its parts stay in the bucket and are billed, but they do not show up as an object.
Watch out Add a lifecycle rule that aborts incomplete multipart uploads after a few days.
Private by default, signed for access, versioned for safety Object storage keeps whole objects under flat keys and serves them over an HTTP API. Every request is signed and checked against IAM and the bucket policy, and new buckets block public access.
Give out access with presigned URLs or a CDN, not a public bucket. Turn on versioning where data matters, and let lifecycle rules move old data to cheaper classes and clean up old versions and failed uploads.
Summary Use object storage for files that are written once and read many times: images, backups, logs, data sets and model files. Use block or file storage when software needs a mounted disk.