8 milestones Order + Payment
Mỗi milestone kết thúc bằng executable gate, ADR và failure evidence; không bắt đầu milestone sau nếu invariant trước chưa được test.
Lab 01 · Requirement và architecture baseline
Viết functional/non-functional scope, invariants, workload/SLO/RPO/RTO, C4/sequence/state diagrams, threat/failure map và ADR service boundary. Gate: 10-minute review chịu được challenge.
Lab 02 · Reproducible repository
Spring Boot modules, PostgreSQL, migrations, Compose/Testcontainers, one-command build/test, CI reports và dependency pinning. Gate: clean machine path không secret/manual DB step.
Lab 03 · Order + Payment correctness
Order state machine/API/optimistic locking; payment idempotency persisted. Test concurrent duplicates, stale transition, timeout-after-commit và mismatched key payload. Gate: one effect/invariant audit.
Lab 04 · Synchronous failure handling
WebClient/HTTP client phase timeouts, bounded retry/backoff+jitter, circuit/bulkhead và PAYMENT_UNKNOWN reconciliation. Inject latency/errors/pool saturation; gate bằng traffic amplification và recovery evidence.
Lab 05 · Async saga và outbox
Kafka hoặc RabbitMQ, versioned events, transactional outbox/relay, consumer inbox/idempotency, saga states, DLQ/replay. Kill producer/consumer tại commit boundaries; gate: convergence without duplicate effect.
Lab 06 · Data evolution và recovery
Expand-contract migration + checkpointed backfill dưới load; backup/PITR hoặc restore simulation, reconcile DB/broker/provider. Gate: mixed-version compatibility, RPO/RTO và discrepancy report.
Lab 07 · Platform, delivery và production controls
Non-root multi-stage images, SBOM/scan/sign, Compose và Kubernetes resources/probes/graceful shutdown; promote digest/canary. Thêm authz/secrets, OTel metrics/logs/traces, SLO alerts/runbooks.
Lab 08 · Game day và mock interview
Chạy duplicate/timeout/bad deploy/queue lag incident với roles/timeline/postmortem; demo failure-recovery. Thực hiện hai mock: architecture deep dive và production debugging, chấm rubric/gaps.
Rubric
| Mức | Tiêu chí |
|---|---|
| 1 | Happy path chạy và có tests cơ bản. |
| 2 | Invariants, distributed failures, delivery và telemetry có evidence. |
| 3 · Senior | Recovery/reconciliation/security/capacity được drill và bảo vệ bằng narrative rõ. |