fivenines

Practice / target 80%

Startup Recovery Practice

01

If both RDB and AOF files exist, why should recovery follow configuration rather than load both in arbitrary order?

intro

Scenario

A restarting server finds both a snapshot file and an append-only log in its data directory.

02

Which recovery path reconstructs state by deserializing objects, and which reconstructs state by executing mutations?

intro

Scenario

You are documenting how each persistence file turns back into a live in-memory dataset.

03

Why should normal clients receive a loading error or wait while recovery is incomplete?

applied

Scenario

Clients reconnect quickly after a restart, while the server is still in the middle of loading its data files.

04

What should happen to a key whose absolute expiration time passed while the server was offline?

applied

Scenario

The data files contain a key whose absolute expiration timestamp falls inside the window when the server was off.

05

Why must AOF replay avoid live-client side effects such as sending network replies?

advanced

Scenario

You are implementing AOF replay and must decide how it differs from executing commands for live clients.