Storage Fundamentals: Persistence and Volatility
What you'll learn: You'll understand the critical difference between storage that survives a VM shutdown and storage that disappears—and when to use each type.
The Core Concept
In cloud computing, storage comes in two fundamental flavors: persistent and ephemeral (also called volatile).
Persistent storage keeps your data even when a VM stops, reboots, or terminates. Think of it like your phone's internal storage—photos stay there even after you restart your device. In the cloud, this includes root volumes, additional attached disks, and object storage services.
Ephemeral storage vanishes when the VM stops or terminates. It's like your computer's RAM or a scratch notepad—useful while working, but gone when you power down. Instance store volumes (temporary disks physically attached to the host machine) are the classic example.
When to Use Each Type
Use persistent storage for:
- Operating system files and application code
- Databases and user data
- Anything you can't afford to lose
- Data that must survive VM restarts or failures
Use ephemeral storage for:
- Temporary processing files
- Cache data that can be regenerated
- High-speed scratch space during computations
- Data where speed matters more than durability
The Practical Impact
When you launch a VM with a root volume, that's typically persistent—the OS and installed software survive reboots. But some instance types also offer ephemeral instance store volumes for ultra-fast temporary storage. Understanding this distinction is critical for architecture decisions and disaster recovery planning.
Key Takeaway: Persistent storage keeps data after VM shutdown; ephemeral storage does not. Choose based on whether your data needs to survive beyond the VM's current session.