Database / ValKey Interview questions
What is the difference between RDB and AOF persistence?
RDB and AOF trade off recovery speed, file size, and durability guarantees differently, and Valkey lets you enable either, both, or neither.
| RDB Snapshots | AOF Log |
| Compact binary point-in-time snapshot | Continuously growing log of write commands |
| Fast restarts from a small file | Slower restarts; replays the full log |
| Can lose writes since the last snapshot | Near-durable with appendfsync always/everysec |
Written via BGSAVE's fork + copy-on-write | Compacted periodically via BGREWRITEAOF |
More Related questions...