Prompt
Can you help me choose storage for a web app that stores uploads, generates files, and needs those files to survive restarts and failovers?
Latest observation
Oct 12, 2026
OpenAI APIWeb search: off
Yes. For a web app that:
- stores user uploads,
- generates files,
- and needs those files to survive restarts and failovers,
you should use durable shared storage, not local disk inside the app container/VM.
Best-fit options
1) Object storage
Examples: Amazon S3, Google Cloud Storage, Azure Blob Storage, MinIO
Best when:
- files are mostly uploaded/downloaded
- you don’t need POSIX-style file locking or in-place edits
- you want simple durability and easy failover
Pros
- survives app restarts and node failures
- highly durable
- scales well
- often cheapest and easiest for app-generated assets
Cons
- not a normal filesystem
- some apps need adaptation to use SDK/API instead of local paths
- listing/rename semantics differ from a disk
Usually the best choice for web apps storing uploads and generated artifacts.
2) Shared network filesystem
Examples: EFS, Azure Files, Filestore, NFS, SMB
Best when:
- the app expects a real filesystem
- multiple app instances must read/write the same files
- you need file-path semantics
Pros
- behaves like a mounted directory
- easy drop-in for apps that expect local files
- survives instance restarts/failover if managed properly
Cons
- usually more expensive/slower than object storage
- scaling and latency can be less ideal
- may have concurrency/locking quirks depending on implementation
Use this if your application code or framework strongly assumes filesystem paths.
What not to use
Local ephemeral disk
- container writable layer
- instance local SSD/HDD
- temporary VM disk
These will not reliably survive:
- container restarts
- VM replacement
- failover to another node
- autoscaling events
Recommended pattern
A common robust design is:
- Uploads and generated files in object storage
- Metadata in a database
- file name
- owner
- content type
- storage key/path
- size
- checksum
- status/version
If the app needs to serve files quickly:
- generate pre-signed URLs or signed download links
- or put a CDN in front of object storage
If files are temporary
If generated files are only intermediate:
- store them on local ephemeral storage only if you can regenerate them
- otherwise still use durable storage
Quick rule of thumb
- Need durability + scale + simple storage of blobs? → Object storage
- Need filesystem semantics / path-based access? → Shared network filesystem
- Need files to survive failover? → avoid local disk
If you want, I can help you choose based on your environment:
- Kubernetes
- Docker Compose
- single VM
- AWS / GCP / Azure
- or self-hosted.