Design Experimentation Infrastructure for Concurrent Ranking Model Tests
Last updated: November 29, 2026
Quick Overview
Design the platform that lets dozens of ranking teams at Meta run hundreds of concurrent A/B tests on feed and ads models, with clean assignment, shadow traffic, and automated metric readouts.
Meta
November 29, 20260
0
0 solved
Design the platform that lets dozens of ranking teams at Meta run hundreds of concurrent A/B tests on feed and ads models, with clean assignment, shadow traffic, and automated metric readouts.
Meta ships through experiments, and ranking teams share the same traffic. Infra interviews check layered assignment so tests do not collide, deterministic hashing, logging of exposures, and automated guardrails.
What the Interviewer Expects
- Deterministic hash-based assignment with salts
- Layers or universes to allow overlapping tests safely
- Exposure logging at the point of decision
- Shadow and canary modes before live traffic
- Automated metric pipeline with guardrails
Key Topics to Cover
How to Approach This
- Start by clarifying functional and non-functional requirements with the interviewer.
- Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
- Draw a high-level architecture first, then deep dive into 1-2 critical components.
- Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
- Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
- How do you prevent two tests from changing the same model weight at once?
- How do you detect a broken assignment (sample ratio mismatch)?
- How would you support a long-term holdout?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice System Design ProblemsSample Answer
Requirements
Functional: create an experiment with arms and parameter overrides (model version, ranking weights); target populations; ramp; automatic analysis dashboard; stop on guardrail breach.
**Non-functi...
High-Level Design
- Config service: stores experiments, layers, parameters, and ramp percentages, pushed to all servers.
- Assignment library in each ranking server: `bucket = hash(user_id, layer_salt) mod 1000...