Database / ValKey Interview questions
What is RDB persistence in Valkey?
RDB persistence writes a compact, point-in-time binary snapshot of the entire dataset to a single .rdb file, either on a configured schedule (save points) or on demand via SAVE or BGSAVE.
BGSAVE forks a child process that writes the snapshot using copy-on-write memory pages, so the parent process keeps serving client requests while the file is written in the background.
RDB files are small and load quickly, which makes restarts and backups fast, but any writes made after the last snapshot are lost if the server crashes before the next one completes.
More Related questions...