Microservice Checklist
Source references:
Architecture- Micro-service Checklist.md;
principles in ../principles/README.md;
patterns in ../patterns/;
capabilities in ../well-architected/;
ADRs in ../decisions/.
How to use this checklist
Every ION service must pass this checklist before it graduates from Alpha to Beta, and re-verify it at every major release. It is the concrete enforcement of our principles, patterns, and Well-Architected capabilities.
Each item cites the principle it enforces (§n), the pattern that
implements it, and the ADR/capability that ratifies it. If an item is
not applicable to a service, record the reason in the service’s
design/systems/<system>/services/<service>.md — never silently skip.
Related: the ORR Checklist covers Go-Live readiness (operational drills, on-call, runbooks). This checklist covers design and build.
Legend: MUST — no exceptions without ADR. SHOULD — deviate only with recorded justification. MAY — optional, service-team judgment.
1. Domain & decomposition
- MUST own exactly one aggregate boundary or one integration concern (§1 Volatility-based decomposition, §2 Microservices, §3 DDD).
- MUST belong to exactly one system (Watchtower, Cogs, Alya, Pigeon, Kingsman, Veritas, ION IQ). Cross-system logic → integration events, never in-service.
- MUST be independently deployable and independently scalable (§2, §14). No shared release train with siblings.
- MUST NOT call another service synchronously over HTTP to complete a domain operation (§5 No direct service-to-service calls, §6 Choreography over orchestration). Use the trilateral API contract (§10) — publish / subscribe / REST.
- SHOULD be small enough for one team of ≤ 6 to own end-to-end (§2).
2. API & contracts
- MUST expose the trilateral API (§10): sync REST for commands + reads, publish for domain/integration events, subscribe for upstream integration events.
- MUST use REST + JSON:API for HTTP APIs (ADR-0009), with cursor-based pagination and query-parameter filtering.
- MUST publish events using CloudEvents + AsyncAPI (§9, ADR-0004) with the schema registered in the platform contract registry.
- MUST apply ECST — integration events carry consumer-required state (ECST pattern, §7).
- MUST version APIs and event schemas additively; breaking changes require a new major version + deprecation window (Schema Evolution).
- MUST write commands via Async REST —
202 Accepted+ correlation-ID for event-sourced services (Async REST, ADR-0007). - MUST front all external APIs through the shared APIM in the spoke (ADR-0017).
3. Persistence & data
- MUST own its data — no other service reads its store directly (§2). All access is via API + events.
- MUST use event sourcing for domain-of-record services (Incidents, Investigation, Tickets — §8, ADR-0006).
- MUST use Azure-native PaaS for persistence (§21 Azure-native managed services first; Cosmos DB as event store per ADR-0007). Self-hosted stores require an ADR exception (currently only Temporal).
- MUST use Managed Identity for data store access,
combined with the ADR-0025 network posture: Phase 1 — ZPA-enforced
firewall / NSG allowlists (App Connector IPs + required Azure
service tags; no
0.0.0.0/0) and Phase 2 — private endpoints as the target end-state (Private Data Store Access, ADR-0013, ADR-0025, ADR-0016). No connection strings in code or config. - MUST implement idempotent writes using deterministic keys (Idempotent Write). All writes must be replay-safe.
- MUST avoid distributed transactions. Cross-store consistency uses outbox / change-feed (Dual Writes).
- MUST encrypt data at rest and in transit; PII/PCI classified and tagged (Data Protection).
- MUST define retention + deletion policies aligned with compliance constraints.
- SHOULD use Redis cache for hot reads instead of re-querying the store (no dedicated ADR; see Performance Efficiency capabilities).
4. Messaging
- MUST use the shared Azure Service Bus namespace as the event backbone (ADR-0008). Event Hubs only for the residual integration-boundary use cases called out in ADR-0008.
- MUST implement DLQ for every subscription with alerting and replay tooling (DLQ pattern).
- MUST apply producer and consumer throttling against the shared bus (Service Bus Topic Throttling) — no service may saturate the shared namespace.
- MUST design consumers to be idempotent and tolerate out-of-order delivery.
- SHOULD define per-subscription backpressure and load-shedding posture before rollout.
5. Reliability & resilience
- MUST deploy across 3 Availability Zones (multi-AZ) for every compute + data tier that supports it.
- MUST be stateless at the compute layer; session state in Redis or the client (§14).
- MUST implement graceful shutdown with in-flight drain (no dropped messages on scale-in or deploy).
- MUST define health probes:
/healthz(liveness),/readyz(readiness including dependency checks). - MUST implement client-side resilience — retries with exponential back-off + jitter, timeouts, circuit breakers on every outbound dependency.
- MUST implement server-side resilience — request throttling, load shedding, prioritization of critical requests.
- MUST validate and sanitize every input (fuzz-test critical surfaces).
- MUST identify and document critical dependencies; minimize them (§17 Failure containment).
- MUST define RTO / RPO for the service and align backup + DR strategy (DR capability).
- MUST support rollback of every change (§25, ADR-0024).
- SHOULD exercise fault-injection / chaos drills at least once per PI (Graceful degradation).
6. Scalability & performance
- MUST autoscale independently on load-appropriate signals (§14). Document the scale unit and headroom target.
- MUST map load to the capacity model — declare peak request/event rate the service will handle.
- MUST minimize network I/O — batch, compress, cache (Redis cache).
- MUST partition state by tenant / customer for horizontal scale.
- SHOULD publish 4 golden signals (Latency, Traffic, Errors, Saturation) as first-class SLIs.
- SHOULD define an SLO per critical endpoint aligned with the 99.9 % platform target.
7. Security
- MUST use Microsoft Entra ID for identity (ADR-0012); no local user stores.
- MUST authenticate service-to-service with Managed Identity (§12, ADR-0013). Client-secret creds are prohibited; migration in progress must be tracked.
- MUST apply least privilege RBAC on every Azure resource and Entra app role (§22).
- MUST contain blast radius — separate identities per environment, separate subscriptions per environment (§23, Landing Zone).
- MUST store secrets in Key Vault; no secrets in code, config, container images, or logs. Use MI-based access.
- MUST enforce token boundaries — user JWT stops at the BFF; downstream calls use MI + capability (Auth / AuthZ).
- MUST enforce authZ at both UI and API layers using capability scopes.
- MUST run containers as non-root; images pass SAST + SCA + vulnerability scan (no known High/Critical CVEs) at build.
- MUST enforce the ADR-0025 network posture: Phase 1 —
ZPA-enforced firewall / NSG allowlists (no
0.0.0.0/0); Phase 2 — private endpoints on the target trajectory (Network Security, ADR-0025). - MUST produce a threat model at design time; refresh on every major change.
- SHOULD shift security left — dependency checks, container scans, static + dynamic analysis in CI.
8. Observability
- MUST emit structured logs (JSON) with correlation-ID and tenant/customer tag on every entry (Observability). Log level configurable at runtime; default WARN.
- MUST emit metrics for the 4 golden signals + business KPIs; export to Azure Monitor.
- MUST emit distributed traces (OpenTelemetry) — correlation IDs propagate through every hop, including SB messages.
- MUST define alerts on SLI violations, dependency health, DLQ growth, security events; route to the owning team’s channel.
- MUST provide dashboards (Managed Grafana) with the 4 golden signals + service-specific KPIs.
- MUST produce an immutable audit trail for every user/automation action (Audit Logs).
- MUST NOT log secrets, tokens, or unmasked PII.
9. CI/CD & release management
- MUST ship all infra as Terraform using shared modules from
Anvil/tf-modules/(§25, ADR-0024). No manual portal changes above Alpha. - MUST use the enforced push-to-main + PR-validation GitHub Actions workflows.
- MUST register the service in
service-map.jsonand adopt the Automation Account custom protection rules for prod deploys. - MUST provide fully automated deploy + automated rollback (blue/green, slot swap, or canary).
- MUST gate promotion on unit + integration + contract tests.
- MUST ship behind a feature flag for behavior changes (Feature Flags) — flags sourced from Azure App Configuration.
- MUST produce end-to-end traceability: PR → build → artefact → deploy → env, for audit and compliance.
- SHOULD publish semantic versions for shared artefacts.
10. Landing zone & networking
- MUST deploy into the shared ION spoke for the target environment; no bespoke spokes (Landing Zone).
- MUST route ingress via Front Door → App Gateway/WAF → APIM (ADR-0015 Edge, ADR-0017 APIM).
- MUST enforce the platform network exposure control per
ADR-0025: today’s Phase 1
posture (ZPA App Connector IP allowlist + required Azure service tags;
no
0.0.0.0/0) with a Phase-2 trajectory toward private endpoints. Firewall / NSG rules sourced from the sharedtf-modules/helpers that exposezpa1/zpa2and APIM IPs — no per-team hard-coded IPs. - MUST follow the platform DNS + subnet allocation policy.
11. Cost
- MUST tag every resource with
system,service,env,owner,cost-center(Cost Governance). - MUST choose SKUs per the platform SKU strategy.
- SHOULD publish a cost model per 100 k incidents/day (or per unit of the service’s load) and re-verify quarterly.
12. Documentation
- MUST publish a service page under
design/systems/<system>/services/<service>.mdconforming todocumentation-standards.md. - MUST declare which patterns are applied and which capabilities are demonstrated.
- MUST register bounded-context / domain events in
design/data-and-events/when event-sourced. - MUST publish an AsyncAPI contract for every event channel and an OpenAPI spec for every REST surface.
- MUST author a runbook covering: health probes, common failure modes, DLQ replay, rollback, on-call playbook.
Cross-cutting principle-to-checklist map
| Principle | Enforced by section(s) |
|---|---|
| §1 Volatility-based decomposition | 1 |
| §2 Microservices | 1, 3 |
| §3 DDD | 1, 12 |
| §4 Event-driven | 2, 4 |
| §5 No direct S2S calls | 1, 2 |
| §6 Choreography | 1, 4 |
| §7 ECST | 2 |
| §8 Event Sourcing | 3, 12 |
| §9 CloudEvents + AsyncAPI | 2, 12 |
| §10 Trilateral API | 2 |
| §11 Automation First | 3, 8, 9 |
| §12 Managed Identity | 3, 7 |
| §13 BFF | 2, 7 |
| §14 Independent scalability | 5, 6 |
| §15 Same pipeline / isolated envs | 9, 10 |
| §16 Observability | 8 |
| §17 Failure containment | 5, 7 |
| §18 Data residency & compliance | 3, 7, 10 |
| §19 Cost is a design constraint | 11 |
| §20 Vendor lock-in mitigation | 3, 4 |
| §21 Azure-native first | 3, 4, 7 |
| §22 Least privilege | 7 |
| §23 Blast-radius containment | 5, 7, 10 |
| §24 Azure Landing Zone | 10 |
| §25 IaC-first, no manual changes | 9, 10 |
Related
- Principles
- Patterns catalog
- Well-Architected capabilities
- ADRs
- ORR Checklist — Go-Live operational readiness
- API Standards
- Coding Standards
- Documentation Standards