Practical guides2 min readUpdated on

Deployments, logs, and backups: before going live

What needs to be verifiable before you release, observe, and recover an application.

Navigate this article

An application is not ready just because its container started. It must respond correctly, protect access, and have a recovery path. Try this workflow in a test environment before the first release.

Map the path of a request

List public entry points, proxy, application, database, queues, and integrations. Mark credentials and persistent data. A simple map is enough if it shows what stops working when a dependency fails.

Separate configuration from secrets. Validate required variables at startup and keep credentials out of images and repositories. Expose only necessary public services and give each component permissions proportional to its role.

Release a version you can identify

Use a versioned artifact and record the revision running in production. A pipeline should build, test, and release that artifact rather than rely on manual server edits. Check application health and a real journey after deployment.

An incompatible migration may prevent the previous version from running. When possible, separate structural changes and removals into compatible stages. Write the rollback plan before you need it.

artifact -> tests -> compatible migration -> deploy
                                         -> health + journey
                                         -> observe
                                         -> continue or revert

Record signals that lead to action

Logs explain events; metrics show aggregate behavior; traces help follow requests across components. Start with operational questions: which journey failed, since when, and which dependency was involved?

  • Request identifiers that connect events.
  • Error rates and response times for important flows.
  • Queue backlog and tasks that do not finish.
  • Alerts with an owner and initial investigation instructions.

Do not log tokens, passwords, or complete payloads for convenience. Define access and retention.

Restore a backup before trusting it

Creating a backup file does not prove it can be restored. In a separate environment, recover the database and required files, start the application, and validate a journey. Record elapsed time and the recovered data point.

RPO is the tolerable data loss measured in time; RTO is the target recovery time. Define both with the people responsible for operations. They should guide backup frequency, retention, and investment instead of coming from default settings.

  • Exercise: restore fictional data and complete a lookup in the recovered application.
  • Deliverable: deployment instructions, a restore test, and incident owners.
  • Acceptance criterion: another person can follow the procedure and reproduce the result.

Sources and further reading

Educational material. Validate examples in a test environment and adapt decisions to your project's context, risks, and responsibilities.

Share

Back to all materials