Around your applications
Stormbreaker is not a platform your applications move onto. It wraps the applications an environment already runs, and they do not know it is there:
- The suite sends ordinary requests and events from the CI runner, through the same front doors everyone uses.
- The orchestrator, one per environment, keeps track of the runs.
- A dispatcher beside each application taking part prepares and cleans up through the doors the team already has: its admin API, its database, its tools.
- Mocks stand in for whoever is not taking part.
Diagram: Stormbreaker around your applications. Three teams’ applications in a shared environment: parcels, tracking and billing, and a courier’s API outside it. Stormbreaker adds pieces around them and changes none: a suite on the CI runner, an orchestrator, and a dispatcher beside each application that takes part, working through the team’s own door. A mock stands in for the courier, and another for billing, a team that is not taking part, so none of the run’s traffic reaches them. Whatever a mock has no stub for falls through to the real one. The traffic goes through the applications’ ordinary front doors, and each dispatcher cleans up through its own team’s door.
1/5The applications, as they are. Three teams’ applications in a shared environment, and a courier’s API outside it. Stormbreaker asks none of them to change: no SDK, no test flag, no tenant column, no new infrastructure.
2/5What stormbreaker adds, around them. A suite on the CI runner, one small orchestrator that only keeps track of runs, and a dispatcher beside each application that takes part. A dispatcher works through the door its team already has: an admin API, a database, its own tools.
3/5Mocks stand in. A mock stands in for the courier, a partner nobody here owns. Another stands in for billing, a team that is not taking part: the URL parcels already calls now leads to the mock, and billing sees none of the run. Whatever a mock has no stub for falls through to the real one, so traffic outside the run goes where it always went.
4/5The traffic goes through the front doors. The suite sends ordinary requests through the front door everyone uses. Parcels feeds tracking through Kafka as it always does. The calls that would leave the run land on the mocks. Nothing inside the applications changes.
5/5Each team cleans through its own door. After the traffic, each dispatcher removes what its own application created, through its own team’s door, and proves it. Taking part is optional: a team joins by deploying a dispatcher, and leaves by deleting it.
┌╌ the shared environment ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┐ ╎ ╎ ╎ ╎ ╎ ╎ ╎ ╎ ╎ ╎ ╎ ╎ ╎ ╎ ╎ ╎ ╎ ╎ ╎ ╎ ╎ ╎ ╎ ┌─ parcels ─────────┐ ┌─ tracking ────────┐ ┌╌ courier ╌╌╌╌╌╌╌╌╌╌╌╌┐ ╎ ╎ │ east · west ├────>│ service · Postgres├────>╎ a partner’s API, ╎ ╎ ╎ │ unchanged │kafka│ unchanged │ ╎ not in this cluster ╎ ╎ ╎ └─────────────────┬─┘ └───────────────────┘ └╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┘ ╎ ╎ │ ╎ ╎ │ ╎ ╎ │ ╎ ╎ │ ╎ ╎ │ ┌─ billing ─────────┐ ╎ ╎ └──────>│ another team, │ ╎ ╎ │ unchanged │ ╎ ╎ └───────────────────┘ ╎ └╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┘
┌╌ the shared environment ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┐ ╎ ╔═ orchestrator ═══════════════════╗ ╎ ┌──────────────>║ tracks the runs; holds no data ║ ╎ │ ╎ ║ ║ ╎ │ ╎ ╚══╤══════════════════════╤════════╝ ╎ │ ╎ │ │ ╎ │ ╎ v v ╎ │ ╎ ┌─ dispatcher ┐ ┌─ dispatcher ┐ ╎ │ ╎ │ east · west │ │ shared │ ╎ │ ╎ └──────┬──────┘ └──────┬──────┘ ╎ │ ╎ │ its own door │ its own door ╎ │ ╎ v v ╎ ╔═ CI runner ═╧═╗ ╎ ┌─ parcels ─────────┐ ┌─ tracking ────────┐ ┌╌ courier ╌╌╌╌╌╌╌╌╌╌╌╌┐ ╎ ║ the suite ╟────>│ east · west ├────>│ service · Postgres├────>╎ a partner’s API, ╎ ╎ ║ ║ ╎ │ unchanged │kafka│ unchanged │ ╎ not in this cluster ╎ ╎ ╚═══════════════╝ ╎ └─────────────────┬─┘ └───────────────────┘ └╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┘ ╎ ╎ │ ╎ ╎ │ ╎ ╎ │ ╎ ╎ │ ╎ ╎ │ ┌─ billing ─────────┐ ╎ ╎ └──────>│ another team, │ ╎ ╎ │ unchanged │ ╎ ╎ └───────────────────┘ ╎ └╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┘
┌╌ the shared environment ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┐ ╎ ╔═ orchestrator ═══════════════════╗ ╎ ┌──────────────>║ tracks the runs; holds no data ║ ╎ │ ╎ ║ ║ ╎ │ ╎ ╚══╤══════════════════════╤════════╝ ╎ │ ╎ │ │ ╎ │ ╎ v v ╎ │ ╎ ┌─ dispatcher ┐ ┌─ dispatcher ┐ ╎ │ ╎ │ east · west │ │ shared │ ╎ │ ╎ └──────┬──────┘ └──────┬──────┘ ╎ │ ╎ │ its own door │ its own door ╎ │ ╎ v v ╎ ╔═ CI runner ═╧═╗ ╎ ┌─ parcels ─────────┐ ┌─ tracking ────────┐ ┌─ courier mock ───────┐ ╎ ║ the suite ╟────>│ east · west ├────>│ service · Postgres├────>│ a stand-in: the rest │ ╎ ║ ║ ╎ │ unchanged │kafka│ unchanged │ │ passes on to courier │ ╎ ╚═══════════════╝ ╎ └─────────────────┬─┘ └───────────────────┘ └──────────────────────┘ ╎ ╎ │ ╎ ╎ │ ╎ ╎ │ ╎ ╎ │ ╎ ╎ │ ┌─ billing mock ────┐ ┌╌ billing ╌╌╌╌╌╌╌╌╌╌╌╌┐ ╎ ╎ └──────>│ a stand-in for a ├────>╎ not taking part: ╎ ╎ ╎ │ team sitting out │ ╎ sees none of the run ╎ ╎ ╎ └───────────────────┘ └╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┘ ╎ └╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┘
┌╌ the shared environment ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┐ ╎ ╔═ orchestrator ═══════════════════╗ ╎ ┌──────────────>║ tracks the runs; holds no data ║ ╎ │ ╎ ║ ║ ╎ │ ╎ ╚══╤══════════════════════╤════════╝ ╎ │ ╎ │ │ ╎ │ ╎ v v ╎ │ ╎ ┌─ dispatcher ┐ ┌─ dispatcher ┐ ╎ │ ╎ │ east · west │ │ shared │ ╎ │ ╎ └──────┬──────┘ └──────┬──────┘ ╎ │ ╎ │ its own door │ its own door ╎ │ ╎ v v ╎ ╔═ CI runner ═╧═╗ ╎ ┌─ parcels ─────────┐ ┌─ tracking ────────┐ ┌─ courier mock ───────┐ ╎ ║ the suite ╟────>│ east · west ├────>│ service · Postgres├────>│ a stand-in: the rest │ ╎ ║ ║ ╎ │ unchanged │kafka│ unchanged │ │ passes on to courier │ ╎ ╚═══════════════╝ ╎ └─────────────────┬─┘ └───────────────────┘ └──────────────────────┘ ╎ ╎ │ ╎ ╎ │ ╎ ╎ │ ╎ ╎ │ ╎ ╎ │ ┌─ billing mock ────┐ ┌╌ billing ╌╌╌╌╌╌╌╌╌╌╌╌┐ ╎ ╎ └──────>│ a stand-in for a ├────>╎ not taking part: ╎ ╎ ╎ │ team sitting out │ ╎ sees none of the run ╎ ╎ ╎ └───────────────────┘ └╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┘ ╎ └╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┘
┌╌ the shared environment ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┐ ╎ ╔═ orchestrator ═══════════════════╗ ╎ ┌──────────────>║ tracks the runs; holds no data ║ ╎ │ ╎ ║ ║ ╎ │ ╎ ╚══╤══════════════════════╤════════╝ ╎ │ ╎ │ │ ╎ │ ╎ v v ╎ │ ╎ ┌─ dispatcher ┐ ┌─ dispatcher ┐ ╎ │ ╎ │ east · west │ │ shared │ ╎ │ ╎ └──────┬──────┘ └──────┬──────┘ ╎ │ ╎ │ its own door │ its own door ╎ │ ╎ v v ╎ ╔═ CI runner ═╧═╗ ╎ ┌─ parcels ─────────┐ ┌─ tracking ────────┐ ┌─ courier mock ───────┐ ╎ ║ the suite ╟────>│ east · west ├────>│ service · Postgres├────>│ a stand-in: the rest │ ╎ ║ ║ ╎ │ unchanged │kafka│ unchanged │ │ passes on to courier │ ╎ ╚═══════════════╝ ╎ └─────────────────┬─┘ └───────────────────┘ └──────────────────────┘ ╎ ╎ │ ╎ ╎ │ ╎ ╎ │ ╎ ╎ │ ╎ ╎ │ ┌─ billing mock ────┐ ┌╌ billing ╌╌╌╌╌╌╌╌╌╌╌╌┐ ╎ ╎ └──────>│ a stand-in for a ├────>╎ not taking part: ╎ ╎ ╎ │ team sitting out │ ╎ sees none of the run ╎ ╎ ╎ └───────────────────┘ └╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┘ ╎ └╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┘
Why this design
Section titled “Why this design”- No application changes. No SDK, test flag, tenant column or special header goes into an application. Its test data is real data, created on the paths production takes.
- No infrastructure changes beyond mocks. Deployments, stores, topics and configuration stay as they are. Stormbreaker adds an orchestrator, a dispatcher per participating app, and mocks.
- Each team keeps its own data. Only a team’s dispatcher touches its stores. The orchestrator holds identities and where they are, never payloads.
- Taking part is optional. One team can load test alone (roll it out); another joins by deploying a dispatcher, and leaves by deleting it.
It asks two things. What a run creates must be traceable from what the suite sends: the suite declares identities from its records, such as a parcel’s reference, and dispatchers derive the rest. And a participating team needs a way to remove its records, or to promise a date when they will be gone (clean up later).
Mocks stand in for more than partners
Section titled “Mocks stand in for more than partners”A mock can stand in for a partner nobody owns (mock partners), and just as well for a team that is not taking part: point the dependency’s URL at a mock of the neighbor, and the neighbor never sees the run. Either way the mock is a proxy too: what its stubs do not match falls through to the real one, so the URL stays pointed at it, and traffic outside your tests goes where it always went. For a team that consumes its events, publish to a topic of its own in that environment, or have the consumer take part.
On the lab, the parcels team ran alone with 250 parcels. Without a dispatcher and on the shared topic, it left 250 parcels in its stores and caused 250 tracking records in a team that took no part. With its own dispatcher and topic, it left nothing anywhere.
The other ways
Section titled “The other ways”| Approach | What it costs | What it gets wrong for a shared environment |
|---|---|---|
| A multi-tenant test platform | every application integrates with it and becomes tenant-aware | every team’s data model runs through one platform, and nothing moves until every application has integrated |
Test flags or tenant columns (is_test, a test header) |
a change to every application, store and consumer | test traffic takes branches production never does, and one team that ignores the flag leaks |
| An ephemeral environment per test | a whole stack per test, at load-test capacity | the other teams’ real services and versions, the point of the test, are not there |
| A production-like sandbox | a second production, and a copy of its data | it drifts from the shared environment |
| Resetting the environment | a restore | it wipes every other team’s work too |
Each is right somewhere: ephemeral environments suit functional tests, and flags suit an application built for them. A shared environment is where the questions are operational, such as whether a service holds its load among the services it really meets. Answering them needs the environment as it is, with each team answering for its own data.
Where it fits less well
Section titled “Where it fits less well”- Data nobody can trace back to a run. No dispatcher can find it.
- Events on topics stay until the topic’s retention removes them.
- A team that will not take part and cannot be stood in for, such as a consumer of a shared topic whose producer cannot publish elsewhere: the run reaches it.