APQ GET requests terminated directly at CDN POPs without waking the Router or subgraph pods.
Shift federated GraphQL reads from origin POST requests to globally cached CDN GET POPs using SHA-256 Automatic Persisted Queries, strictest-wins @cacheControl bubbling, and sub-second entity-level surrogate-key purges.
APQ GET requests terminated directly at CDN POPs without waking the Router or subgraph pods.
Eliminating cross-region router planning and parallel subgraph fan-out slashes read tail latency by 8×.
Federated @cacheControl reducer takes the lowest TTL across all queried subgraphs; any PRIVATE field overrides PUBLIC.
Entity-level CDN invalidation via CDC or mutation hooks soft-purges Product:p_42 across all edge POPs.
| Layer / Primitive | Production Tools | Operational Role |
|---|---|---|
| Edge CDN Layer | Fastly / Cloudflare Enterprise |
Terminates APQ GET traffic at global POPs, honors stale-while-revalidate, and executes instant Surrogate-Key purges. |
| APQ & Safelist Registry | Apollo Router / Persisted Queries (PQ) |
Resolves SHA-256 query hashes from build-time safelists or Redis APQ, rejecting arbitrary queries in strict mode. |
| GraphQL-Aware Edge Proxy | Stellate / GraphQL Hive Edge |
Parses GraphQL responses at the edge to auto-tag entity keys (Product:p_42) and scope partial invalidations. |
| Entity Cache Store | Redis Cluster (L2 Router Entity Cache) |
Caches shared subgraph _entities sub-responses even when the outer query includes a PRIVATE Cart field. |
| Change-Data-Capture Purge Bus | Debezium + Kafka → CDN Purge API |
Streams database commits into debounced entity-key soft-purges so updates propagate globally in < 150 ms. |
| Telemetry & Cache Analytics | OpenTelemetry + Fastly Real-Time Logs |
Tracks per-operation hit ratios, SWR revalidation rates, and alerts immediately on PRIVATE cache violations. |
Zero PersistedQueryNotFound 2-RTT penalties, immune to Redis flushes, and blocks arbitrary malicious queries at the edge.
Zero CI build step required—clients register hashes on first miss—but vulnerable to Redis eviction storms and arbitrary query registration.
Edge POPs absorb 90%+ of public reads in 18 ms; Router L2 entity cache still caches Product even on PRIVATE Cart queries.
Any single PRIVATE field forces private, no-store on the whole response, dropping hit rate to 0% for logged-in users.
Marks the edge object stale so clients still get an 18 ms response while one singleflight request refreshes origin in the background.
Deletes cached bytes immediately—guarantees strict read-after-write, but hot-key purges send a thundering herd straight to origin.
stale-while-revalidate with request coalescing; reserve Hard Purge for legal/compliance takedowns.
Invalidates only responses referencing p_42, keeping 99.9% of the catalog cache warm and origin RPS flat.
Simple to emit, but a single price edit wipes 40K+ unrelated cached pages and triggers a massive origin purge stampede.
Type:ID surrogate keys (and cap header size via key hashing for large lists).