Back to Portfolio
01 / Lead Full-Stack Architect • 2026

Aegis Distributed Edge Gateway

Multi-region API rate-limiting, canary routing, and zero-cold-start tenant isolation at 180k req/min.

Next.jsTypeScriptEdge MiddlewareRedisPostgreSQLOpenTelemetry
Aegis Distributed Edge Gateway
3.8msP99 Gate Overhead
-64%Origin Load Reduction
94.2%Cache Hit Ratio
01 / The Engineering Challenge

High-growth SaaS tenants experienced noisy-neighbor spikes and 240ms regional routing penalties when all API authentication and quota checks terminated at a single centralized origin cluster.

02 / System Topology
01
Global Client
TLS 1.3 + HTTP/3
02
Edge Gatekeeper
Token Bucket < 4ms
03
Regional Read Cache
SWR + Tag Purge
04
Core Worker Cluster
gRPC + Postgres
03 / Architectural Solution

Designed a two-tier Edge Gatekeeper using lightweight signed capability tokens verified at Edge POPs alongside sliding-window Redis shards, paired with a real-time Next.js App Router control plane for instant route rule propagation.

04 / Key Trade-offs & Decisions
  • Accepted 250ms eventual consistency on soft quota counters between regions in exchange for sub-4ms local verification.
  • Split control-plane writes (strongly consistent Postgres) from data-plane reads (replicated edge KV snapshots).
Next Case Study (02)
Kinetix Local-First Multiplayer Canvas