pa-01 — Execution
Prerequisites
- Go ≥ 1.25 (stdlib only, offline).
One-shot
cd pa-01-microservices-decomposition && bash scripts/verify.sh
Per-language workflow (Go)
cd pa-01-microservices-decomposition/src/go
go test -race -count=1 ./... # cycle, blast-radius, fan-in/out, layering
go run ./cmd/sgsim # the X-ray of a sample platform
Package map
| File | What |
|---|---|
servicegraph/graph.go | dependency graph; Tarjan cycle detection; blast radius; fan-in/out; layering rules |
cmd/sgsim | builds a sample graph and prints cycles, blast radius, coupling, violations |
Use it on your system
Emit your services' dependency edges (AddDependency(from, to)) from an
import graph / trace service-map, SetLayer each service, then run the
analyses. The cycles and chokepoints are your architecture backlog. See
GUIDE.md §3 for what each finding implies.