Design a Project-to-Contractor Matching Platform
Design a platform that turns project requirements and contractor profiles into timely, explainable, and eligibility-safe ranked shortlists.
Problem statement
For this exercise, assume clients publish project briefs containing required skills, location or time-zone constraints, engagement dates, and a budget range. Contractors maintain skill, rate, location, and availability profiles and may mark themselves inactive.
A client can request a ranked shortlist, see a small set of non-sensitive match reasons, and invite a contractor; the contractor can accept or decline.
Matching and invitations are in scope, while identity verification, contracts, payments, direct messaging, labor-classification decisions, and training new ranking models from invitation outcomes are out of scope. These product details and the workload targets below are exercise assumptions.
Design authoritative state, candidate retrieval and ranking, APIs, freshness behavior, and failure handling.
What to build
- A client can publish, update, pause, or close a project brief and its matching constraints.
- A contractor can maintain skills, rate, location, and availability; an active=false change is acknowledged after its authoritative commit, and new invitations are suppressed within 30 seconds.
- A client can request a ranked shortlist of eligible contractors with bounded, non-sensitive match reasons.
- A client can invite a shortlisted contractor, and the contractor can accept or decline without duplicate invitations or conflicting outcomes.
At scale
- Assume 1 million contractor profiles and 200,000 open projects, with highly skewed demand across common skills and locations.
- Plan for peaks of 2,000 project or contractor-profile changes per second and 10,000 shortlist reads per second.
- Target a 500-millisecond p95 shortlist response and make ordinary profile or project changes searchable within five minutes.
- An inactive contractor or closed project must stop producing new invitations within 30 seconds, even when the retrieval index or shortlist cache is stale.