Question bank

No. 55 · Search & ranking

Design ad delivery for a social feed

Expert60 minRanking · Data modeling · Stream processing · Counting & aggregation · Idempotency · Caching

Your sketch
Opening the sketchbook…

OFF-SITE READING · OTHER PEOPLE’S WORK, OUR NOTES

Further reading

Walkthrough reading

At least one vetted end-to-end walkthrough or mock interview is linked. Links go to other sites; we credit and describe them rather than copy them.

No public end-to-end walkthrough from a primary source; Meta's public writing covers ML retrieval and ranking, not campaign management, pacing or feed insertion. Our worked approach fills that in.

  1. Facebook/Instagram Ad System design

    Medium · Dilip KumarArticleFull walkthroughFreeVetted

    The only end-to-end attempt we found: ad manager, policy review, ad index and retrieval, auction, swapping stale ads, budget pacing with reserved slices, and metrics. One author's design, not verified against Meta.

    Link checked 2026-12-06 (the site blocks automated checks; confirmed manually)

  2. Meta Andromeda: Supercharging Advantage+ automation with the next-gen personalized ads retrieval engine

    Engineering at MetaEngineering blogBackgroundFreeVetted

    Meta describes the retrieval stage that narrows tens of millions of eligible ads to a few thousand before ranking. Good for the funnel shape and latency budget; heavy on ML hardware.

    Link checked 2026-12-06

  3. Design an Ad Click Aggregator w/ a Ex-Meta Staff Engineer System Design Interview

    Hello Interview (YouTube)VideoPartialFreeVetted

    Covers only the click-counting and reporting slice (streaming aggregation, dedupe, reconciliation). Useful for the metrics part of the question, not for selection or budgets.

    Link checked 2026-12-06

  4. Practical Lessons from Predicting Clicks on Ads at Facebook

    Meta Research (ADKDD 2014) · Xinran He et al.PaperPaperFreeVetted

    Classic Facebook paper on predicting ad clicks, stressing features and data freshness. Background for why ranking needs fresh event pipelines; no serving architecture.

    Link checked 2026-12-06

Report a bad or misleading link

Reference audit: 2 of 2 links from the audited catalog kept

Every recommended link was kept.

We audited the public catalog at systemdesign.io on 2026-12-06. Dropped links are not linked here on purpose.

COMPANY EVIDENCE · NOT A FREQUENCY CLAIM

Where it has been reported

Catalog tags (unverified)

Meta (Facebook)GoogleAmazonPinterest

Assigned by the reference catalog (audited 2026-12-06). We have not verified that these companies ask this question.

Report or add attribution evidence · How we label evidence

KEEP GOING

Related questions