Design Campaign Reporting Over Billions of Daily Ad Events

Last updated: November 29, 2026

Quick Overview

Design the pipeline and storage that let advertisers slice impressions, clicks, spend and conversions for their campaigns by day, creative, domain, device and geo, with data no more than a few minutes old.

StackAdapt
System Design
Data Engineer
StackAdapt
November 29, 2026
Data Engineer
System Design Round
System Design
Medium

0

0

0 solved


Design the pipeline and storage that let advertisers slice impressions, clicks, spend and conversions for their campaigns by day, creative, domain, device and geo, with data no more than a few minutes old.

Agencies live in StackAdapt's reporting UI and exports, and they reconcile its spend numbers against invoices, so the numbers must be fresh, sliceable and exactly right after late data settles. The interviewer checks event modeling, pre-aggregation choices, late and duplicate events and how real-time and corrected views agree.

What the Interviewer Expects
  • Defines the event schema and idempotency keys
  • Separates a streaming fresh view from a batch corrected view, or explains a single path
  • Chooses a columnar OLAP store with rollups sized to query patterns
  • Handles late conversions and deduplication
  • Discusses tenant isolation and query cost control
Key Topics to Cover
Stream processing
OLAP
Rollups
Late data
Idempotency
How to Approach This
  1. Start by clarifying functional and non-functional requirements with the interviewer.
  2. Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
  3. Draw a high-level architecture first, then deep dive into 1-2 critical components.
  4. Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
  5. Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
  • A customer filters by 40,000 domains in one query; what happens?
  • How do you restate numbers when invalid traffic is removed two days later?
  • How would you support custom attribution windows per advertiser?
  • How do you prove the report matches the bill?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice System Design Problems
Sample Answer
Requirements

Metrics: impressions, clicks, spend, conversions, video completions. Dimensions: advertiser, campaign, line item, creative, day and hour, domain or app, device, geo. Freshness under 5 minutes, final n...

High-Level Design

Bidders and trackers emit events with a unique event id into Kafka. A stream job (Flink or Kafka Streams) deduplicates by event id within a window, enriches with campaign metadata, and writes raw even...


Submit Your Answer
Markdown supported

Related Questions