Design Distributed Streaming Skill Matching
Design a distributed platform that computes maximum one-to-one matches between tagged work and skilled programmers, then revises assignments as updates stream in.
Problem statement
For this exercise, assume a platform stores versioned problems with required tag sets and versioned programmer profiles with skill sets and availability. A programmer is compatible with a problem when at least one skill intersects the problem's tags.
The platform must compute a maximum-cardinality one-to-one assignment for a consistent snapshot, publish that assignment as an immutable version, and continuously accept problem and programmer updates that lead to later assignment versions.
Each published version must assign any problem and programmer at most once, retries must not duplicate updates or assignment records, and readers must never observe a partially published version. Explain the distributed computation, streaming update path, correctness boundary, and recovery behavior.
Ranking, compensation, messaging, and manual interview scheduling are outside scope.
What to build
- Accept idempotent creates, updates, availability changes, and removals for problem tag sets and programmer skill sets.
- Compute a maximum-cardinality one-to-one compatible assignment against an explicit input snapshot.
- Publish each complete assignment as one immutable version and expose matched and unmatched entities without partial results.
- Consume a continuous update stream, coalesce affected work, and produce a later assignment version with bounded staleness.
At scale
- Assume 1,000,000 open problems, 250,000 available programmers, and a highly skewed tag distribution.
- Plan for 20,000 ordinary input updates per second and short bursts up to 100,000 updates per second.
- A full snapshot assignment should publish within five minutes; streaming changes should appear in a new complete version within 30 seconds for 99% of accepted updates.
- Run in one region across multiple zones with 99.9% availability; under recoverable overload, preserve accepted updates and allow assignment freshness to lag rather than publish an invalid version.