# Latency

Record: `arch:latency`
Kind: metric
Layer: [Performance Core](https://banes-lab.com/records/layer/performance-core.md)
Severity: contextual
Scope: API, service, user flow
Canonical: https://banes-lab.com/ontology#arch-latency

## Repair

- Refactored by: Cache, Async Offload, Optimize Query
- Detected by: trace span delays
- Violated by: response time above SLO
- Measured by: p50/p95/p99 latency
- Enforced by: SLO gates

## requires

- [Time Budget](https://banes-lab.com/records/lex/time-budget.md)

## reinforces

- [User Experience](https://banes-lab.com/records/lex/user-experience.md)
- [Performance Engineering](https://banes-lab.com/records/arch/performance-engineering.md)

## enables

- [Responsiveness](https://banes-lab.com/records/lex/responsiveness.md)

## conflicts-with

- [Long Blocking Work](https://banes-lab.com/records/lex/long-blocking-work.md)

## tensions-with

- [Throughput/Batching](https://banes-lab.com/records/lex/throughput-batching.md)

## tensions

- [Latency Throughput/Batching](https://banes-lab.com/records/tension/latency-throughput-batching.md)

## referenced-by

- [Total-Order Broadcast](https://banes-lab.com/records/arch/total-order-broadcast.md)
- [CAP Theorem](https://banes-lab.com/records/arch/cap-theorem.md)
- [PACELC Theorem](https://banes-lab.com/records/arch/pacelc-theorem.md)
- [Consensus](https://banes-lab.com/records/arch/consensus.md)
- [Message Queue](https://banes-lab.com/records/arch/message-queue.md)
- [Throughput](https://banes-lab.com/records/arch/throughput.md)
- [CDN / Edge Caching](https://banes-lab.com/records/arch/cdn-edge-caching.md)
- [Queuing Theory](https://banes-lab.com/records/arch/queuing-theory.md)
- [Consistency](https://banes-lab.com/records/arch/consistency.md)
- [Pessimistic Locking](https://banes-lab.com/records/arch/pessimistic-locking.md)
