URL shortener system design

SVG
URL shortener system design. 11 components in 1 groups. Connections: Clients to CDN (GET /abc123); Clients to Load balancer (POST /links); CDN to Load balancer (cache miss); Load balancer to API servers; API servers to Redis (lookup, fill on miss); API servers to PostgreSQL (read on miss, insert new); API servers to ID generator (new link); API servers to Kafka (click event); CDN to Kafka (edge logs); Kafka to Apache Flink; Apache Flink to ClickHouse; ClickHouse to Dashboards (query).
drag to pan, scroll or pinch to zoom