# Persistence: RDB vs. AOF

> Explain RDB vs. AOF persistence in Redis. What are the trade-offs, and which would you use in production?

Canonical: https://www.internhack.in/learn/interview/redis-caching/redis-persistence-rdb-aof
Last updated: 2026-11-28

Difficulty: Intermediate

## Question

Explain RDB vs. AOF persistence in Redis. What are the trade-offs, and which would you use in production?

*The full answer is for InternHack members. Open the page link above to read it.*

## Concepts covered

RDB, AOF, appendfsync, Copy-on-Write, AOF Rewrite

Previous: [Eviction Policies](https://www.internhack.in/learn/interview/redis-caching/redis-eviction-policies) · Next: [Transactions & Atomicity](https://www.internhack.in/learn/interview/redis-caching/redis-transactions-multi) · [All of Redis & Caching](https://www.internhack.in/learn/interview/redis-caching)

## More Redis & Caching questions

- [Pub/Sub Messaging](https://www.internhack.in/learn/interview/redis-caching/redis-pub-sub)
- [Sentinel vs. Cluster](https://www.internhack.in/learn/interview/redis-caching/redis-sentinel-vs-cluster)
- [Penetration, Breakdown, & Snowslide](https://www.internhack.in/learn/interview/redis-caching/redis-cache-pen-break-snow)
- [Distributed Locking (Redlock)](https://www.internhack.in/learn/interview/redis-caching/redis-distributed-locking-redlock)
- [Pipelining](https://www.internhack.in/learn/interview/redis-caching/redis-pipelining)
- [Redis Streams](https://www.internhack.in/learn/interview/redis-caching/redis-streams-vs-kafka)

## Related

- [Learn](https://www.internhack.in/learn)
- [Interview Prep](https://www.internhack.in/learn/interview)
- [Redis & Caching](https://www.internhack.in/learn/interview/redis-caching)
