A polyglot (Go, Java, Python) microservices benchmark for software architecture recovery (SAR) tools, built around a food-delivery system.
Ground truth ships as an annotated dependency graph: services, datastores and message destinations as nodes, typed endpoint-level edges labelled with the SAR pattern that obscures them and whether each is statically resolvable and/or observed at runtime. See dataset/dataset-schema.md. Runtime observation is recorded only in the released copies of the dataset. In the repository, observed is always false.
A grader in grading/ scores tool output against it.
The diagram shows the target system. Not all services are implemented yet; the published dataset describes the current state.
| Path | Contents |
|---|---|
services/ |
The benchmark's microservices |
dataset/ |
Published dependency graph + validation report and their schemas |
grading/ |
Grader and naive baseline |
infra/ |
Tooling (release stamping, canonicalisation) |
proto/ |
gRPC definitions |
docs/ |
Documentation and diagrams |
docker compose up --build
Brings up the entire stack. Jaeger (traces) is available at http://localhost:16686. The stack needs about 6 GB of free memory.
Once everything is healthy, you can run the smoke test against the running stack:
python infra/workload/run.py
It exercises each service's /health and a few real endpoints, and exits non-zero on any unexpected status code.
A submission is a JSON file listing the nodes and caller → callee edges your tool recovered:
{
"nodes": ["address", "geocoding", "db:address"],
"edges": [
{"caller": "address", "callee": "geocoding"},
{"caller": "address", "callee": "db:address"}
]
}Services are named after their folder in services/, datastores as db:<name> named after the service that owns them (db:geocoding). Every caller and callee must appear in nodes.
python grading/grader/grader.py results.json [--dbs] [--async]
Datastores are ignored unless --dbs is passed. Message-based dependencies are scored as direct service → service pairs (the async-derived edges) and only with --async; without it, a submitted pair that exists only through messaging is neither credited nor penalised. Destinations and brokers are never scored. The grader prints the number of correct, missing and additional caller → callee pairs. For a reference point, grading/baselines/baseline.py produces a submission with a naive grep: python grading/baselines/baseline.py services --output results.json.
- The complete synchronous core: the customer, restaurant and courier domains.
- Authentication between all services.
- Event-driven communication across the system, with ground truth and runtime trace verification for message-based edges.
- Endpoint-level and per-pattern scoring in the grader.
- Ground truth checked by an independent second rater.
- A realistic workload generator for collecting runtime data.
- A stable, citable release archived on Zenodo.
- Reference results for existing architecture recovery tools.
This project's main purpose is to test SAR tools and approaches, so some service calls are deliberately obfuscated. Each obfuscation is realistic on its own, but may be used in an unusual way.
The project currently doesn't encrypt its traffic with TLS.
The auth service uses a committed static private key. This is clearly not a production-ready setup, but it simplifies testing and deployment.
Some services run on development webservers that aren't meant for production use.
gRPC clients use the default pick_first load balancing, so each client sends all of its traffic to a single replica of a scaled service. This doesn't matter for the current single-instance setup.
Some code, such as the JWT verifier, is deliberately copied into each service instead of shared as a library. Every service then makes the call itself, which gives more and more varied edges than a single shared implementation would. The copies have to be kept in sync by hand.
The cascading deletes are currently implemented synchronously, meaning failed downstream calls might leave data in an inconsistent state that requires a retry.
Services verify who the caller is, but not always what the caller may do:
- There are no roles. Any account can create a restaurant or courier profile and act as one.
- Any account can report order updates (accepted, ready, picked up, ...) for any order through
order-event-ingress. The order saga still rejects updates that don't fit the order's current state.
Apache-2.0, see LICENSE.