Roll it out
Stormbreaker works for one team, alone, in a QA or staging environment. Every later step adds teams, and none changes what came before.
Diagram: Rolling stormbreaker out. Four stages. One team alone: its own orchestrator in its namespace, its service in two regions with a dispatcher, and a stand-in for its tracking neighbor, a mock or a topic nobody else reads. Two teams: the orchestrator moves to a platform namespace, the tracking team takes part with a dispatcher of its own in place of the stand-in, and a courier mock stands in for the partner. A flow: every team on the delivery path has a dispatcher, in a second environment too. The organization: several groups, in every shared environment, each environment with one orchestrator.
1/4One team, alone. You can load test your own application in a QA or staging environment without anyone else. Run the orchestrator in your own namespace, deploy a dispatcher for your service, and keep your traffic from your neighbors: a mock of the tracking service, or a topic nobody else reads.
2/4Two teams. The orchestrator moves to a platform namespace, run by whoever owns the environment. The tracking team joins by deploying a dispatcher of its own, and its real service replaces the stand-in. A mock still stands in for the courier, whom nobody here owns.
3/4A flow, and a second environment. Every team on the delivery path takes part, each with a dispatcher, in every region. A second environment, perf, gets an orchestrator of its own, and the same teams’ dispatchers register with it too.
4/4The organization. Several groups, one for each kind of traffic, in every shared environment, each with one orchestrator. No step changed what came before, and any team can still sit out, stood in for by a mock.
┌╌ staging ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┐ ┌────────────────────────────────────────────┐ ╎ │ ╎ ┌╌ parcels namespace ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌│╌╌╌╌╌╌╌╌╌╌╌┐ ╎ │ ╎ ╎ v ╎ ╎ │ ╎ ╎ ╔═ orchestrator ══╗ ┌─ parcels ────────┐ ╎ ┌─ tracking stand-in ──┐ ╎ │ ╎┌──>║ yours, for now ║ │ east · west ├─────>│ a mock, or a topic │ ╎ │ ╎│ ╎ ╚════════╤════════╝ └──────────────────┘ ╎ │ nobody else reads │ ╎ │ ╎│ ╎ │ ^ ╎ │ │ ╎ ╔═ CI runner ╧╗ ╎│ ╎ │ │ ╎ └──────────────────────┘ ╎ ║ your suite ╟────┘ ╎ │ │ ╎ ╎ ╚═════════════╝ ╎ ╎ v │ ╎ ╎ ╎ ╎ ┌─ dispatcher ────┐ own door │ ╎ ╎ ╎ ╎ │ east · west ├───────────────┘ ╎ ╎ ╎ ╎ └─────────────────┘ ╎ ╎ ╎ ╎ ╎ ╎ ╎ ╎ ╎ ╎ ╎ ╎ ╎ ╎ ╎ └╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┘ ╎ ╎ ╎ └╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┘
┌╌ staging ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┐ ┌────────────────────────────────────────────┐ ╎ │ ╎ ┌╌ platform ╌╌╌╌╌╌╌╌╌╌┐ ┌╌ parcels ╌│╌╌╌╌╌╌╌╌╌╌╌╌┐ ┌╌ tracking ╌╌╌╌╌╌╌╌╌╌╌╌┐╎ │ ╎ ╎ ╎ ╎ v ╎ ╎ ╎╎ │ ╎ ╎ ╔═ orchestrator ══╗ ╎ ╎ ┌─ parcels ──────────┐ ╎ ╎ ┌─ tracking ────────┐ ╎╎ │ ╎┌──>║ one, shared ║ ╎ ╎ │ east · west ├─────>│ service · Postgres│ ╎╎ │ ╎│ ╎ ╚═════════════════╝ ╎ ╎ └────────────────────┘ ╎ ╎ └───────────────────┘ ╎╎ │ ╎│ ╎ ╎ ╎ ^ ╎ ╎ ^ ╎╎ ╔═ CI runner ╧╗ ╎│ └╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┘ ╎ │ ╎ ╎ │ ╎╎ ║ your suite ╟────┘ ╎ │ own door ╎ ╎ │ own door ╎╎ ╚═════════════╝ ╎ ╎ │ ╎ ╎ │ ╎╎ ╎ ╎ │ ╎ ╎ │ ╎╎ ╎ ┌─ courier mock ──────┐ ╎ ┌─ dispatcher ───────┐ ╎ ╎ ┌─ dispatcher ──────┐ ╎╎ ╎ │ a partner’s stand-in│ ╎ │ east · west │ ╎ ╎ │ shared │ ╎╎ ╎ └─────────────────────┘ ╎ └────────────────────┘ ╎ ╎ └───────────────────┘ ╎╎ ╎ ╎ ╎ ╎ ╎╎ ╎ ╎ ╎ ╎ ╎╎ ╎ ╎ ╎ ╎ ╎╎ ╎ └╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┘ └╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┘╎ └╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┘
┌────────────────────────────────────────────────────────────────┐ │ ┌╌ staging ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┐ ┌╌ perf ╌╌╌╌╌╌╌╌╌╌│╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┐ │ ╎ ╎ ╎ v ╎ │ ╎ ╔═ orchestrator ═══════════════════╗ ╎ ╎ ╔═ orchestrator ═══════════════════╗ ╎ │ ┌─>║ one per environment ║ ╎ ╎ ║ one per environment ║ ╎ │ │╎ ╚══════════════════════════════════╝ ╎ ╎ ╚══════════════════════════════════╝ ╎ │ │╎ ╎ ╎ ╎ │ │╎ group delivery ╎ ╎ group delivery ╎ ╔═ CI runner ╧╗ │╎ ╎ ╎ ╎ ║ 2 pipelines ╟──┘╎ parcels east · west dispatcher ╎ ╎ parcels east · west dispatcher ╎ ╚═════════════╝ ╎ ╎ ╎ ╎ ╎ tracking shared dispatcher ╎ ╎ tracking shared dispatcher ╎ ╎ ╎ ╎ ╎ ╎ billing shared dispatcher ╎ ╎ billing shared dispatcher ╎ ╎ ╎ ╎ ╎ ╎ courier a mock ╎ ╎ courier a mock ╎ ╎ ╎ ╎ ╎ ╎ ╎ ╎ ╎ └╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┘ └╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┘
┌╌ dev ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┐ ┌╌ staging ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┐ ┌╌ perf ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┐
╎ ╎ ╎ ╎ ╎ ╎
╎ ╔═ orchestrator ══════╗ ╎ ╎ ╔═ orchestrator ══════╗ ╎ ╎ ╔═ orchestrator ══════╗ ╎
╎ ║ one per environment ║ ╎ ╎ ║ one per environment ║ ╎ ╎ ║ one per environment ║ ╎
╎ ╚═════════════════════╝ ╎ ╎ ╚═════════════════════╝ ╎ ╎ ╚═════════════════════╝ ╎
╎ ╎ ╎ ╎ ╎ ╎
╎ groups ╎ ╎ groups ╎ ╎ groups ╎
╎ ╎ ╎ ╎ ╎ ╎
a pipeline ╎ delivery ╎ ╎ delivery ╎ ╎ delivery ╎
points at one ╎ ╎ ╎ ╎ ╎ ╎
environment ╎ returns ╎ ╎ returns ╎ ╎ returns ╎
╎ ╎ ╎ ╎ ╎ ╎
╎ billing ╎ ╎ billing ╎ ╎ billing ╎
╎ ╎ ╎ ╎ ╎ ╎
╎ ╎ ╎ ╎ ╎ ╎
└╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┘ └╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┘ └╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┘
1. One team, alone
Section titled “1. One team, alone”-
Run the orchestrator in your own namespace, with a token (deploy the orchestrator).
-
Make a group of your own. A dispatcher’s joining makes one; without a dispatcher, make it once:
Terminal window stormbreaker groups create parcels # uses STORMBREAKER_ORCHESTRATOR_URL and STORMBREAKER_TOKEN -
Add a dispatcher for your application (write a dispatcher), so that something removes what the traffic created. Without one, the run, the load and the SLO checks all work, but your data stays. Join your group and require yourself:
Terminal window STORMBREAKER_DISPATCHER=parcelsSTORMBREAKER_INSTANCE=east # stable: the region, never the pod's nameSTORMBREAKER_GROUPS=parcels@stormbreaker-group/parcels @stormbreaker-requires/parcelsFeature: Parcels hold their load -
Keep your traffic away from your neighbors. Point the services your application calls at mocks of them (mock partners). What a mock’s stubs do not match passes through to the real one, so traffic outside your tests still reaches it. Publish your events to a topic of your own.
-
Run it and read the journal: what was declared, who prepared, what was removed. The first few times, check by hand that nothing is left.
2. A second team
Section titled “2. A second team”When the team downstream wants in:
- Move the orchestrator to whoever will own it for the environment, usually a platform team. Once two teams share an environment, it has one orchestrator.
- Make a group for the flow, such as
delivery, and have both dispatchers join it. Keep the first team’s own group for runs that should reach only its application. - Replace the mock of the team that now takes part with the real service, and require both:
@stormbreaker-requires/parcels,tracking. - Practice the failures (in an organization): kill the suite mid-run (the run is abandoned after 30 s and cleaned up), restart a dispatcher mid-cleanup (it picks the run up again), and take the orchestrator down for a minute (runs carry on when it returns).
3. The whole flow
Section titled “3. The whole flow”- Every team on the path that keeps data takes part, or is stood in for, including every consumer of every topic the traffic reaches.
- An instance per region:
east,west. - A perf environment, if load tests and everyday work should not share one, with its own orchestrator, dispatchers and token.
- SLO checks over the run’s window (check SLOs).
- Schedule load tests that share services. Runs that share a dispatcher never overlap: the second waits its turn. Runs in groups with nothing in common do run side by side, and an SLO check on a service both reach sees both runs’ load. Use a calendar, or a CI concurrency group per environment.
4. The organization
Section titled “4. The organization”- A group per flow, joined by the dispatchers of the applications in it.
- One orchestrator per environment, owned by the platform team, who back it up and upgrade it before the dispatchers (operating it).
- A dispatcher’s name is its application’s, held by one team. While its instances are live, another team registering it is refused (
409). - Read every run that did not pass. Its journal names each instance that did not complete. Within 72 hours of closing (
--footprint-retention), the run’s claims are atGET /runs/{id}/footprint/claimsfor a small run, or a page at a time atGET /runs/{id}/footprint; after that,stormbreaker streams idsregenerates the suite’s identities.
A team joining: the checklist
Section titled “A team joining: the checklist”- The dispatcher is named for the application.
- Each instance has a stable name, a region or partition, in
STORMBREAKER_INSTANCE, and runs as one process. - It joins the groups of its flows (
STORMBREAKER_GROUPS). - The orchestrator can reach its port through its namespace’s NetworkPolicy.
-
Preparedeclares a pure function of what it walks, in the same order each round. -
Cleanupis idempotent, removes only the team’s own records, and checks they are gone before reporting them. - Records it cannot remove on demand get a clean-by date (clean up later).
- A consumer it waits for has a grace it can keep.
- Its dispatcher-sdk is on the orchestrator’s release.