Design a Task Queue for Expert Annotation With Multi-Review
Last updated: November 29, 2026
Quick Overview
Design the system that distributes AI-training tasks (prompts, rubric grading, preference comparisons) to thousands of remote experts, enforces leases and multi-stage review, and delivers QA-passed batches to AI lab clients.
Micro1
November 29, 20260
0
0 solved
Design the system that distributes AI-training tasks (prompts, rubric grading, preference comparisons) to thousands of remote experts, enforces leases and multi-stage review, and delivers QA-passed batches to AI lab clients.
A human-data business lives on throughput and quality: tasks must reach qualified experts, not be lost or double-worked, and pass review before a client sees them. The interviewer checks lease-based claiming, a clear task state machine and QA sampling.
What the Interviewer Expects
- Defines a task state machine from created to delivered
- Uses leases with expiry so abandoned tasks return to the queue
- Routes by qualification and prevents self-review
- Supports consensus or multi-review with configurable rules
- Tracks per-expert quality and feeds it back into routing
- Explains delivery to clients with versioned batches
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 prevent two experts from claiming the same task under heavy contention?
- How would you insert hidden gold tasks to measure expert accuracy?
- A client changes the rubric mid-project. What happens to in-flight tasks?
- How do you pay experts correctly when a task is rejected in review?
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: projects define task types, rubric, required qualifications, review policy (for example one author plus two reviewers) and deadlines. Experts claim tasks, submit, review others' work. Clie...
High-Level Design
Services: Project service (configs, rubrics), Task service (state machine in Postgres), Routing service (who may claim what), Expert app (web), QA service (gold tasks, agreement metrics), Delivery ser...