The parent process will never perform disk I/O or alike. RDB maximizes Redis performances since the only work the Redis parent process needs to do in order to persist is forking a child that will do all the rest.RDB is very good for disaster recovery, being a single compact file that can be transferred to far data centers, or onto Amazon S3 (possibly encrypted).This allows you to easily restore different versions of the data set in case of disasters.
#PYTHON FILE PEEK USAGE ARCHIVE#
For instance you may want to archive your RDB files every hour for the latest 24 hours, and to save an RDB snapshot every day for 30 days. RDB is a very compact single-file point-in-time representation of your Redis data.The most important thing to understand is the different trade-offs between the
Notice that, in this case, when Redis restarts the AOF file will be used to reconstruct the original dataset since it is guaranteed to be the most complete.
RDB (Redis Database): The RDB persistence performs point-in-time snapshots of your dataset at specified intervals.Redis itself provides a range of persistence options: Persistence refers to the writing of data to durable storage, such as a solid-state disk (SSD). How Redis writes data to disk (append-only files, snapshots, etc.) Out-of-order / backfilled ingestion performance considerations.