Jump to text
On this page
Copy and source
Published source confirmed at last check

Source changed 2026-11-26 21:07:53 UTC · snapshot created 2026-11-26 21:08:36 UTC · last check 2026-11-29 22:30:10 UTC

SYSE.41:4.7 - Choose the deployment arrangement and make interruption recoverable

Construct the procedure around the target’s possible intermediate states. Separate preparation that can occur while the old service runs from operations that change a serving process or shared data. Place each compatibility prerequisite before its first consumer. Put an observation after the operation whose result determines the next choice. This creates a dependency structure that can permit parallel preparation while preserving necessary ordering.

Choose the replacement arrangement from coexistence and capacity. A rolling replacement can keep some old instances available while updating others, provided old and new versions can coexist and the remaining capacity is sufficient. A separately prepared candidate pool can be tested before routing changes, at the cost of extra resources and shared-state analysis. A stop-and-replace operation can be simpler for a service that permits the interruption and cannot coexist with its successor. Each needs a result test and a recovery boundary.

Identify the operation that starts the candidate’s effects on live work. Copying a file, restarting a process, reloading configuration, changing routing and enabling a feature can have different effects. The installed artifact may remain dormant; conversely, a scheduled worker can start processing shared work immediately when it starts. If runtime construction itself activates the candidate, obtain the corresponding exposure authority and protection before that action. Separation of deployment and wider exposure is a useful architecture where it exists, not a factual claim about every application.

Use stable resource or operation identities when the task asks what the interrupted request did or a safe continuation depends on its earlier effects. Advance a durable progress indication only when its corresponding effect is established under the failures the mechanism can undergo. After a lost acknowledgement, an authorized retry can complete the required operation if it is qualified for every state still possible, including partial execution and relevant intervening changes. When its safety depends on resolving an earlier effect, use reliable readback or another qualified reconciliation. If no permitted safe continuation is available, stop the affected step and identify the state or assistance still needed.

Keep the common procedure separate from legitimate target parameters. A test environment can supply a smaller pool and controlled data while retaining the same installation and configuration-loading mechanism. If production uses an additional proxy, identity provider or storage mode, exercise the relevant join before relying on lower-environment success. Keep target-specific exceptions visible and supported instead of growing unrelated scripts whose behavior can no longer be compared. Simplifying those exceptions can be a better investment than automating every historical variation.

Construct the deployment test to discriminate the next required claim. A process readback can establish the loaded artifact when it distinguishes the candidate builds, a connection exercise can establish access, and a bounded write/read can establish a selected application interaction. The collection must cover the promised installation result without becoming a substitute for every acceptance or reliability check. Use reserved test data or another qualified containment mechanism when test effects would otherwise reach ordinary users. A test that sends an actual customer notification needs the corresponding permission; tagging the request synthetic does not contain that effect.

For a scheduled importer, the apparent candidate pool may share the live work queue. Starting its workers already changes which version processes real jobs. The team can bind a candidate to a qualified test queue and limited credentials for isolated deployment testing, or treat startup as bounded live exposure with compatible jobs and a stop plan. If neither arrangement is available, a planned interruption may be the supported choice. The same artifact promotion and runtime readback remain useful. In each deployment architecture, identify the operation that first exposes live work to the candidate.