# CDN / Edge Caching

Record: `arch:cdn-edge-caching`
Kind: mechanism
Layer: [Performance Core](https://banes-lab.com/records/layer/performance-core.md)
Severity: contextual
Scope: service, infrastructure, latency
Canonical: https://banes-lab.com/ontology#arch-cdn-edge-caching

## Repair

- Refactored by: Serve via CDN / Edge Cache
- Detected by: static assets served from origin per request
- Violated by: every request hitting the origin regardless of locality
- Measured by: origin request rate / cache hit ratio
- Enforced by: performance review

## requires

- [Cacheable Content](https://banes-lab.com/records/lex/cacheable-content.md)

## reinforces

- [Caching](https://banes-lab.com/records/arch/caching.md)
- [Latency](https://banes-lab.com/records/arch/latency.md)

## enables

- [Origin Offload](https://banes-lab.com/records/lex/origin-offload.md)
- [Geographically-Local Delivery](https://banes-lab.com/records/lex/geographically-local-delivery.md)

## conflicts-with

- [Origin-Only Serving](https://banes-lab.com/records/lex/origin-only-serving.md)

## tensions-with

- [Cache Invalidation](https://banes-lab.com/records/lex/cache-invalidation.md)

## tensions

- [CDN / Edge Caching Cache Invalidation](https://banes-lab.com/records/tension/cache-invalidation-cdn-edge-caching.md)
