Design a Service for the Top K Most-Visited URLs over a Sliding Time Window

Quick Overview

A system design question on reporting the top K most-visited URLs over a sliding time window. It tests requirement clarification, stream ingestion and windowed counting, merging per-partition top-K results correctly, serving precomputed rankings, and handling hot keys, late events and exact versus approximate counts.

Design a Service for the Top K Most-Visited URLs over a Sliding Time Window

Company: Apple

Role: Software Engineer

Category: System Design

Difficulty: medium

Interview Round: Onsite

Overview: A system design question on reporting the top K most-visited URLs over a sliding time window. It tests requirement clarification, stream ingestion and windowed counting, merging per-partition top-K results correctly, serving precomputed rankings, and handling hot keys, late events and exact versus approximate counts.

Read the full Apple Software Engineer interview experience this question came from

Apple logo
Apple
Aug 31, 2026
mediumSoftware EngineerOnsiteSystem Design
6
0
Loading...