When to use Blob
Decide when Blob is the right primitive compared with KV, Cache, or a custom storage layer.
Use Blob when the data is a file or asset that should be stored and served as binary content.
Choose Blob when
Blob is usually the right fit when:
- the app stores uploads or generated files
- the stored value needs a content type and file metadata
- the app serves the file later through a route or a storage URL
- driver portability matters across local and hosted object storage
Blob vs KV
Choose Blob for files and asset-like content.
Choose KV for small keyed values, structured state, and configuration data.
Blob vs Cache
Choose Blob for durable file storage.
Choose Cache for recomputable data that can expire and be regenerated.
When Blob is not the right primitive
Blob is usually the wrong fit when:
- the stored value is structured key-value data
- the data should expire and be recomputed instead of stored durably
- the app needs a highly specialized storage layer with no value in driver portability