📁 Sangam Dhakal - Portfolio v2.0 - Netscape Navigator 4.0
_
□
×

📚 Interview question

Leadership has decided to split your company's .NET monolith into 15 microservices within six months, and asks you to lead it. The monolith works, there are four teams, and there is no platform team. How do you respond, what data do you gather, and what do you propose instead, including how you'd record and sell the decision?

Responding to a top-down microservices mandate: uncovering the real goals, gathering evidence (DORA, coupling, cost), proposing a modular-monolith-first plan with targeted extractions, and using an ADR and stakeholder framing to win support.

Staff / Architect Architecture Expert adr architecture microservices migration-strategy modular-monolith stakeholder-management

🎯 Key points

  • Find the underlying goal behind the mandate (speed, scaling, hiring, outages, cost) before arguing about the solution
  • Gather evidence: DORA metrics, change coupling from git history, incident causes, load profile, team skills and on-call maturity, cloud cost
  • Show the cost of 15 services for 4 teams and no platform: ops, on-call, data consistency, contracts, likely distributed monolith
  • Propose a phased plan: delivery basics (GitHub Actions/Azure Pipelines, IaC with Bicep or Terraform), modularise, then extract 1-3 services where a measured driver exists
  • Make extraction cheap when it comes: platform templates on Azure Container Apps or App Service, OpenTelemetry, standard resilience; AKS only when the scale and skills justify it
  • Tie each phase to the business goal with measurable outcomes and dates, so leadership sees progress
  • Write an ADR comparing options, with explicit triggers for further extraction; disagree and commit if overruled, with risks recorded; frame it in risk, cost and time to value

⏱ 30-second answer

I'd start by asking what problem the mandate is meant to solve: slow delivery, outages, scaling, hiring, or a board-level "modernise" goal. Then I'd gather evidence: DORA metrics, change coupling from git history, incident causes, load data, team structure and cloud cost.

With four teams and no platform team, 15 services in six months would most likely produce a distributed monolith with higher cost and slower delivery. So I'd propose a phased plan tied to their goal: modularise the monolith with enforced boundaries and team ownership, extract one to three services where there's a measured driver, and build platform capability as we go.

I'd record it in an ADR with the alternatives and triggers for further splits, and present it in business terms: risk, cost, time to value.

The trade-off: I'm asking leadership to trade a bold headline for measurable outcomes.

🗣 Full answer (senior)

How I would answer this in an interview

"I wouldn't say no, and I wouldn't just say yes. A mandate like '15 microservices in six months' is usually a solution to a problem that hasn't been stated, so my first step is a conversation with the sponsor: what outcome do you want to see in six months? Usually it's one of: we ship too slowly, we have too many outages, we can't scale for a big customer, or we need a modern stack to hire. Each of those has a different best answer.

Then I gather data over two or three weeks. DORA metrics for the monolith. Change coupling from git history, to see which areas really change together. Incident causes over the last year. Load profile per feature. The team topology: four teams, no platform team, no one experienced in running many services on call. Cloud cost. For example, at [company] I faced [a similar mandate]. The data showed our lead time was [12 days], but [70%] of that was waiting for a shared, manual release process, not the code structure. I wrote an ADR comparing three options: 15 services now, a modular monolith with targeted extractions, and status quo. I estimated the 15-service option at [~$X] extra platform cost and [two] additional hires just for operations. I proposed instead: automate the pipeline in month one, modularise along four team-owned boundaries by month three, and extract the [reporting] service, which really did need independent scaling, by month five. I presented it as a plan that hits the CTO's actual goal faster. We agreed on it, lead time dropped to [2 days] in [four] months, and we extracted [two] services within the year where the data justified it.

The mistake I see is either refusing outright, which loses trust, or complying silently and building something the organisation can't run. My senior line is: argue about the goal, bring data to the solution, and if I'm overruled, I commit fully and write the risks and the checkpoints down."


Discover the real goal

Stated goal What usually helps more than 15 services
"Ship faster" CI/CD automation, trunk-based development, modular ownership, feature flags
"Fewer outages" Observability, SLOs, isolation of the noisiest component, better testing
"Scale for big customer" Profile and scale the hot path; extract that one component if needed
"Modernise / hiring" Upgrade to .NET 10, containers, cloud-native hosting; modular code
"Teams block each other" Team-owned modules with enforced boundaries, separate pipelines later

Evidence to collect

Data Source What it tells you
DORA metrics Azure DevOps / GitHub Where delivery is actually slow
Change coupling git log analysis (e.g. code-maat, CodeScene) Natural module boundaries
Incident causes Post-incident reviews Whether isolation would help
Load per feature Application Insights Which parts need independent scaling
Team topology and skills Org chart Operational capacity
Cost Azure Cost Management Baseline for comparing options

Options in the ADR

Option Delivery outcome (6 months) Risk Cost
15 services now Mostly platform work; features slow High: distributed monolith High
Modular monolith + 1-3 targeted extractions Faster delivery from month 2 Low-medium Low-medium
Status quo No change Goal missed Low

Production example

Reframing a [15-service] mandate into pipeline automation, four team-owned modules and [two] targeted extractions cut lead time from [12] to [2] days within [four] months, avoided about [$X] a year of extra platform cost, and kept the option to split further with documented triggers.

🔍 What the interviewer is checking

Checks staff-level judgement: uncovering the real goal, using evidence, proposing a pragmatic alternative, and influencing senior stakeholders while being willing to commit.

Green flags

  • Asks what outcome the mandate is meant to achieve
  • Gathers DORA, change coupling, incidents, load, team and cost data
  • Proposes a phased plan with measurable checkpoints
  • Uses an ADR and business framing; can disagree and commit

Red flags

  • Says yes and starts splitting, or flatly refuses
  • Argues from ideology ("microservices are bad")
  • Ignores team capacity and operations

📚 Learn in depth

1. Why the mandate is risky as stated

Microservices trade in-process simplicity for independent deployability and scaling. The benefits come only if each service has a team that owns it end to end and a platform that makes running services cheap. With 4 teams, 15 services means each team owns ~4 services plus their pipelines, alerts, contracts and data, without a platform team.

Teams: 4     Services: 15     Platform team: 0
→ every team on call for ~4 services
→ every feature crossing 2-3 services needs coordinated releases
→ shared DB kept "temporarily" → distributed monolith

2. Change coupling: let the code tell you the boundaries

Analyse git history to find files that change together. If Orders/* and Billing/* change in the same commits 60% of the time, splitting them into separate services will force coordinated releases. Tools: code-maat, CodeScene, or a simple script over git log --name-only.

3. Team Topologies

Stream-aligned teams own a flow of business value; a platform team provides self-service infrastructure to reduce their cognitive load. Without one, each stream-aligned team must build its own pipelines, observability and runtime knowledge. Cognitive load is the real limit on how many services a team can own.

4. A phased plan

Month 1-2: Delivery basics
  - Automated CI/CD, trunk-based dev, feature flags
  - Observability: OpenTelemetry, SLOs on top journeys
Month 2-4: Modularise
  - 4 team-owned modules aligned to bounded contexts
  - Schema per module, contracts, ArchUnitNET boundary tests
Month 4-6: Targeted extraction
  - Extract 1-3 services with measured drivers (scaling, isolation, cadence)
  - Outbox, contracts, resilience, platform templates (Container Apps / App Service)
Ongoing: Triggers in ADR for further extraction

Each phase has measurable outcomes (lead time, change failure rate, incidents, cost) that map to the sponsor's goal.

5. Influence without authority

  • Pre-wire: talk to key stakeholders individually before the big meeting.
  • Lead with their goal, then data, then options, then recommendation.
  • Make it safe to change course: present the plan as a faster route to their outcome, not as "you were wrong".
  • Offer a checkpoint: "If after month four lead time hasn't improved, we revisit the broader split."
  • Disagree and commit: if overruled, record the risks and mitigation in the ADR and execute well; propose the lowest-risk version of their plan (e.g. extract services along change-coupling boundaries, platform team first).

6. Australian context

In regulated sectors (banking under APRA CPS 230 operational resilience, government under the PSPF and ISM), each new service adds to the inventory of systems that need risk assessment, monitoring and incident response. That is real cost leadership should see in the comparison.

Try it yourself

  1. Run a change-coupling analysis on a repo you know and list the top 10 coupled file pairs across folders.
  2. Pull a year of DORA metrics and break lead time into coding, review, waiting and deploying.
  3. Write the three-option ADR for a mandate like this one, including costs and triggers.
  4. Draft a one-page summary for an executive with goal, options, recommendation and checkpoints.
  5. Sketch a Team Topologies map of your organisation and count services per team.

💻 Code

Evidence beats opinion. A small script to estimate change coupling between top-level modules from git history, and the ADR skeleton for the decision.

// dotnet run --file ChangeCoupling.cs -- /path/to/repo   (.NET 10 file-based app)
using System.Diagnostics;

var repo = args.Length > 0 ? args[0] : ".";
var psi = new ProcessStartInfo("git", "log --since=12.months --name-only --pretty=format:---")
{
    WorkingDirectory = repo, RedirectStandardOutput = true
};
using var git = Process.Start(psi)!;
var output = await git.StandardOutput.ReadToEndAsync();

// Group files per commit, map each file to its top-level module (src/Modules/<Module>/...).
var commits = output.Split("---", StringSplitOptions.RemoveEmptyEntries)
    .Select(c => c.Split('\n', StringSplitOptions.RemoveEmptyEntries)
        .Select(ModuleOf).Where(m => m is not null).Cast<string>().ToHashSet())
    .Where(s => s.Count > 0)
    .ToList();

var pairs = commits
    .SelectMany(s => s.SelectMany(a => s.Where(b => string.CompareOrdinal(a, b) < 0).Select(b => (a, b))))
    .GroupBy(p => p)
    .Select(g => new { Pair = g.Key, Count = g.Count() })
    .OrderByDescending(x => x.Count)
    .Take(10);

foreach (var p in pairs)
    Console.WriteLine($"{p.Pair.a} <-> {p.Pair.b}: changed together in {p.Count} commits");

static string? ModuleOf(string path)
{
    var parts = path.Split('/');
    return parts.Length > 2 && parts[0] == "src" && parts[1] == "Modules" ? parts[2] : null;
}
# 0012. Approach to decomposing the monolith
Status: Proposed
## Context
Goal from CTO: cut lead time and reduce outages within 6 months. 4 teams, no platform team.
Lead time 12 days (70% waiting on release). Orders<->Billing change together in 61% of commits.
## Options
1. 15 microservices in 6 months  2. Modular monolith + 1-3 targeted extractions  3. Status quo
## Decision
Option 2. Extract Reporting (independent scaling) by month 5.
## Consequences / checkpoints
Revisit at month 4 if lead time > 5 days. Extract further when a module has its own team and a measured driver.

⚠ Common mistakes

  • Mistake: Refusing the mandate outright. Why it is wrong: Leadership hears obstruction and stops listening. Instead: Engage with the goal and offer a better path to it.
  • Mistake: Complying silently. Why it is wrong: You build a system the organisation can't operate, and the goal is missed anyway. Instead: Raise risks with data and propose alternatives before committing.
  • Mistake: Arguing in architecture terms ("coupling", "cohesion"). Why it is wrong: Executives decide on risk, cost and time. Instead: Translate into lead time, outages, cost and hiring.
  • Mistake: Splitting by technical layer or by the number 15. Why it is wrong: Boundaries that ignore change coupling create coordinated releases. Instead: Use bounded contexts and git change-coupling data.
  • Mistake: Ignoring operational capacity. Why it is wrong: Without a platform and on-call maturity, more services mean more incidents. Instead: Count services per team and build platform capability first.
  • Mistake: No checkpoints. Why it is wrong: If the plan underperforms, nobody notices until it's too late. Instead: Agree measurable outcomes and review dates.
  • Mistake: Not writing the decision down. Why it is wrong: The debate restarts every quarter and dissent is lost. Instead: ADR with options, decision, consequences and triggers.

🏛 Senior insight: trade-offs

At staff level the job is less about picking the architecture and more about aligning the organisation on the outcome. The best proposals let the sponsor win: they get faster delivery and fewer outages sooner, and they keep the microservices option open with a clear path. I also look for the hidden constraint: sometimes the mandate is driven by a funding round, an acquirer's expectations or a vendor contract, and the plan has to address that too.

If I'm overruled, I disagree and commit, but I shape the execution to reduce risk: platform team first, extract along change-coupling boundaries, database per service only where ownership is clear, and checkpoints written into the ADR.

Option When it fits Cost When not to
Modular monolith + targeted extraction Few teams, no platform, goal is speed/stability Low-medium Many teams already blocked by one deployable
Broad microservices migration Many teams, platform team, independent cadence needed High Small org, no platform, unclear boundaries
Platform first, then services Leadership committed to services long term Medium up front Short-term delivery is the main goal
Status quo + delivery fixes Delivery problem is process, not structure Low Real scaling or isolation needs exist

🔗 Follow-ups the interviewer may ask

  1. When: Candidate says 15 services would be over-engineering Why: Checks how they spot and argue against architecture-level over-engineering
    How to answer

    At the architecture level, over-engineering means paying now, in hosting, cognitive load and delivery speed, for scale or flexibility nobody has evidence for. The warning signs are concrete signals to investigate: far more deployables than teams, Kubernetes and a service mesh for 50 requests a second when App Service or Container Apps would do, a message broker between modules in one process, a generic plug-in framework with a single plug-in. I judge them against the team's size, experience and on-call capacity, because the same design can suit eight platform teams and sink one team of five.

    I separate one-way doors (splitting data, event sourcing, choosing a region) from two-way doors (a library, a folder layout). One-way doors get analysis and an ADR; two-way doors get the simplest option. I keep options open with module boundaries rather than network boundaries.

    The trade-off: under-building something genuinely irreversible is costly too, so I write down the trigger that would justify the bigger design.

  2. When: Candidate proposes targeted extractions Why: Checks their criteria and process for extracting a service
    How to answer

    I keep a modular monolith until a module has a measured reason to become its own deployable: it needs to scale independently, it has a different release cadence or owning team, it needs fault or security isolation, or it needs a different runtime. "Microservices are modern" isn't a reason.

    The first candidate should have few inbound dependencies, a clean contract and its own schema already. Extraction is incremental: make the module talk only through its contract, stop cross-module joins and transactions, move its data, deploy it as a service, and switch traffic behind a feature flag with a rollback path.

    The trade-off: every extracted module turns method calls into network calls, so you gain autonomy and isolation but pay with latency, partial failures and eventual consistency.

  3. When: Candidate mentions writing an ADR Why: Checks how they document and communicate architecture decisions
    How to answer

    I use three tools that reinforce each other. Architecture Decision Records capture each significant decision in one short page: context, decision, alternatives, consequences and status. They live in the repo and are reviewed by pull request; when a decision changes, a new ADR supersedes the old one.

    The C4 model gives diagrams at the right zoom level: System Context for stakeholders, Containers for engineers, Components where it helps. I keep them as code (Structurizr DSL or Mermaid) so they're versioned.

    Fitness functions stop the docs from lying: architecture tests (ArchUnitNET), load tests and dependency checks that fail the build when the code drifts from the decisions.

    The trade-off: documentation costs time, so I keep it small and automate the checks instead of writing long documents nobody reads.

🛠 Real-world problems: how you handle them

A 15-microservice mandate reframed into a modular monolith plan
Situation
After [a board review], the CTO of a [mid-sized SaaS company] mandated splitting the [.NET 8] monolith into [15] microservices within six months. There were [four] product teams, no platform team, and a single Azure SQL database.
Signals
Lead time of [12] days, [two] major outages in the past quarter, a large customer's onboarding pending on performance, and teams already worried about the plan in retros.
Investigation
I pulled DORA metrics from Azure DevOps and broke lead time down by stage, ran a change-coupling analysis on 12 months of git history, reviewed incident causes, profiled load per feature in Application Insights, and estimated platform and on-call costs for 15 services.
Resolution
Immediate: met the CTO one-on-one to agree the target outcomes (lead time, outages, the big customer). Long-term: a three-option ADR recommending pipeline automation in month one, four team-owned modules with boundary tests by month three, and extraction of the [reporting] service by month five, with checkpoints.
Prevention
Monthly outcome reviews with the CTO, triggers in the ADR for further extraction, architecture tests for module boundaries, and a services-per-team guideline in the architecture principles.

How to tell it (STAR)

**S:** At [company] the CTO mandated [15] microservices in six months for a team of four squads with no platform team. **T:** I was asked to lead it, and I believed it would slow us down. **A:** I met the CTO to understand the goal: faster delivery and fewer outages before [a key customer] launch. I gathered DORA metrics, change coupling and incident data, showed that [70%] of lead time was release waiting, and wrote an ADR comparing three options with costs. I pre-wired the engineering managers, then proposed a phased plan with checkpoints. **R:** The CTO agreed; lead time fell from [12] to [2] days in [four] months, outages dropped, and we extracted [two] services within the year where the data justified it.

↩ Usually asked after

More in Senior-Level Architecture

Last updated 23 Nov 2026.

🌐 Sangam's Webring

⏪ Previous 🏠 Main Next ⏩
💬 Chat with me