In-memory vs disk-based vs hybrid
IMDB is fast but limited; disk DB is durable but slower; hybrid (HSM) splits the working set.
Aspect | In-memory | Disk | Hybrid |
|---|
Latency | ~100 µs | ~10 ms | Varies |
Capacity | RAM-limited | Disk-limited | Both |
Durability | Snapshots + WAL | Full | Full |
Cost/GB | High | Low | Medium |
Example | Redis, Memcached | PostgreSQL, MySQL | SAP HANA |