Redis-Persistence Mechanism-RDB, AOF and Hybrid Persistence


Redis provides two ways for persistence:

  • RDB: You can perform snapshot storage of your data at specified time intervals.
  • AOF: Record each write operation to the server. When the server restarts, these commands will be executed again to restore the original data.
  • Hybrid persistence is to combine RDB persistence and AOF persistence to write AOF files together. The advantage of this is that it can combine the advantages of RDB and AOF, fast loading and avoid losing too much data. The disadvantage is that the RDB part of AOF is the compressed format is no longer AOF format, and the readability is poor.

1. RDB snapshot persistence

2. AOF persistence

3. RDB-AOF hybrid persistence

4. Advantages and disadvantages

Guess you like

Origin blog.csdn.net/weixin_42201180/article/details/112045978