Introducing CI Autopilot private beta: Root cause and automatically fix CI failures Join the waitlist
Merge Queue

When Your Development Team Actually Needs a Merge Queue

September 18, 20257 min read
Sam Gutentag
Sam Gutentag

As an engineering leader, you've probably heard the merge queue buzz. Maybe your team is hitting merge conflicts daily, or your main branch keeps breaking, or you're just wondering if this is another tool that promises to solve problems you're not sure you have yet.

The truth is, merge queues aren't universally beneficial; they're a solution to specific scaling problems. Let's walk through when they make sense, what types of teams benefit most, and how to think about the investment.

The Merge Queue "Sweet Spot"

Think of merge queue adoption like adding traffic lights to an intersection. A stop sign works fine when you have 2-3 cars per hour. But as traffic increases, you reach a tipping point where coordination becomes the bottleneck, not the cars.

Team Size Thresholds

Your team size creates predictable collaboration patterns:

  • Under 5 developers: Manual merging typically works fine. Everyone knows what everyone else is working on, and coordination happens naturally through conversation.

  • 5-15 developers: This is where you start feeling the pain. You're crossing the threshold where informal coordination breaks down, but you're not yet drowning in conflicts. A basic merge queue starts providing value here.

  • 15-50 developers: Merge queues become essential. You've hit the zone where multiple people are touching the same code areas regularly, and the cost of coordination failures (broken builds, blocked developers) outweighs the overhead of queue management.

  • 50+ developers: Advanced merge queue features become crucial. You need parallel processing, intelligent batching, and sophisticated conflict resolution strategies.

Activity Level Indicators

Team size tells part of the story, but velocity matters too:

  • Under 5 PRs/day: Manual merging works. The overhead of setting up and maintaining a merge queue exceeds the coordination savings.

  • 5-20 PRs/day: Basic merge queue prevents the daily "who's going to rebase?" conversations and eliminates the lottery of who gets stuck with complex conflict resolution.

  • 20-100 PRs/day: You need batching and optimization features. Simple queuing isn't enough, you need intelligence about which changes can be safely grouped together.

  • 100+ PRs/day: You're in enterprise territory where parallel queues, advanced routing, and cost optimization features become business necessities.

Project Archetypes: Where Merge Queues Shine

Not all codebases are created equal. Certain project structures create natural merge queue candidates:

Monorepos: The Perfect Storm

Monorepos represent the ideal merge queue use case because they amplify coordination challenges:

1# Typical e-commerce monorepo structure
2├── services/
3│   ├── user-service/
4│   ├── payment-service/  
5│   ├── inventory-service/
6│   └── notification-service/
7├── shared-libs/
8│   ├── auth-lib/
9│   └── utils-lib/
10└── frontend/
11    ├── customer-app/
12    └── admin-dashboard/

Why monorepos are merge queue magnets:

  • Shared dependency conflicts: When someone updates auth-lib, it potentially affects every service. Without coordination, multiple teams might be updating incompatible versions simultaneously.

  • Cross-service integration testing: Changes in one service might break tests in another, but you will not know until everything is merged and the full test suite runs.

  • Release coordination complexity: Multiple teams want to ship features simultaneously, but they all need to go through the same main branch.

The marketing pitch here writes itself: "Turn your monorepo from a coordination nightmare into a productivity engine."

High-Velocity SaaS Products

Fast-growing SaaS companies hit merge queue necessity at predictable growth stages:

Typical scenario: 25 engineers shipping features daily across multiple customer-facing environments where broken deployments directly impact revenue.

Specific pain points that drive adoption:

  • Engineers are spending 20-30% of their time on merge conflict resolution instead of feature development

  • Main branch instability is blocking all feature releases (you can't ship anything when the build is red)

  • Manual rebasing is becoming someone's accidental full-time responsibility

  • Customer demos are failing due to unstable staging environments

The value proposition becomes clear when framed in business terms: "Ship features 3x faster without breaking production."

High-Volume Open Source Projects

Open source projects with significant contribution volume face unique coordination challenges:

  • Contributor coordination impossibility: 100+ external contributors can't coordinate merge timing like an internal team

  • Variable change complexity: A documentation typo shouldn't be blocked by a complex architectural change, but they might conflict

  • Maintainer time scarcity: Core maintainers can't spend all day managing merge logistics

  • Quality gate requirements: Every change needs thorough testing, but simple fixes shouldn't wait behind complex features

The pitch for these projects focuses on sustainability: "Scale your open source project without burning out maintainers."

When Premium Features Justify the Investment

Basic merge queues solve coordination problems. Premium features (like those offered by Trunk and similar tools) solve business problems. Here's when the business case becomes compelling:

Enterprise Teams in Highly Regulated Industries

Example context: Trading platforms, banking applications, healthcare systems

Why basic merge queues fall short:

  • Compliance traceability: Batching changes together can make individual change tracking difficult for audit purposes

  • Expensive test requirements: 45+ minute CI runs for comprehensive security and compliance testing

  • Parallel queues unblock unrelated work: Changes in different parts of the code base are split into separate, parallel, queues, ensuring critical fixes in one area don’t get bogged down behind routine tasks in other parts of the code base.

  • Audit trail requirements: Detailed reporting and approval workflows are regulatory necessities, not nice-to-haves

Premium feature value:

  • Conditional batching (batch safe changes, isolate risky ones)

  • Advanced priority systems for security hotfixes

  • Compliance reporting and detailed audit trails

  • Intelligent retry logic that doesn't waste money re-running expensive test suites

High-Growth Startups (Series B+)

Typical situation: Scaling from 20 to 100 engineers rapidly

Specific business pressures:

  • Infrastructure costs scaling faster than productivity: CI bills jumping from $5K to $25K monthly

  • Velocity plateau despite hiring: More engineers aren't producing proportionally more output

  • Technical debt accumulation: Growth pressure creates shortcuts that compound coordination problems

Why basic solutions don't scale:

  • Can't handle 100+ PRs/day efficiently without significant manual overhead

  • No cost optimization features (batching can reduce CI costs by 60-80%)

  • Limited visibility into where bottlenecks actually occur

  • A one-size-fits-all approach doesn't adapt to different team workflows

Consulting and Agency Teams

Unique challenges: Managing 10+ client projects with mixed team compositions

Why this creates perfect conditions for premium merge queue features:

  • Multi-project complexity: Different repositories with different requirements and team compositions

  • Priority stratification: Urgent client requests need to jump ahead of internal tool updates

  • Utilization optimization: Need to optimize developer time across the entire project portfolio

  • Client reporting: Detailed per-project reporting becomes a client service differentiator

Making the Decision: A Framework

When evaluating merge queue adoption, work through these questions systematically:

  1. Frequency question: How often do merge conflicts block your team? If it's daily, you're past the threshold.

  2. Cost question: Instead of burning time scrambling to fix your main branch all the tim, put a system in to prevent problems from happening. 

  3. Architecture question: Do you have shared dependencies that create cascade effects when changed?

  4. Business impact quseiont: Are broken branches or slow merges causing your teams to deploy less frequently or preventing critical fixes you need to get out fast?

The key insight is that merge queues solve coordination problems that emerge predictably at scale. The question isn't whether you'll eventually need one, it's whether you're already past the point where the benefits outweigh the overhead.

Next Steps

If you're reading this and recognizing your team's patterns, start by measuring your current coordination overhead. Track how much time your engineers spend on merge conflicts, how often your main branch is broken, and how these issues trend over time.

The data will make the decision obvious, and give you the business case to present to leadership when you're ready to invest in a solution.

Learn about how Trunk approaches Merge Queues and can improve your team's velocity at trunk.io/merge-queue

Try it yourself or
request a demo

Get started for free

The DevOps Assistant
for self-healing CI