PracHub
QuestionsPremiumCoachesLearningGuidesInterview Prep
|Home/System Design/Meta

Design a real-time ad impression aggregator

Last updated: Mar 29, 2026

Quick Overview

This question evaluates a candidate's ability in scalable real-time system design, covering competencies such as stream processing, event aggregation, time-windowed metrics, handling late and out-of-order events, and designing for very high write throughput.

  • medium
  • Meta
  • System Design
  • Software Engineer

Design a real-time ad impression aggregator

Company: Meta

Role: Software Engineer

Category: System Design

Difficulty: medium

Interview Round: Technical Screen

Design an **ads impression aggregator** service with the following requirements: - The system ingests a high-volume stream of **impression events** (each event at least contains `ad_id` and event timestamp; you may add fields like request_id/device_id for dedup). - The system must provide **near real-time updates within 30 seconds**. - It must expose **per-ad impression counts aggregated by hour** (e.g., counts for `ad_id=123` for `2026-02-23 10:00-10:59`). - Discuss how you would store/serve these aggregates and handle late/out-of-order events. **Follow-up:** How do you handle **very high write throughput** to the database/storage layer?

Quick Answer: This question evaluates a candidate's ability in scalable real-time system design, covering competencies such as stream processing, event aggregation, time-windowed metrics, handling late and out-of-order events, and designing for very high write throughput.

Related Interview Questions

  • Design Top-K, Crawler, and Chess Systems - Meta (hard)
  • Design Search And Web Crawling Systems - Meta (medium)
  • Design an Instagram-Style Social Feed - Meta (medium)
  • Design an Online Game Leaderboard - Meta (hard)
  • Design an On-Demand Delivery Platform - Meta (medium)
Meta logo
Meta
Oct 2, 2025, 12:00 AM
Software Engineer
Technical Screen
System Design
2
0

Design an ads impression aggregator service with the following requirements:

  • The system ingests a high-volume stream of impression events (each event at least contains ad_id and event timestamp; you may add fields like request_id/device_id for dedup).
  • The system must provide near real-time updates within 30 seconds .
  • It must expose per-ad impression counts aggregated by hour (e.g., counts for ad_id=123 for 2026-02-23 10:00-10:59 ).
  • Discuss how you would store/serve these aggregates and handle late/out-of-order events.

Follow-up: How do you handle very high write throughput to the database/storage layer?

Solution

Show

Submit Your Answer to Earn 20XP

Sign in to leave a comment

Loading comments...

Browse More Questions

More System Design•More Meta•More Software Engineer•Meta Software Engineer•Meta System Design•Software Engineer System Design
PracHub

Master your tech interviews with 8,000+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.