Object Storage
By Ankur NayakReviewed
Object storage keeps large, unstructured files such as videos, images and backups as immutable objects addressed by a key, with near-unlimited capacity and very high durability. Amazon S3 is the reference example.
How it works
Instead of a file system hierarchy or database rows, object storage holds blobs in buckets under flat keys, each with metadata. You PUT and GET whole objects over HTTP. Objects are replicated or erasure-coded across devices and facilities, which is how services like S3 offer extremely high durability.
Applications keep only the object key in their database and let clients upload and download directly using short-lived pre-signed URLs, so large bytes never pass through application servers. A CDN usually sits in front for popular objects.
It is the right home for media, logs, data lake files and backups, but not for data that needs low-latency small updates or queries.
Key points
- Flat keys, whole-object PUT/GET over HTTP
- Very high durability through replication or erasure coding
- Store the key in the DB; serve bytes via CDN
- Pre-signed URLs for direct client upload
When to use it, and pitfalls
Use it for
- Media uploads and video masters
- Backups, logs and analytics files
- Static website assets
Watch out for
- Treating it like a file system (renames and appends are expensive)
- Public buckets exposing private data
- Many tiny objects inflate request costs
Used in
Related building blocks
Frequently asked questions
When should I use object storage instead of a database?
Use object storage for large binary files that are written once and read whole: images, video, documents, backups. Keep searchable metadata, relationships and small frequently updated fields in a database, with a pointer to the object key.
Sources
- What is Amazon S3? · AWS Docs