Design Inline Fraud Checks for Facebook Marketplace Checkout
Last updated: November 29, 2026
Quick Overview
Design the risk system that evaluates every Marketplace checkout in real time and decides to approve, challenge, or block it, within a small latency budget, while learning from chargebacks that arrive weeks later.
Meta
November 29, 20260
0
0 solved
Design the risk system that evaluates every Marketplace checkout in real time and decides to approve, challenge, or block it, within a small latency budget, while learning from chargebacks that arrive weeks later.
Marketplace and Shops payments at Meta face stolen cards and account takeover, and risk systems sit in the critical path. Interviewers check the latency budget, feature freshness for velocity signals, rules plus models, and the delayed-label problem.
What the Interviewer Expects
- Place the risk check in checkout with a strict deadline and fallback
- Combine rules and an ML score
- Use real-time velocity and graph features
- Choose actions: approve, step-up challenge, block, manual review
- Handle delayed chargeback labels and feedback loops
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 evaluate a new model when your blocks remove the labels you need?
- What do you do if the risk service is down at peak?
- How would you catch a ring of sellers using the same cards?
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: for each checkout return a decision with reason codes; support step-up (3-D Secure, re-login); analysts can push rules quickly; case review queue.
Non-functional: decision in unde...
High-Level Design
Checkout service calls the risk service with buyer, seller, payment instrument, device, and order context.
- Feature assembly: reads online features from a feature store (account age, past or...