Technical Debt from Architecture Decisions: How It Accumulates and How to Pay It Down

How architectural technical debt differs from code debt, the debt quadrant, measuring it with change data, and strategies like strangler fig and debt budgets...

Published November 27, 2026

Technical debt is the gap between the system you have and the system that would let you move quickly today. Code-level debt (a messy function, a missing test) is local and cheap to fix. Architectural debt (the wrong boundaries, a shared database, a synchronous chain that should be asynchronous) is spread across the system and gets more expensive every month it is ignored. This article explains how it forms, how to see it, and how to pay it down without a rewrite.

The concept

Ward Cunningham coined the debt metaphor to describe shipping code that reflects current understanding, knowing you will refactor as you learn. Taking on debt deliberately can be a good business decision; the problem is debt nobody tracks, or debt that was never deliberate. Martin Fowler's debt quadrant classifies it as deliberate or inadvertent, and prudent or reckless.

Architectural debt accrues interest through coupling. Every new feature built on a poor boundary adds more code that depends on it, which makes the eventual fix bigger. That is why architectural debt should be visible on the roadmap, measured where possible, and repaid incrementally alongside feature work rather than saved for a big-bang rewrite that rarely arrives.

Kinds of debt

RecklessPrudent
Deliberate"We do not have time for design""Ship now, refactor the billing module next quarter"
Inadvertent"What is layering?""Now we know how this domain should have been modelled"

Martin Fowler's technical debt quadrant.

Finding architectural debt with change data

Module A (clean)changes touch 1.2 filesModule B2.5 filesShared "utils" + users table8 files, 4 teams
Illustrative change coupling: average files touched per change in each area.

Measuring it

Architectural debt is easier to see in version control history than in the code itself. Hotspot analysis combines change frequency with complexity: files that change constantly and are hard to understand are where debt costs the most. Change coupling finds files that always change together across module boundaries, revealing hidden dependencies. Tools such as CodeScene automate this; a few git commands give a first look.

# Most frequently changed files in the last year
git log --since=1.year --name-only --pretty=format: | grep -v '^$' | sort | uniq -c | sort -rn | head -15

Paying it down

  1. Make debt visible: a register with impact and cost of delay
  2. Prioritise hotspots: high change frequency × high pain
  3. Reserve capacity: e.g. 15-20% of each sprint
  4. Refactor incrementally with the strangler fig pattern
  5. Prevent new debt: architecture tests, ADRs, reviews
A sustainable approach to paying down architectural debt.

Practical examples

Strangler fig migration

Route functionality piece by piece from the old component to the new one behind a facade.

location /api/invoices/ {           # migrated: new billing module/service
    proxy_pass http://billing_v2;
}
location /api/ {                    # everything else: legacy app
    proxy_pass http://legacy_app;
}

A debt register entry

Concrete enough to prioritise against features.

ID:            TD-031
Area:          users table shared by billing, admin, mobile API
Symptom:       schema changes need 4-team coordination; 3 incidents in Q3
Cost of delay: ~2 engineer-days per month + incident risk
Fix:           users module owns table; others use its API/events (est. 3 sprints)
Owner:         accounts team

Stop new debt with an architecture test

Fail CI when a new cross-module dependency appears.

// deptrac / dependency-cruiser / ArchUnit style rule
{ name: 'no-direct-users-table-access', severity: 'error',
  from: { pathNot: '^src/modules/users' },
  to:   { path: '^src/modules/users/infrastructure' } }

Common mistakes

  • Treating all debt as bad; deliberate, prudent debt can be a smart trade-off.
  • Keeping debt invisible to product and leadership, so it never gets prioritised.
  • Planning a big-bang rewrite instead of incremental strangling.
  • Refactoring areas that rarely change while ignoring hotspots.
  • Paying debt down without adding guardrails, so it reaccumulates.

Key takeaways

  • Architectural debt is spread across the system and grows with coupling.
  • Classify debt (deliberate/inadvertent, prudent/reckless) and make it visible.
  • Use change history to find hotspots and hidden coupling.
  • Repay incrementally with reserved capacity and strangler fig, then add guardrails.

FAQ

How much time should go to technical debt?

Many teams reserve 15-25% of capacity, adjusted by how much debt is slowing delivery. Tie it to measurable pain rather than a fixed rule.

Is a rewrite ever the right answer?

Occasionally, for small systems or obsolete platforms. For large systems, incremental replacement is usually less risky and delivers value along the way.

How do I explain architectural debt to non-engineers?

Use their metrics: features taking longer, incidents, onboarding time. Show the trend and the cost of continuing to pay the interest.

More Architecture articles