Skip to content
InfraChallenge Docs
Esc
↑↓navigate↵open⌘Jpreview
On this page

With more time

What comes next for delivery, in the order it would be done.

Upgrade the pins and turn the gates green

FastAPI on Starlette 1.x, a pinned greenlet, npm audit fix, a supported Python and a fresh base image digest. Then add Renovate or Dependabot, so pins move in small, tested steps.

Move off in-memory SQLite

Use the Aurora cluster from Task 1, with expand-and-contract migrations. Until then a release loses saved documents, and no deploy strategy changes that.

Prove the suggestion alarm in staging

Task 3 added the metric and the alarm <name>-suggestion-failure-ratio, and made it an ECS deployment alarm (see The implemented example). It has not run in AWS. Release a build with a broken model name to staging and confirm that ECS rolls it back. Between releases the alarm only notifies: ECS watches deployment alarms during a deployment.

ECS built-in blue/green or canary

ECS now has native blue/green, linear and canary strategies, with a test listener and lifecycle hooks. The smoke test would run against the new revision before it takes production traffic, and a shift back moves the traffic, not the tasks, which is faster than a rolling rollback. It needs a second target group and listener rules in modules/service.

A separate GitHub Environment for Terraform

A dev-infra-style Environment with its own reviewers, trusted by the apply role instead of the app Environment. dev and staging deploys stay automatic, and their applies get an approval. This is a bootstrap trust change.

Preview environments

For a pull request, a client bundle under a preview path, against the dev API. Full per-PR stacks cost too much for this team; a shared dev account with path-based previews covers UI review.

Automatic rollback after a failed smoke test

Once the smoke test has a track record, a failed check in _release.yml starts rollback.yml itself (actions: write) instead of waiting for a person.

Measure rollback time

Run a rollback in staging every week and record the time in the job summary, so the 10 to 15 minute estimate becomes a measurement.

Was this page helpful?