Skip to content
Antoine Le LouëtIndependent senior developer (Home)
Back to the Journal

Advice3 min read

Your application works. Can you restart it?

A local exercise shows how two missing pieces of information block a restart, then how to check a completed procedure.

The restart depends on the simulated HTTP partner's URL and a SQLite database containing two fictional orders.
The application finds both orders once its dependencies and configuration are supplied.

Try a restart before a failure

In the lab, a small application responds with the order count after contacting a simulated HTTP partner. A SQLite database holds two fictional orders. The initial state was checked, then the service shut down cleanly. The code alone does not yet explain where to find the database or partner.

The exercise ran on Node.js 24.13.0 with SQLite 3.50.4. It takes place in a temporary directory and uses only servers bound to the loopback address. The data and blockers are constructed for the exercise.

Two missing details, two observed blockers

Text · lab results
État initial : 2 commandes
Démarrage avec configuration vide : DB_FILE absent
Après ajout du chemin de base : PARTNER_URL absent
Procédure complétée : partenaire puis base puis application
Contrôle final : 2 commandes

The first attempt uses an empty configuration object. The second supplies only the database path. Both errors are expected by the lab's assertions. They reveal exactly what the handover record needs to explain, instead of asking the next person to guess a variable.

The new procedure supplies the file path and the simulator's local URL. The service restarts and the journey finds both orders. The old database is retained: this result checks a process restart, not a backup restoration.

A checklist to copy for the next exercise

  • Prepare the runtime version and code matching the version to restart.
  • Document the required variables, their purpose and the authorised way to obtain secret values.
  • Check the database exists and inspect its schema; specify authorised migrations.
  • Start or connect to dependencies, then launch the application with the intended configuration.
  • Run a fictional business journey, collect logs and compare the expected result.
  • Record who owns a blocker and how to shut down the test environment.

The procedure must not contain passwords. It can identify the vault or person responsible for providing individual access. Someone who has never launched the application should be able to identify what is missing without opening production.

Choose the right exercise

Restarting a service preserves its environment and data. Rebuilding the environment requires recreating its dependencies and configuration. Restoring data requires a usable backup and consistency checks. The lab covers the first case and a clean configuration, without rebuilding a server.

For the real application, then request an exercise from an independent environment and arrange the necessary permissions. Keep sanitised output and have someone who knows the business validate the result. Unchecked items remain unknowns to address, even when the application responds to a health page.

Sources and useful links

Share on LinkedIn (new tab)

Keep reading
All articles in this category