Design Job Dispatch for Azure DevOps Pipeline Agents
Last updated: November 29, 2026
Quick Overview
Design the service that assigns queued CI/CD jobs from Azure DevOps pipelines to Microsoft-hosted and self-hosted build agents, matching capabilities and respecting per-organization parallelism limits.
Microsoft
November 29, 20260
0
0 solved
Design the service that assigns queued CI/CD jobs from Azure DevOps pipelines to Microsoft-hosted and self-hosted build agents, matching capabilities and respecting per-organization parallelism limits.
Azure DevOps and GitHub Actions run huge CI fleets, and this question checks scheduler design with matching constraints, leases and fairness. Interviewers look for pull-based agents, heartbeats, and a good answer for what happens when an agent disappears mid-job.
What the Interviewer Expects
- Models jobs with demands and agents with capabilities
- Uses long-polling agents that pull work instead of the server pushing
- Assigns jobs with leases and heartbeats
- Enforces parallel job limits per organization fairly
- Scales Microsoft-hosted agents from a warm pool of VMs
- Handles cancellation, timeouts and retries
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
- An agent loses network for 3 minutes in the middle of a job. What happens to the job?
- How do you keep a big organization from starving small ones on hosted agents?
- How do you keep queue time under a minute on Monday morning?
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
Pipelines produce jobs with demands (OS, tools, labels). Self-hosted agents run in customer networks behind firewalls; hosted agents are Microsoft VMs created fresh per job. Each organization buys N p...
High-Level Design
Orchestrator expands pipeline runs into jobs and writes them to a job queue store per agent pool. Agents hold a long-poll connection to the dispatch service (outbound HTTPS, works behi...