Which services should you restore first after an outage?

Sequence DNS, recovery keys, databases, identity and application services after an outage, with explicit stopping checks before users regain access.

Download Recovery stopping checks

Editable recovery stopping checks with worked cases and space for observations.

Last updated

In short

  • Restore the network, DNS and a trusted clock before services that depend on them for login or data access.
  • Provide an independently accessible recovery identity.
  • Open write traffic only after verifying a business transaction.

Architectures · See also Backups and recovery

Build the order around a fresh login

A database-backed application may require DNS and time to locate its identity issuer, storage keys to open its volumes, a database for the issuer itself and another database for its business records. Trace those paths from a client with no saved session. Work backward until every dependency can start using resources that survive the outage. If the secrets service needs the same identity service whose database key it stores, assign a documented independent recovery path and rehearse it with authorized custodians.

One example graph has network and local time feeding DNS and certificate validation. Network, storage and recovery keys feed the database layer. The identity database feeds Keycloak. Business data and the identity issuer both feed the web application. The job queue feeds background workers only after the application can validate work. Independent branches can proceed together as long as operators observe each stopping condition.

Recovery boundary Proof before continuing Hold downstream work when
Network, names and time Resolve the internal storage and issuer names from an application subnet. Confirm clocks and certificates validate from a clean client. Hosts resolve an obsolete site or obtain different answers on the worker network. Correct routing and names before sending traffic to either database.
Keys and storage Retrieve the approved recovery material under its custody procedure and open a disposable restored volume. The only usable access path depends on the failed issuer. Escalate to the named recovery custodian before mounting production data.
Database and identity Recover to the approved point, establish which node owns writes and validate a new user login with the expected role. Recovery has stopped before a required log segment or an old writer remains reachable. A process accepting connections cannot prove consistency.
Application and workers Create one synthetic business record, read it from a second session and route its event to an isolated destination. The read returns an older record, access is too broad or workers would replay unclassified old events into live integrations.

Stop the clock at service recovery

For PostgreSQL, base backups and archived WAL must cover the required recovery point. Record the target and the actual recovered transaction boundary along with evidence that the application and identity data form an acceptable pair. If identity changes after that boundary revoked a user’s access, review the effect before opening the site. PostgreSQL continuous archiving

Keycloak has its own database configuration and supported database combinations. Include those dependencies in the recovery inventory even if the application team describes authentication as a single URL. Verify a fresh login, denied access for the wrong role and a normal logout. Keycloak database configuration

Open traffic in stages. Assign someone to watch queued events and someone else to verify the first user-visible transaction. Record the time each dependency became usable. Those timestamps reveal whether faster database recovery would shorten the outage or simply leave the team waiting for keys or directory services.

Decide who communicates a partial recovery. A service may allow employees to read yesterday’s records before its writer is ready. Publish that limitation explicitly and keep the write endpoint closed until the transaction and identity gates both pass.

Sources and further reading

Plan our recovery sequence

Trace the dependencies for one login and one confirmed application write.

Compare plans and prices, or write to us with a question this page leaves open.