Databases and storage
Object storage
Object storage keeps data as named objects that an application can upload and retrieve through an API. An object contains bytes—perhaps a photograph, a video or an export file—and metadata describing those bytes. Its key identifies it within a container called a bucket.
This arrangement is useful when the application knows which content it wants and can fetch it by name. The store handles retaining and returning the bytes. The application decides what those bytes mean, who may use them and how several objects fit together. Amazon S3 is the concrete service throughout this collection; ordinary examples use its general-purpose buckets.
You can start with the interface below, go directly to S3 resource choices and diagnosis, or open the object-storage sandbox. The sandbox runs an inspectable local model without an account. A separate practice guide follows real S3 requests.
What an object contains
Consider a product photograph. The application's database stores the product's name, price and an image reference. The image object stores the JPEG bytes and fields such as its media type. A browser can download those bytes without asking the product database to interpret pixels.
Price: 20
Image: i-83
Key: images/i-83/r1.jpg
Revision chosen by the application
Content-Type: image/jpeg
Other object metadata
The key may look like a filesystem path, but in a general-purpose bucket its slashes are characters in a name. A prefix such as images/ helps select names for listing. It does not create a filesystem directory with all the operations an application might expect from one. The layout article explains how names, metadata and object size shape the work.
Following a request
To upload the photograph, a client sends a PUT request naming the bucket and key and supplies the object's bytes. S3 checks the authenticated request and applicable permissions before accepting the operation. After a successful write, an authorised client can GET that key to receive the bytes, unless a later write or deletion has changed its current state. A HEAD request retrieves object metadata without the body; a LIST request discovers matching keys.
These are remote operations. A caller must handle responses, errors and connections that fail before it learns the result. For a large file, multipart upload lets it transfer and retry separate parts before completing one readable object. A part existing in an unfinished upload does not mean an ordinary GET can already read the completed file.
Our transfer article follows a 13 MiB recording through that lifecycle. It also explains why identifying an object, checking its bytes and verifying its content are different tasks. A perfectly transferred file can still be an invalid photograph.
Object replacement and consistency
Replacing an ordinary object supplies new contents for that object. This suits completed assets and exports. It is a less natural interface for updating one account balance inside a shared JSON document, where many clients might need fine-grained changes and constraints.
S3's general-purpose object operations provide strong read-after-write consistency and atomic replacement of one key's contents. A reader receives the old object or the replacement, not a mixture of their bytes. A separate cache may still serve an older response, and two writers can still overwrite one another's decisions. A conditional write lets the service reject a replacement based on an outdated value. The concurrent-writer article derives those outcomes.
The boundary remains one object. If an export replaces its price file before its stock file, a reader can receive a new price and old stock. Both responses can be current. To publish a coherent set, write files under new generation names and then replace one manifest naming the complete set. Readers use that one manifest throughout their read. Publishing a dataset follows the protocol through conflicts and cleanup.
Files, blocks and databases
A block device exposes addressable blocks to a machine. A filesystem organises files and directories and supplies operations applications use through that interface. Object storage exposes named objects through service requests. These are different contracts, not three ranks of quality.
An application that requires filesystem locking or atomic directory operations cannot assume those behaviours merely because an object-storage adapter displays familiar paths. Likewise, a SQL database may use object storage internally while adding its own metadata, indexes and transaction protocol above it. The interface the application uses and the medium underneath it answer different questions.
For photos, recordings, backups and complete analytical files, named objects often match the work well. For checkout records, a relational database supplies relationships, constraints and transactions that ordinary object operations do not. Many applications need both. The database-and-object lifecycle explains how to keep their separate commits recoverable.
Operating object storage
Access policies decide which requests may read or change objects. A signed upload URL can delegate one kind of request to a browser, but the application still checks ownership and validates the uploaded content before publication. A CDN can accelerate delivery, but its cached copies have their own freshness and access rules.
Versioning can preserve an earlier object after a mistake. Lifecycle rules can later remove that history. Replication can create another copy, but asynchronous progress means the copy may not yet contain the generation an application needs. Recovery therefore has to test a usable set of bytes, references, permissions and keys.
Cost follows the same details. Millions of tiny fetches, retained old versions, incomplete uploads and repeated transfers can matter as much as current stored size. A storage class with inexpensive retention may require a slow restore before a read. The operating articles connect those choices to concrete access and recovery requirements.
The object-storage collection
Follow the articles in order to build the ideas progressively, or enter through the problem you are solving. S3 Tables and S3 Vectors get their own investigations because they add table and retrieval semantics beyond ordinary object GET and PUT.
Objects and requests
- Keys, metadata and object layout
Choose identities, prefixes and object boundaries that match the work.
- Uploads, downloads and integrity
Follow parts, completion, retries, checksums and range reads.
- Consistency and concurrent writers
Derive conditional-write outcomes and reconcile a missing reply.
Building applications
- Publishing a dataset
Publish one complete generation and retain what readers still need.
- Access and private uploads
Connect application authorization, signed requests and validation.
- Objects and database records
Recover pending uploads and safely retire unreferenced bytes.
- Delivering and caching objects
Give stable assets and changing references different cache policies.
- Events and object-processing workflows
Handle duplicate, reordered and unfinished processing work.
Operating the store
- Versions, retention and recovery
Recover the right version and verify a usable application state.
- Performance, storage classes and cost
Connect request work, retained bytes and recovery needs to cost.
Amazon S3
- Amazon S3 in practice
Choose a resource and diagnose the complete request path.
- Tables on object storage
Follow Iceberg snapshots, catalog commits and managed maintenance.
- Vector storage and retrieval with S3
Understand filtered retrieval and keep embeddings tied to their sources.
Sources and further reading
The S3 service guide establishes the object and bucket model; focused articles link the specific API contracts they use. Our products, recordings and request schedules are teaching examples. We explain documented service behaviour and executed local models separately. General-purpose bucket assumptions do not automatically apply to directory, table or vector buckets.