KatInterview

Build a Recommendation Engine Pairing Freelance Experts with Open Jobs

System DesignModel answer
MediumModel answerSystem Designsystem-designrecommendationranking

Last updated

Design a low-latency engine that recommends eligible, available freelancers for client jobs, handles newcomers with no track record, and learns from downstream hiring outcomes.

Context

A marketplace connects companies with a pool of pre-screened freelance specialists. When a company publishes a job, or a recruiter runs a search, the platform should return a short list of freelancers who are eligible, have time to take the work, and are likely to deliver a good result.

Design the matching engine behind this feature.

What the system must do

  1. Eligibility screening. Exclude anyone who fails firm requirements: minimum overlap in working hours, a compatible pay range, valid authorization to work, and the required skills.
  2. Workload-aware ranking. Order the remaining people by how relevant their profile is, how well they have performed before, and how much free capacity they have. Do not push people who are already overbooked.
  3. Newcomer exposure. Freelancers who just joined have no client feedback. Give them a fair chance of being shown without hurting the quality of results for clients.
  4. Learning from outcomes. Record what happens after a recommendation (invite sent, interview passed, contract signed, client rating) and use it to update both the ranking model and per-freelancer scores.

Scale and targets

  • 100,000 active freelancers
  • 10,000 open jobs at any time
  • About 500 new jobs per day
  • p95 latency under 300 ms for query-time recommendations
  • A change in a freelancer's availability (for example, they sign another contract) must reach the matching engine within 10 seconds

What to cover in your answer

  • Overall architecture: services, storage, and queues or streams
  • The matching pipeline from candidate generation through filtering, scoring, workload adjustment and exploration, to final top-K selection
  • The core data model (freelancer, job, match/recommendation, feedback event)
  • How you handle newcomers and how feedback flows back into ranking, both online and offline

State your assumptions, do a quick capacity estimate, and call out the main trade-offs.

Hints

Hint 1

Do the arithmetic first: 100K embeddings of a few hundred dimensions fit in memory on one machine, and 500 jobs per day is a trivial write rate. Let that shape how much infrastructure you propose.

Hint 2

Separate slowly changing data (profile text, embeddings, static eligibility fields) from fast-changing data (free hours, pending invites). Keep the former in a search index and read the latter live from a low-latency store so the 10-second freshness target does not depend on index lag.

Hint 3

For newcomers, think in terms of a prior built from vetting signals plus a bandit-style sampler, limited to a few slots that skip the top positions. Log the probability with which each item was shown so you can correct for position bias when retraining.