Design a Background-Check Processing Platform
Accept employer requests, coordinate asynchronous external checks, and expose a tenant-owned report with explicit pending and failed outcomes.
Problem statement
For this exercise, assume employers submit background-check cases for applicants who have already supplied a consent reference. Each request selects one to five supported check types.
The platform accepts the case, requests the checks from external providers, and lets the employer retrieve current status and an eventual report containing each check result or explicit failure. A case is completed only after every requested check is terminal; completed does not mean every check succeeded.
Keep results and applicant information isolated to their employer tenant. Repeating the same tenant-scoped submission key with the same payload returns the same case; a different payload with that key is a conflict.
Providers may take minutes to days, time out during submission, and deliver duplicate or delayed callbacks.
For this exercise, each provider guarantees that repeated submissions with the same stable client request key and check payload create at most one provider check throughout the case lifetime, and exposes a status query by that key.
A query may report accepted, not found or unknown; not found alone does not prove that a timed-out in-flight submission failed. Only the same key and payload may be retried under this provider deduplication guarantee, within the provider request budget.
An uncertain submission must remain pending until query or callback evidence resolves it, without blindly requesting a second check. A late response from an older attempt must not overwrite the current attempt or a terminal result.
Design the request, orchestration, result-storage and read paths, including provider outages and backlog. Raw applicant details must not appear in logs or queues; pass scoped references and enforce authorization on reads.
Legal policy decisions, hiring recommendations, manual adjudication, identity matching algorithms, payments and cancellation are outside scope.
What to build
- Accept a tenant-owned case with applicant and consent references, one to five check types, and an idempotent submission key.
- Coordinate external check submissions and reconcile uncertain submissions and duplicate or delayed provider events.
- Return the current case status and per-check result or failure; mark the case completed only when every requested check is terminal.
- Authorize tenant-specific reads and processing, and keep raw applicant details out of logs and queues.
At scale
- For this exercise, assume 100,000 new cases per day, bursts of 200 case submissions per second, and one to five checks per case.
- Providers may take minutes to days; each provider allows at most 20 new check submissions per second across all tenants.
- Target 99.9% availability for accepting cases and reading stored status; target a one-minute start for 99% of checks when their provider capacity is available. When capacity is unavailable, show pending status and monitor backlog age rather than promise the target.
- Retain completed reports for 90 days and require an authorized status read to reflect a committed check result within five seconds.