Scale
Express capacity ranges and metrics for components and systems.
Scale
Use scale to capture expected capacity, concurrency, or throughput ranges.
Syntax
import { * } from 'sruja.ai/stdlib'
App = system "App" {
API = container "API" {
scale {
metric "req/s"
min 200
max 2000
}
}
}
view index {
include *
}
Guidance
- Choose a single clear
metricper block (e.g.,req/s,users,messages/s). - Use realistic bounds to guide design and SLOs.
- Pair with
sloandrequirementsto encode targets.
Related
slofor availability/latency/errorRate/throughput targetsrequirementsfor performance expectations