Latency numbers every architect should know (approximate, order-of-magnitude)
| Operation | Approximate Latency |
|---|---|
| L1/L2 CPU cache reference | ~1 ns |
| Main memory (RAM) reference | ~100 ns |
| SSD random read | ~100 µs (0.1 ms) |
| HDD seek | ~1-10 ms |
| Round trip within same datacenter | ~0.5 ms |
| Round trip, same region, cross-AZ | ~1-2 ms |
| Round trip, cross-region (same continent) | ~30-60 ms |
| Round trip, cross-continent | ~100-150 ms |
| Redis / in-memory cache GET | ~1 ms |
| SQL query (indexed, simple) | ~1-10 ms |
| SQL query (complex join, large table) | ~50-500 ms+ |
| Vector search (HNSW, ANN, mid-size index) | ~5-50 ms |
| Embedding generation (single chunk) | ~50-150 ms |
| LLM API call (first token, small/fast model) | ~200-500 ms |
| LLM API call (first token, frontier model) | ~500ms-2s |
| LLM full response (few hundred tokens) | ~2-10 s (non-streaming) |
| DNS lookup (cold) | ~20-120 ms |
Availability percentages / allowed downtime
| Availability | Downtime per year | Downtime per month | Downtime per day |
|---|---|---|---|
| 99% (“two nines”) | ~3.65 days | ~7.3 hours | ~14.4 minutes |
| 99.9% (“three nines”) | ~8.76 hours | ~43.8 minutes | ~1.44 minutes |
| 99.95% | ~4.38 hours | ~21.9 minutes | ~43.2 seconds |
| 99.99% (“four nines”) | ~52.6 minutes | ~4.38 minutes | ~8.6 seconds |
| 99.999% (“five nines”) | ~5.26 minutes | ~26.3 seconds | ~0.86 seconds |
Rule of thumb: each additional “nine” costs roughly an order of magnitude more in engineering/ops effort — know which tier your SLA actually requires before over-building toward five nines nobody asked for.
Typical cost figures (order-of-magnitude, directional — always confirm current pricing)
- Small/fast LLM call (e.g., mini-tier model): roughly $0.001-$0.005 per typical query.
- Frontier-tier LLM call: roughly $0.01-$0.03 per typical query, scaling with context length.
- Embedding generation: roughly $0.0001 per 1K tokens for small embedding models.
- Semantic caching typically cuts LLM call volume by 30-40%.
- Model routing (sending the majority of simple queries to a cheap model) typically cuts blended cost by 30-50%.
- Reserved capacity / committed-use discounts: typically 30-60% off on-demand pricing for 1-3 year commitments.
- Self-hosting a large open-source model breaks even against a managed API only at meaningfully high sustained volume (rough rule of thumb: several thousand+ queries/day) — always run the specific break-even math rather than assuming self-hosting is cheaper.
Sizing rules of thumb
- Back-of-envelope QPS: (users × actions per user per hour) ÷ 3600, then apply a 3x peak-over-average multiplier for headroom.
- Chunking for RAG: 256-512 tokens per chunk with 10-20% overlap is a reasonable starting default before tuning against evaluation data.
- Embedding dimensions: 768 (fast/cheap), 1536 (standard balance), 3072 (highest quality, highest storage/compute cost) — pick based on measured quality need, not by default.
- Clean claim rate target in healthcare RCM: >95%; each percentage point of improvement has outsized payment-speed impact.
- DORA metrics for a healthy engineering org: daily-ish deployment frequency, lead time for changes < 1 day, change failure rate < 5%, MTTR < 1 hour.
- Add 30-50% schedule buffer for AI/GenAI project estimates specifically, versus a smaller buffer for well-understood traditional software work — the non-determinism of model behavior and evaluation iteration consistently surprises teams that don’t budget for it explicitly.