Skip to content
stormbreakerbetadocs
nextv0.1.1
GitHub
These are the docs of main, not released yet. See the docs of v0.1.1, the latest release.

Your first run

View .mdOpen in Claude

This tutorial takes a service of yours from no load test at all to a load run that cleans up after itself. It assumes an orchestrator is running in the environment (deploy one, or use the lab’s on localhost:18080).

In your acceptance suite’s axx-packs.yaml:

axx-packs.yaml
packs:
- rest
- github.com/nimbusxr/stormbreaker/packs/core@v0.1.0
- github.com/nimbusxr/stormbreaker/packs/rest@v0.1.0

And tell stormbreaker-core where the orchestrator is, in axx.yaml:

axx.yaml
packs:
stormbreaker-core:
url: ${env:STORMBREAKER_ORCHESTRATOR_URL}
token: ${env:STORMBREAKER_TOKEN}

A stream is built on axx’s fixture factories. Leave each record’s identity out of its fixtures: every record then derives one of its own, as an ordinary UUID.

data/pickup.factory.yaml
factory:
family: json
identity:
- path: pickupId
format: uuid-name-based
data/standard.fixture.yaml
factory: pickup
data:
depot: DE-BER-1
parcels: 1
data/pickups.stream.yaml
count: 1000
mix:
- fixture: pickup#standard
weight: 1

Your team’s dispatcher prepares for what a run declares, and cleans up after it. With the dispatcher-sdk it is two functions. Deploy it beside your service, in the run’s group.

features/pickups-load.feature
@stormbreaker-group/delivery @stormbreaker-requires/pickups
Feature: Pickups hold their load
Scenario: 1000 pickups at 100 a second
Given the pickups service with the following properties:
| url | ${env:PICKUPS_URL} |
And the pickups stream of POST requests to /pickups
When the pickups stream is sent at 100 requests per second
Then the load completes with no failed requests
And the client's p99 latency of the load is at most 0.5 seconds

Run it with axx run. The run opens, declares the thousand pickups, and waits at its gate until your dispatcher has prepared. It sends them, and then waits for your dispatcher to clean up. If your dispatcher fails to clean up, the scenario fails.

  • Check SLOs from your service’s own metrics, across regions.
  • Mock partners your service calls that nobody in the environment owns.