Preparing your design workspace

Loading the problem and your latest saved attempt…

Global Edge Functions Platform

Design a globally distributed Deno edge-functions system with safe deploys, isolation, and low-latency routing.

Problem statement

For this exercise, assume developers deploy immutable JavaScript or TypeScript function versions with environment bindings, secrets, memory and CPU limits, and region policy.

Requests route to nearby isolates, cold starts are bounded, logs and metrics are available, rollouts support canary and rollback, and one tenant cannot escape its sandbox or exhaust a point of presence. Exclude implementing the Deno runtime and CDN network.

What to build

  1. Validate, bundle, sign, and publish an immutable function version with bindings and policy.
  2. Route requests to an eligible point of presence and execute inside a resource-isolated runtime.
  3. Collect logs and metrics, canary new versions, and restore a prior version safely.

At scale

  • Serve one million requests per second across 50 points of presence.
  • Target p95 platform overhead below 30 ms for warm invocations and cold start below 300 ms.
  • Propagate an emergency rollback globally within 30 seconds.
  • Enforce per-tenant CPU, memory, concurrency, egress, and secret-access policy locally even during control-plane loss.