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
System Design
Software Engineer
Micro1
November 29, 2026
Software Engineer
System Design Round
System Design
Medium

0

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
Work queues
Leases and idempotency
State machines
Quality control
Postgres SKIP LOCKED
Batch delivery
How to Approach This
  1. Start by clarifying functional and non-functional requirements with the interviewer.
  2. Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
  3. Draw a high-level architecture first, then deep dive into 1-2 critical components.
  4. Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
  5. 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 Problems
Sample 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...


Submit Your Answer
Markdown supported

Related Questions