Reference

Math & engineering notation

Look up symbols, units, probability, vectors and engineering formulas.

Scope and conventions

Common mathematical and engineering notation, with domains, units and assumptions. Estimates and idealized models are labeled; check their assumptions against the system you are describing.

Engineering estimates

Relate arrival rate, work in system and duration

Notation & units

Little’s Law relates long-run averages in a stable system using the same boundary and population for all three quantities.

Fragment

Notation & units · Relate arrival rate, work in system and duration
Follow appearance
GitHub Light
GitHub Dark
Rosé Pine
Catppuccin Mocha
VS Code Dark+
L = λW
L: average items in system
λ: average effective arrival rate (items/time)
W: average time in system

Include queueing and service time if “in system” includes both. This is not a tail-latency formula.

Estimate service capacity and utilization

Notation & units

For m identical workers and mean service time S, an ideal service-capacity estimate is m/S. Actual capacity depends on contention and workload.

Fragment

Notation & units · Estimate service capacity and utilization
Follow appearance
GitHub Light
GitHub Dark
Rosé Pine
Catppuccin Mocha
VS Code Dark+
ideal capacity ≈ m/S
utilization ρ ≈ λS/m

These estimates assume compatible steady workloads. High utilization can sharply increase queueing delay.

Combine independent required dependencies

Notation & units

If every dependency must succeed and their success events are independent, multiply their availabilities.

Fragment

Notation & units · Combine independent required dependencies
Follow appearance
GitHub Light
GitHub Dark
Rosé Pine
Catppuccin Mocha
VS Code Dark+
A_total = Πi Aᵢ
Two independent 99.9% dependencies:
0.999² = 0.998001 = 99.8001%

Shared infrastructure and correlated failures invalidate the independence shortcut.

Estimate a fan-out tail event

Notation & units

If n independent calls each finish by t with probability p, all finish by t with probability pⁿ.

Fragment

Notation & units · Estimate a fan-out tail event
Follow appearance
GitHub Light
GitHub Dark
Rosé Pine
Catppuccin Mocha
VS Code Dark+
P(all finish by t) = pⁿ
P(at least one exceeds t) = 1-pⁿ

Assumes independent calls with the stated per-call probability. Shared bottlenecks can change the result substantially.

Estimate retry amplification

Notation & units

With independent failure probability p per attempt, no retry cap, and p<1, geometric retries have expected attempts 1/(1-p).

Fragment

Notation & units · Estimate retry amplification
Follow appearance
GitHub Light
GitHub Dark
Rosé Pine
Catppuccin Mocha
VS Code Dark+
E[attempts] = 1/(1-p)
p = 0.2 -> 1.25 attempts per original request

Real systems need caps, deadlines and backoff. Correlated overload failures do not follow this simple model.

Translate an SLO into an error budget

Notation & units

For a request-based SLO, allowed bad requests are the eligible total multiplied by the allowed bad fraction.

Fragment

Notation & units · Translate an SLO into an error budget
Follow appearance
GitHub Light
GitHub Dark
Rosé Pine
Catppuccin Mocha
VS Code Dark+
allowed bad fraction = 1 - SLO target
budget = eligible requests × (1 - target)
burn rate = observed bad fraction / allowed bad fraction

Use fractions, not percentage labels, in the arithmetic. Time-based availability and request-based SLOs have different denominators.

Estimate average cache cost

Notation & units

For hit fraction h, hit cost C_hit and complete miss-path cost C_miss, weight each full path by its probability.

Fragment

Notation & units · Estimate average cache cost
Follow appearance
GitHub Light
GitHub Dark
Rosé Pine
Catppuccin Mocha
VS Code Dark+
E[cost] = h C_hit + (1-h) C_miss

Include lookup overhead in the appropriate paths. Hit rate alone does not establish lower latency, correctness or freshness.

Read token-bucket capacity

Notation & units

A bucket replenishes tokens at rate r up to burst capacity B. One-token requests consume one token each when admitted.

Fragment

Notation & units · Read token-bucket capacity
Follow appearance
GitHub Light
GitHub Dark
Rosé Pine
Catppuccin Mocha
VS Code Dark+
ideal maximum admitted over interval t ≤ B + rt

Assumes a full initial bucket, the stated refill model and no other constraints. This bounds admission, not actual completion throughput.

Read an IPv4 prefix length

Notation & units

An IPv4 /p prefix fixes p of 32 bits; its address count is 2^(32-p). Host usability depends on subnet purpose and protocol conventions.

Fragment

Notation & units · Read an IPv4 prefix length
Follow appearance
GitHub Light
GitHub Dark
Rosé Pine
Catppuccin Mocha
VS Code Dark+
/24 -> 2⁸ = 256 total addresses
/32 -> one address

Do not universally subtract two: /31 point-to-point and /32 cases have different rules.