Wednesday, 16 July 2025

redis data presistence

 https://redis.io/docs/latest/operate/oss_and_stack/management/persistence/


  • RDB (Redis Database): RDB persistence performs point-in-time snapshots of your dataset at specified intervals.
  • AOF (Append Only File): AOF persistence logs every write operation received by the server. These operations can then be replayed again at server startup, reconstructing the original dataset. Commands are logged using the same format as the Redis protocol itself.
  • No persistence: You can disable persistence completely. This is sometimes used when caching.
  • RDB + AOF: You can also combine both AOF and RDB in the same instance.

AOF needs more memory (30% free memory)
but can save on every write 
disk usage can also be big

https://stackoverflow.com/questions/25328317/does-redis-persist-data

No comments:

Post a Comment