Topology
Code runs in three places: the CI runner, the environment’s cluster, and each team’s namespace in it. Here is a run moving through them.
Diagram: A run through a shared environment. The suite runs on a CI runner outside the cluster. It opens a run on the environment's orchestrator, declares what its streams will create, and renews its lease. The orchestrator notifies each team's dispatcher with signed webhooks, and the dispatchers report back what they derive and prepare. When every required dispatcher has prepared on the current footprint, the gate opens and the suite sends load to the parcels service, which feeds the tracking service, which books collections with a mocked courier. The suite judges SLOs from Prometheus. Then each dispatcher removes and verifies its own team's data, and the run closes.
1/7Open. The suite opens a run on the environment’s orchestrator. Every dispatcher in the run’s group is notified, and takes part.
2/7Prepare. The suite declares every identity its streams will create. Each team’s dispatcher derives what its own systems will create from them, declares that, and prepares.
3/7The gate opens. Every required dispatcher has prepared, in a round that began from the footprint as it is now. There is nothing left to derive, so traffic may flow.
4/7Traffic. Load goes out at the declared rate, open model, through the real front door. The parcels service feeds the tracking service, which books collections with a mocked courier. The suite renews its lease throughout.
5/7Judge. The run’s window closes. The suite judges its SLOs over that window from Prometheus: buckets from every server merged, never percentiles averaged.
6/7Clean up. Each dispatcher removes what its own team’s systems created, checks it is gone, and reports it removed and verified. No component touches another team’s data.
7/7Closed. Every dispatcher completed, on the footprint as it is now. The run closes, and its journal tells what happened, who prepared, and what was cleaned up.
┌╌ the shared environment ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┐ ╎ ╎ ╎ ╔═ orchestrator ═══════════════════╗ ╎ ╎ ║ one per environment ║ ╎ ╔═ CI runner ════════════════╗ ╎open, declare, heartbeat ║ runs · the gate · the footprint ║ ╎ ║ the suite: axx, with ╟─────────────────────────────>║ the journal ║ ╎ ║ stormbreaker’s packs ║ ╎ ║ gate: closed ║ ╎ ║ ║ ╎ ╚═════╤═════════════════════╤══════╝ ╎ ║ · streams ║ ╎ │ │ ╎ ║ · stormbreaker-core ║ ╎ ┌──────────┘ notify ↓ report ↑ │ ╎ ║ · stormbreaker-rest ║ ╎ ┌╌ parcels team ╌╌│╌╌╌╌╌╌╌╌╌╌┐ ┌╌ tracking team ╌╌│╌╌╌╌╌╌╌╌┐ ╎ ║ · stormbreaker-kafka ║ ╎ ╎ v ╎ ╎ v ╎ ╎ ║ · stormbreaker-prometheus ║ ╎ ╎ ┌─ dispatcher ──┐ ╎ ╎ ┌─ dispatcher ──┐╎ ╎ ║ ║load╎ ╎ │ its hooks │ ╎ ╎ │ its hooks │╎ ╎ ║ ╟──────┐╎ └──────┬────────┘ ╎ ╎ └──────┬────────┘╎ ╎ ║ ║ ╎ │╎ │ prepare ╎ ╎ │ prepare ╎ ╎ ╚═══════════╤════════════════╝ ╎ │╎ v clean up ╎ ╎ v clean up╎ ╎ │ ╎ │╎ ┌─ parcels ─┐ ┌─ data ──┐ ╎ ╎ ┌─ tracking ┐ ┌─ data ──┐╎ ╎ │ ╎ └─>│ service ├─>│ parcels │ ╎ ╎ │ service ├─>│ Postgres│╎ ╎ │ ╎ ╎ │ 2 regions │ │ │ ╎ ╎ │ │ │ │╎ ╎ │ ╎ ╎ └─────┬─────┘ └─────────┘ ╎ ╎ └────────┬──┘ └─────────┘╎ ╎ │ ╎ └╌╌╌╌╌╌╌│╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┘ └╌╌╌╌╌╌╌^╌╌│╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┘ ╎ │ ╎ │ events │ │ books collections╎ │ ╎ └───────────────────────────────┘ v ╎ │ ╎ ┌─ Prometheus ───────┐ ┌─ courier mock ───────┐ ╎ │ SLO queries ╎ │ per app or region │ │ axx-wiremock │ ╎ └───────────────────────>│ or one global view │ │ in the cluster only │ ╎ ╎ └────────────────────┘ └──────────────────────┘ ╎ ╎ ╎ └╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┘
┌╌ the shared environment ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┐ ╎ ╎ ╎ ╔═ orchestrator ═══════════════════╗ ╎ ╎ ║ one per environment ║ ╎ ╔═ CI runner ════════════════╗ ╎open, declare, heartbeat ║ runs · the gate · the footprint ║ ╎ ║ the suite: axx, with ╟─────────────────────────────>║ the journal ║ ╎ ║ stormbreaker’s packs ║ ╎ ║ gate: closed ║ ╎ ║ ║ ╎ ╚═════╤═════════════════════╤══════╝ ╎ ║ · streams ║ ╎ │ │ ╎ ║ · stormbreaker-core ║ ╎ ┌──────────┘ notify ↓ report ↑ │ ╎ ║ · stormbreaker-rest ║ ╎ ┌╌ parcels team ╌╌│╌╌╌╌╌╌╌╌╌╌┐ ┌╌ tracking team ╌╌│╌╌╌╌╌╌╌╌┐ ╎ ║ · stormbreaker-kafka ║ ╎ ╎ v ╎ ╎ v ╎ ╎ ║ · stormbreaker-prometheus ║ ╎ ╎ ┌─ dispatcher ──┐ ╎ ╎ ┌─ dispatcher ──┐╎ ╎ ║ ║load╎ ╎ │ its hooks │ ╎ ╎ │ its hooks │╎ ╎ ║ ╟──────┐╎ └──────┬────────┘ ╎ ╎ └──────┬────────┘╎ ╎ ║ ║ ╎ │╎ │ prepare ╎ ╎ │ prepare ╎ ╎ ╚═══════════╤════════════════╝ ╎ │╎ v clean up ╎ ╎ v clean up╎ ╎ │ ╎ │╎ ┌─ parcels ─┐ ┌─ data ──┐ ╎ ╎ ┌─ tracking ┐ ┌─ data ──┐╎ ╎ │ ╎ └─>│ service ├─>│ parcels │ ╎ ╎ │ service ├─>│ Postgres│╎ ╎ │ ╎ ╎ │ 2 regions │ │ │ ╎ ╎ │ │ │ │╎ ╎ │ ╎ ╎ └─────┬─────┘ └─────────┘ ╎ ╎ └────────┬──┘ └─────────┘╎ ╎ │ ╎ └╌╌╌╌╌╌╌│╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┘ └╌╌╌╌╌╌╌^╌╌│╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┘ ╎ │ ╎ │ events │ │ books collections╎ │ ╎ └───────────────────────────────┘ v ╎ │ ╎ ┌─ Prometheus ───────┐ ┌─ courier mock ───────┐ ╎ │ SLO queries ╎ │ per app or region │ │ axx-wiremock │ ╎ └───────────────────────>│ or one global view │ │ in the cluster only │ ╎ ╎ └────────────────────┘ └──────────────────────┘ ╎ ╎ ╎ └╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┘
┌╌ the shared environment ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┐ ╎ ╎ ╎ ╔═ orchestrator ═══════════════════╗ ╎ ╎ ║ one per environment ║ ╎ ╔═ CI runner ════════════════╗ ╎open, declare, heartbeat ║ runs · the gate · the footprint ║ ╎ ║ the suite: axx, with ╟─────────────────────────────>║ the journal ║ ╎ ║ stormbreaker’s packs ║ ╎ ║ gate: open ║ ╎ ║ ║ ╎ ╚═════╤═════════════════════╤══════╝ ╎ ║ · streams ║ ╎ │ │ ╎ ║ · stormbreaker-core ║ ╎ ┌──────────┘ notify ↓ report ↑ │ ╎ ║ · stormbreaker-rest ║ ╎ ┌╌ parcels team ╌╌│╌╌╌╌╌╌╌╌╌╌┐ ┌╌ tracking team ╌╌│╌╌╌╌╌╌╌╌┐ ╎ ║ · stormbreaker-kafka ║ ╎ ╎ v ╎ ╎ v ╎ ╎ ║ · stormbreaker-prometheus ║ ╎ ╎ ┌─ dispatcher ──┐ ╎ ╎ ┌─ dispatcher ──┐╎ ╎ ║ ║load╎ ╎ │ its hooks │ ╎ ╎ │ its hooks │╎ ╎ ║ ╟──────┐╎ └──────┬────────┘ ╎ ╎ └──────┬────────┘╎ ╎ ║ ║ ╎ │╎ │ prepare ╎ ╎ │ prepare ╎ ╎ ╚═══════════╤════════════════╝ ╎ │╎ v clean up ╎ ╎ v clean up╎ ╎ │ ╎ │╎ ┌─ parcels ─┐ ┌─ data ──┐ ╎ ╎ ┌─ tracking ┐ ┌─ data ──┐╎ ╎ │ ╎ └─>│ service ├─>│ parcels │ ╎ ╎ │ service ├─>│ Postgres│╎ ╎ │ ╎ ╎ │ 2 regions │ │ │ ╎ ╎ │ │ │ │╎ ╎ │ ╎ ╎ └─────┬─────┘ └─────────┘ ╎ ╎ └────────┬──┘ └─────────┘╎ ╎ │ ╎ └╌╌╌╌╌╌╌│╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┘ └╌╌╌╌╌╌╌^╌╌│╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┘ ╎ │ ╎ │ events │ │ books collections╎ │ ╎ └───────────────────────────────┘ v ╎ │ ╎ ┌─ Prometheus ───────┐ ┌─ courier mock ───────┐ ╎ │ SLO queries ╎ │ per app or region │ │ axx-wiremock │ ╎ └───────────────────────>│ or one global view │ │ in the cluster only │ ╎ ╎ └────────────────────┘ └──────────────────────┘ ╎ ╎ ╎ └╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┘
┌╌ the shared environment ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┐ ╎ ╎ ╎ ╔═ orchestrator ═══════════════════╗ ╎ ╎ ║ one per environment ║ ╎ ╔═ CI runner ════════════════╗ ╎open, declare, heartbeat ║ runs · the gate · the footprint ║ ╎ ║ the suite: axx, with ╟─────────────────────────────>║ the journal ║ ╎ ║ stormbreaker’s packs ║ ╎ ║ gate: open ║ ╎ ║ ║ ╎ ╚═════╤═════════════════════╤══════╝ ╎ ║ · streams ║ ╎ │ │ ╎ ║ · stormbreaker-core ║ ╎ ┌──────────┘ notify ↓ report ↑ │ ╎ ║ · stormbreaker-rest ║ ╎ ┌╌ parcels team ╌╌│╌╌╌╌╌╌╌╌╌╌┐ ┌╌ tracking team ╌╌│╌╌╌╌╌╌╌╌┐ ╎ ║ · stormbreaker-kafka ║ ╎ ╎ v ╎ ╎ v ╎ ╎ ║ · stormbreaker-prometheus ║ ╎ ╎ ┌─ dispatcher ──┐ ╎ ╎ ┌─ dispatcher ──┐╎ ╎ ║ ║load╎ ╎ │ its hooks │ ╎ ╎ │ its hooks │╎ ╎ ║ ╟──────┐╎ └──────┬────────┘ ╎ ╎ └──────┬────────┘╎ ╎ ║ ║ ╎ │╎ │ prepare ╎ ╎ │ prepare ╎ ╎ ╚═══════════╤════════════════╝ ╎ │╎ v clean up ╎ ╎ v clean up╎ ╎ │ ╎ │╎ ┌─ parcels ─┐ ┌─ data ──┐ ╎ ╎ ┌─ tracking ┐ ┌─ data ──┐╎ ╎ │ ╎ └─>│ service ├─>│ parcels │ ╎ ╎ │ service ├─>│ Postgres│╎ ╎ │ ╎ ╎ │ 2 regions │ │ │ ╎ ╎ │ │ │ │╎ ╎ │ ╎ ╎ └─────┬─────┘ └─────────┘ ╎ ╎ └────────┬──┘ └─────────┘╎ ╎ │ ╎ └╌╌╌╌╌╌╌│╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┘ └╌╌╌╌╌╌╌^╌╌│╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┘ ╎ │ ╎ │ events │ │ books collections╎ │ ╎ └───────────────────────────────┘ v ╎ │ ╎ ┌─ Prometheus ───────┐ ┌─ courier mock ───────┐ ╎ │ SLO queries ╎ │ per app or region │ │ axx-wiremock │ ╎ └───────────────────────>│ or one global view │ │ in the cluster only │ ╎ ╎ └────────────────────┘ └──────────────────────┘ ╎ ╎ ╎ └╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┘
┌╌ the shared environment ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┐ ╎ ╎ ╎ ╔═ orchestrator ═══════════════════╗ ╎ ╎ ║ one per environment ║ ╎ ╔═ CI runner ════════════════╗ ╎open, declare, heartbeat ║ runs · the gate · the footprint ║ ╎ ║ the suite: axx, with ╟─────────────────────────────>║ the journal ║ ╎ ║ stormbreaker’s packs ║ ╎ ║ window closed ║ ╎ ║ ║ ╎ ╚═════╤═════════════════════╤══════╝ ╎ ║ · streams ║ ╎ │ │ ╎ ║ · stormbreaker-core ║ ╎ ┌──────────┘ notify ↓ report ↑ │ ╎ ║ · stormbreaker-rest ║ ╎ ┌╌ parcels team ╌╌│╌╌╌╌╌╌╌╌╌╌┐ ┌╌ tracking team ╌╌│╌╌╌╌╌╌╌╌┐ ╎ ║ · stormbreaker-kafka ║ ╎ ╎ v ╎ ╎ v ╎ ╎ ║ · stormbreaker-prometheus ║ ╎ ╎ ┌─ dispatcher ──┐ ╎ ╎ ┌─ dispatcher ──┐╎ ╎ ║ ║load╎ ╎ │ its hooks │ ╎ ╎ │ its hooks │╎ ╎ ║ ╟──────┐╎ └──────┬────────┘ ╎ ╎ └──────┬────────┘╎ ╎ ║ ║ ╎ │╎ │ prepare ╎ ╎ │ prepare ╎ ╎ ╚═══════════╤════════════════╝ ╎ │╎ v clean up ╎ ╎ v clean up╎ ╎ │ ╎ │╎ ┌─ parcels ─┐ ┌─ data ──┐ ╎ ╎ ┌─ tracking ┐ ┌─ data ──┐╎ ╎ │ ╎ └─>│ service ├─>│ parcels │ ╎ ╎ │ service ├─>│ Postgres│╎ ╎ │ ╎ ╎ │ 2 regions │ │ │ ╎ ╎ │ │ │ │╎ ╎ │ ╎ ╎ └─────┬─────┘ └─────────┘ ╎ ╎ └────────┬──┘ └─────────┘╎ ╎ │ ╎ └╌╌╌╌╌╌╌│╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┘ └╌╌╌╌╌╌╌^╌╌│╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┘ ╎ │ ╎ │ events │ │ books collections╎ │ ╎ └───────────────────────────────┘ v ╎ │ ╎ ┌─ Prometheus ───────┐ ┌─ courier mock ───────┐ ╎ │ SLO queries ╎ │ per app or region │ │ axx-wiremock │ ╎ └───────────────────────>│ or one global view │ │ in the cluster only │ ╎ ╎ └────────────────────┘ └──────────────────────┘ ╎ ╎ ╎ └╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┘
┌╌ the shared environment ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┐ ╎ ╎ ╎ ╔═ orchestrator ═══════════════════╗ ╎ ╎ ║ one per environment ║ ╎ ╔═ CI runner ════════════════╗ ╎open, declare, heartbeat ║ runs · the gate · the footprint ║ ╎ ║ the suite: axx, with ╟─────────────────────────────>║ the journal ║ ╎ ║ stormbreaker’s packs ║ ╎ ║ cleanup ║ ╎ ║ ║ ╎ ╚═════╤═════════════════════╤══════╝ ╎ ║ · streams ║ ╎ │ │ ╎ ║ · stormbreaker-core ║ ╎ ┌──────────┘ notify ↓ report ↑ │ ╎ ║ · stormbreaker-rest ║ ╎ ┌╌ parcels team ╌╌│╌╌╌╌╌╌╌╌╌╌┐ ┌╌ tracking team ╌╌│╌╌╌╌╌╌╌╌┐ ╎ ║ · stormbreaker-kafka ║ ╎ ╎ v ╎ ╎ v ╎ ╎ ║ · stormbreaker-prometheus ║ ╎ ╎ ┌─ dispatcher ──┐ ╎ ╎ ┌─ dispatcher ──┐╎ ╎ ║ ║load╎ ╎ │ its hooks │ ╎ ╎ │ its hooks │╎ ╎ ║ ╟──────┐╎ └──────┬────────┘ ╎ ╎ └──────┬────────┘╎ ╎ ║ ║ ╎ │╎ │ prepare ╎ ╎ │ prepare ╎ ╎ ╚═══════════╤════════════════╝ ╎ │╎ v clean up ╎ ╎ v clean up╎ ╎ │ ╎ │╎ ┌─ parcels ─┐ ┌─ data ──┐ ╎ ╎ ┌─ tracking ┐ ┌─ data ──┐╎ ╎ │ ╎ └─>│ service ├─>│ parcels │ ╎ ╎ │ service ├─>│ Postgres│╎ ╎ │ ╎ ╎ │ 2 regions │ │ │ ╎ ╎ │ │ │ │╎ ╎ │ ╎ ╎ └─────┬─────┘ └─────────┘ ╎ ╎ └────────┬──┘ └─────────┘╎ ╎ │ ╎ └╌╌╌╌╌╌╌│╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┘ └╌╌╌╌╌╌╌^╌╌│╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┘ ╎ │ ╎ │ events │ │ books collections╎ │ ╎ └───────────────────────────────┘ v ╎ │ ╎ ┌─ Prometheus ───────┐ ┌─ courier mock ───────┐ ╎ │ SLO queries ╎ │ per app or region │ │ axx-wiremock │ ╎ └───────────────────────>│ or one global view │ │ in the cluster only │ ╎ ╎ └────────────────────┘ └──────────────────────┘ ╎ ╎ ╎ └╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┘
┌╌ the shared environment ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┐ ╎ ╎ ╎ ╔═ orchestrator ═══════════════════╗ ╎ ╎ ║ one per environment ║ ╎ ╔═ CI runner ════════════════╗ ╎open, declare, heartbeat ║ runs · the gate · the footprint ║ ╎ ║ the suite: axx, with ╟─────────────────────────────>║ the journal ║ ╎ ║ stormbreaker’s packs ║ ╎ ║ run closed ✓ ║ ╎ ║ ║ ╎ ╚═════╤═════════════════════╤══════╝ ╎ ║ · streams ║ ╎ │ │ ╎ ║ · stormbreaker-core ║ ╎ ┌──────────┘ notify ↓ report ↑ │ ╎ ║ · stormbreaker-rest ║ ╎ ┌╌ parcels team ╌╌│╌╌╌╌╌╌╌╌╌╌┐ ┌╌ tracking team ╌╌│╌╌╌╌╌╌╌╌┐ ╎ ║ · stormbreaker-kafka ║ ╎ ╎ v ╎ ╎ v ╎ ╎ ║ · stormbreaker-prometheus ║ ╎ ╎ ┌─ dispatcher ──┐ ╎ ╎ ┌─ dispatcher ──┐╎ ╎ ║ ║load╎ ╎ │ its hooks │ ╎ ╎ │ its hooks │╎ ╎ ║ ╟──────┐╎ └──────┬────────┘ ╎ ╎ └──────┬────────┘╎ ╎ ║ ║ ╎ │╎ │ prepare ╎ ╎ │ prepare ╎ ╎ ╚═══════════╤════════════════╝ ╎ │╎ v clean up ╎ ╎ v clean up╎ ╎ │ ╎ │╎ ┌─ parcels ─┐ ┌─ data ──┐ ╎ ╎ ┌─ tracking ┐ ┌─ data ──┐╎ ╎ │ ╎ └─>│ service ├─>│ parcels │ ╎ ╎ │ service ├─>│ Postgres│╎ ╎ │ ╎ ╎ │ 2 regions │ │ │ ╎ ╎ │ │ │ │╎ ╎ │ ╎ ╎ └─────┬─────┘ └─────────┘ ╎ ╎ └────────┬──┘ └─────────┘╎ ╎ │ ╎ └╌╌╌╌╌╌╌│╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┘ └╌╌╌╌╌╌╌^╌╌│╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┘ ╎ │ ╎ │ events │ │ books collections╎ │ ╎ └───────────────────────────────┘ v ╎ │ ╎ ┌─ Prometheus ───────┐ ┌─ courier mock ───────┐ ╎ │ SLO queries ╎ │ per app or region │ │ axx-wiremock │ ╎ └───────────────────────>│ or one global view │ │ in the cluster only │ ╎ ╎ └────────────────────┘ └──────────────────────┘ ╎ ╎ ╎ └╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┘
| Where | What | How many |
|---|---|---|
| The CI runner | the suite: axx, with stormbreaker’s packs, generating streams and driving load | one per run (spreading a run across runners is on the roadmap) |
| The environment’s cluster | the orchestrator, and the mocks of partners nobody there owns | one orchestrator per environment; one mock per partner per environment |
| Each team’s namespace | the team’s services, and its dispatcher | one dispatcher per app per environment, or per partition where state is partitioned |
The rules
Section titled “The rules”- The suite runs on the runner, never in the cluster. The runner reaches the front doors, the topics, the metrics and the orchestrator directly, with no proxy, port-forward or tunnel. That reach is a requirement of the environment.
- One orchestrator per environment. It is small, it never blocks traffic itself, and its one writer is what limits it (scale).
- A dispatcher per app, not per pod. A replica of the app is not a dispatcher. A partition of its state might need one.
- A mock per partner per environment, inside the cluster only. It is never exposed. Its admin surface stays in the cluster.
- Dependencies are reached through their mock. Its stubs stop the load, and what they do not match passes through to the real one.
- More regions means more URLs, not more machinery. A Prometheus service lists each region’s server. A dispatcher per region answers for its region.