Capstone deployment and handoff
Capstone deployment and handoff
Hand off the capstone with an explicit architecture decision, release gates, recovery plan and honest evidence inventory.
A modular monolith is the implemented teaching architecture: one process, one owned SQLite connection, and local fulfillment. It is intentionally ephemeral; stopping the lab destroys data. A production variant would replace the store with a supported durable relational service, apply reviewed migrations using a separate migration identity, use real OIDC/JWT identity with role and resource authorization, configure TLS and secrets, and choose a durable worker and telemetry exporter. A selective distributed alternative separates fulfillment after the inventory/outbox commit; a relay retries bounded deliveries and a consumer persists an inbox key and effect atomically. Reconcile pending work after faults. Never assume a broker acknowledgement proves the effect committed. Compare operational ownership, consistency, on-call load, connection budgets, observability and recovery. No provider is selected, no live prices are claimed. The release plan builds an immutable artifact, captures SBOM and test results, verifies dependency advisories, stages migrations and checks health, then promotes only with explicit approval. Rollback may require forward repair or restored data rather than reversing a destructive schema change. Recovery objectives and SLOs in the handoff are hypothetical targets, not observed measurements. Define cleanup owner and resource expiry before any future approved deployment. The included CI plan is a non-executable checklist, not a live workflow. Record actual test commands and exit codes in the evidence template, and keep the release blocked until runtime, security, accessibility, migration and restoration checks pass. The local lab must never be treated as production ready.
Baseline: .NET 10 / C# 14. All C# results below are reasoned, not executed. The capstone examples are synthetic; the separate solution is staged and unexecuted.
Evaluate release gates without mistaking missing evidence for success
Require every gate to be explicitly true.
Inspect the archived Fixture.csproj and use only an approved .NET 10 SDK. Build and run in an isolated lab with finite time and resource limits.
using System;using System.Linq;static bool Eligible(bool?[] gates) => gates.Length==5 && gates.All(g=>g==true);Console.WriteLine(Eligible(new bool?[]{true,true,null,true,true}));Console.WriteLine(Eligible(new bool?[]{true,true,true,true,true}));Expected result (not executed):
FalseTrueEligibility is separate from permission to publish or deploy.
Estimate a synthetic operating budget
Use fictional units and include operational labor and coexistence.
Inspect the archived Fixture.csproj and use only an approved .NET 10 SDK. Build and run in an isolated lab with finite time and resource limits.
using System;int compute=40, database=30, telemetry=10, labor=20, coexistence=15;Console.WriteLine($"Steady model: {compute+database+telemetry+labor}");Console.WriteLine($"Migration model: {compute+database+telemetry+labor+coexistence}");Expected result (not executed):
Steady model: 100Migration model: 115These are fictional cost units, not dollars or cloud quotes. Fill actual rates, geography, time window and workload later.
Choose a recovery path
A compatible schema permits binary rollback; an incompatible schema requires a reviewed data recovery plan.
Inspect the archived Fixture.csproj and use only an approved .NET 10 SDK. Build and run in an isolated lab with finite time and resource limits.
using System;static string Recovery(bool compatible,bool restoreProven) => compatible?"binary rollback candidate":restoreProven?"review restore or forward repair":"block and escalate";Console.WriteLine(Recovery(true,false));Console.WriteLine(Recovery(false,true));Console.WriteLine(Recovery(false,false));Expected result (not executed):
binary rollback candidatereview restore or forward repairblock and escalateRecovery may lose recent writes; confirm recovery-point objectives, reconciliation and approval before any restoration.
Apply the concept
Prepare a handoff for a simulated incident: a new release causes reservation conflicts and a growing outbox. State the first safe action, diagnostics, recovery choices, and evidence needed to resume.
Use the manual practice and knowledge check. Do not deploy or publish these fixtures.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Capstone deployment and handoff — knowledge check
Apply the lesson concepts to the following scenarios.
What does an all-green gate model authorize?
How should synthetic costs be labeled?
Why can schema changes complicate rollback?
What must a distributed consumer deduplicate?
What is the release status of an unexecuted capstone?