Dataford
Interview QuestionsInterview GuidesExperiencesMock InterviewsPricing
Get started

Design Intelligent API Rate-Limit Orchestrator

Hard
HardSystem DesignCold StartFeature StoreModel ServingAsked 3 times

Problem

Product Context

Meta exposes large-scale APIs such as the Graph API, Marketing API, and WhatsApp Business Platform to millions of external developers and enterprise integrations. Design an ML-driven rate-limit orchestration system that decides which requests to admit, defer, batch, or shed so client integrations remain reliable while Meta controls infrastructure cost and protects backend services.

Scale

SignalValue
Monthly active apps12M
Daily active apps3.5M
Peak inbound API QPS22M requests/sec
Distinct app-user tokens/day900M
Downstream protected services150+ internal services
Per-request decision latency budget (p99)25ms
Historical logs retained for training180 days

Task

  1. Clarify the product objective and define what “reliable” and “cost-efficient” mean for Meta and third-party developers.
  2. Design an end-to-end ML system that predicts request value/risk and makes real-time rate-limit decisions using a multi-stage architecture.
  3. Specify the online path, offline training pipeline, feature store design, and how the system handles tenant-level fairness, bursty traffic, and cold-start apps.
  4. Choose models for retrieval, ranking, and final policy/re-ranking, and explain why each stage is appropriate under the latency budget.
  5. Define offline and online evaluation, including guardrails for developer experience, backend protection, and cost.
  6. Identify major failure modes such as feature drift, training-serving skew, abuse spikes, and bad model rollouts, with detection and mitigation.

Constraints

  • Must support hard platform quotas and policy constraints; ML can optimize within policy, not override compliance rules.
  • Some labels are delayed: downstream errors, app retries, and developer churn may arrive hours or days later.
  • Decisions must be explainable enough for internal operations and enterprise support escalations.
  • The system should reduce unnecessary throttling while preventing cascading failures in Graph API and dependent services.
  • Cost target: keep incremental ML serving cost below $0.00002 per API request on average.
Practicing as: Solutions Architect interview at Meta

Hi, I'll play your Meta interviewer for the Solutions Architect role. Answer the question above like we're in the room, and I'll respond the way a real interviewer would.

Take this as a live interview session →

You are practicing as a guest. Sign up free to get your answer graded with AI feedback. Your draft stays right here.

Sign up freeI have an account
Sign up to unlock solutions
Meta Solutions Architect Interview QuestionsTop 50 Cold Start Interview QuestionsWalmart Interview QuestionsWalmart Engineering Manager Interview QuestionsAttentive Interview Questions
Next questions
WalmartDesign ML-Powered API Rate LimiterHardMetaDesign Graph API Rate LimiterHardThe Misch GroupDesign an ML Rate Limiting ServiceHard