BrainyBeeBrainyBee
ExploreBlogStart Studying
HomeDesigning and Implementing Microsoft DevOps Solutions (AZ-400)Optimising pipeline concurrency
Lesson244 words

Optimising pipeline concurrency

Optimize pipeline concurrency for performance and cost

Parallel jobs are the unit

Microsoft-hosted capacity is purchased as parallel jobs — concurrency slots. One slot runs one job at a time; a second concurrent job needs a second slot regardless of how long either runs.

That means the questions to ask are:

  1. How many jobs do we want running at once at peak?
  2. What is the cost of the queue when we exceed that?

Where concurrency is consumed

Every job consumes a slot: matrix legs, parallel test slices, and the jobs of other pipelines in the organisation. A matrix of eight legs with no throttle will take eight slots if they are free — starving everything else.

yaml
strategy: matrix: { ... } # eight legs maxParallel: 3 # but only three at a time

maxParallel is how a single pipeline stays a good citizen. Remember it is only valid with matrix, and that parallel and matrix are mutually exclusive.

Self-hosted changes the shape

Self-hosted agents each provide capacity you control. Scaling out is an infrastructure decision rather than a licence purchase — which is what VM Scale Set agents and Managed DevOps Pools exist to automate.

The trade-off to state

More concurrency shortens wall-clock time and raises peak cost or capacity requirements. Less concurrency queues work and lengthens feedback. There is no universally right setting; there is a deliberate one.

Primary sources

  • https://learn.microsoft.com/en-us/azure/devops/pipelines/licensing/concurrent-jobs
  • https://learn.microsoft.com/en-us/azure/devops/pipelines/agents/agents
All Designing and Implementing Microsoft DevOps Solutions (AZ-400) Study Resources

Related Notes

  • Agent and runner infrastructure421 words
  • Agent and runner infrastructure — quick notes150 words
  • Alerting on pipeline events255 words
  • Alerting on pipeline events — quick notes94 words
  • Analyzing usage and application performance241 words
  • Analyzing usage and application performance — quick notes73 words
  • Appropriate access levels217 words
  • Appropriate access levels — quick notes85 words
  • Automating container scanning277 words
  • Automating container scanning — quick notes96 words
  • Automating documentation from Git history191 words
  • Automating documentation from Git history — quick notes55 words

Ready to study Designing and Implementing Microsoft DevOps Solutions (AZ-400)?

Practice tests, flashcards, and all study notes — free, no sign-up.

Start Studying

Ready to study Designing and Implementing Microsoft DevOps Solutions (AZ-400)?

Practice tests, flashcards, and all study notes — free, no sign-up needed.

Start Studying — Free
Designing and Implementing Microsoft DevOps Solutions (AZ-400) ResourcesExplore All HivesBlogHome

© 2026 BrainyBee. Free AI-powered exam prep.