System Design

Dynamic API Caching with Edge Workers

System Design diagram · made in Skemio

Edge computing architecture showing users hitting CDN Edge Workers, fetching data from local Edge KV storage and falling back to Origin APIs and primary databases.
Edge computing architecture showing users hitting CDN Edge Workers, fetching data from local Edge KV storage and falling back to Origin APIs and primary databases.

What it shows

  • Edge Workers execute logic in points-of-presence located <20ms from users.
  • Sub-millisecond Edge KV stores serve user profiles and feature flags locally.
  • Origin APIs receive only cache-missed writes, slashing origin infrastructure load.

The takeaway

Push dynamic compute and reads to the CDN edge; reserve origin servers for writes.

More system design diagrams