Skip to content

PATTERN Cited by 1 source

Latency-probe-based topology

Pattern

Build and maintain a CDN cache hierarchy dynamically by continuously probing the latency from every edge data center to every origin, and using the resulting latency map to select optimal routing paths — rather than statically assigning edges to tiers by geographic proximity or manual configuration.

Shape

┌─────────────────────────────────────────────┐
│ Continuous probing (every 15 min)           │
│   Every DC → every known origin IP          │
│   → latency matrix (DC × Origin)            │
└──────────────────────┬──────────────────────┘
┌─────────────────────────────────────────────┐
│ Topology builder                            │
│   For each origin:                          │
│   - Find DC with lowest latency → primary   │
│   - Find DC with next-best + PoP diversity  │
│     → fallback                              │
└──────────────────────┬──────────────────────┘
┌─────────────────────────────────────────────┐
│ Routing layer                               │
│   Edge miss → primary upper tier → origin   │
│   Primary down → fallback → origin          │
└─────────────────────────────────────────────┘

Properties

  • Adapts to network changes: new peering, fiber cuts, or provider changes are reflected within one probe cycle.
  • No manual topology maintenance: operators don't maintain edge-to-tier mappings.
  • Origin-aware: each origin gets its own optimal topology (unlike static per-region assignment).

Failure Modes

Seen in

Last updated · 575 distilled / 1,757 read