Katkat
Onsite

Virtual Onsite with Top-K URLs Design, HTML Parser and LRU Cache

AppleSoftware Engineer · Onsite · Aug 2026

System design: Top-K trending URLs Design a system that surfaces the top K most-visited URLs over a time window. Clarify first: the window (last hour vs. last 24h), how fresh results need to be, exact vs. approximate counts, and read vs. write volume. Ingestion: click or visit events go to a stream (Kafka), partitioned by URL hash. Counting: stream processors keep per-URL counts in tumbling or sl…

Shared by a candidate · reported Aug 2026. Interview formats change; use it as a guide, not a script.