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
System Design
Software Engineer
Meta
November 29, 2026
Software Engineer
System Design Round
System Design
Medium

0

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
Hash-based assignment
Experiment layers
Exposure logging
Shadow traffic
Guardrail metrics
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
  • 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 Problems
Sample 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...

Submit Your Answer
Markdown supported