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

📚 Interview question

You are the senior engineer on a 10-service .NET 10 platform running on AKS with Application Insights. Teams are asking for Dapr, Istio or Linkerd, the OpenTelemetry Collector and Backstage. Which would you adopt, in what order, and what evidence would make you change that order?

Covers an adoption decision across Dapr, a service mesh, the OpenTelemetry Collector and Backstage for a mid-sized .NET platform: starting from problems and constraints, sequencing by value and reversibility, what each costs to run, the platform features that already cover the need, ADRs, pilots and success metrics.

Senior Architecture Advanced architecture-decisions cloud-native dapr opentelemetry-collector platform-engineering service-mesh

🎯 Key points

  • Start from problems and constraints (team size, skills, compliance, cost), not the tool list
  • Rank by value per unit of operating cost and by reversibility: cheap, reversible, broadly useful first
  • OpenTelemetry Collector first: low risk, cuts telemetry cost, central PII redaction, vendor freedom
  • Service mesh only for a concrete need (mandatory mTLS, canaries, gRPC balancing); prefer managed Istio add-on or ambient, or none
  • Dapr only if polyglot, multi-environment or actors/workflow; otherwise Azure SDKs + Aspire
  • Backstage last at 10 services: templates, catalog-info files and docs first; portal when teams and services grow
  • Each step: ADR, a pilot on one or two services, success metrics, an exit plan
  • Revisit when evidence changes: an audit requiring mTLS, a non-.NET team joining, service count growing past ~30

⏱ 30-second answer

I would not adopt a list; I would solve the platform's actual problems in order of value per unit of operating cost and reversibility.

  1. OpenTelemetry Collector first: cheap, reversible, and it immediately helps with telemetry cost, PII redaction and vendor freedom.
  2. Service mesh only when there is a concrete need such as mandatory mTLS or canary releases, and then the managed Istio add-on or a light option like Linkerd, not a self-built Istio.
  3. Dapr only if a non-.NET team joins, we must run in several environments, or we need actors or durable workflow. Otherwise Azure SDKs plus Aspire cover it.
  4. Backstage last: at 10 services, golden-path templates and catalog-info.yaml files give most of the value.

Every step gets an ADR, a pilot, success metrics and an exit plan.

🗣 Full answer (senior)

How I would answer this in an interview

"I would start by asking what problem each request is trying to solve, because at ten services and probably three or four teams our biggest risk is operating more infrastructure than we have people for. So I rank options by two things: value per unit of ongoing operating cost, and how easy they are to reverse.

The OpenTelemetry Collector comes first. The services already emit OpenTelemetry; putting an agent and a small gateway in front of Application Insights lets us tail-sample to cut ingestion cost, redact personal data centrally for our Privacy Act obligations, and keep vendor choice open. It is reversible: if it does not work, services point straight back at Azure Monitor. Next I would look at whether we have a real mesh problem. If security requires mTLS on every hop or we are doing frequent canaries, I would pilot the managed Istio add-on on one namespace, or Linkerd if we want simplicity, and measure latency and memory. If the need is only encryption and service identity, managed identity tokens and network policies may be enough, and no mesh is the right answer. Dapr I would only adopt if a Python or Go team joins, we must run outside Azure, or we need workflows; for an all-.NET Azure team the Azure SDKs plus Aspire are simpler. Backstage I would defer: a dotnet new template, catalog files in each repo and good docs get us most of the way until we are at thirty-plus services and several more teams. For example, at [company] we [introduced the collector first] and [cut telemetry cost by X%] before touching anything else.

The mistake I see is adopting all four in a quarter because they are on the CNCF landscape, and then spending the next year upgrading them instead of shipping. Every addition should earn its place with an ADR, a pilot, a metric and an exit plan."


Scoring the options for this platform

Tool Problem it solves Operating cost Reversibility Verdict at 10 services
OpenTelemetry Collector Telemetry cost, PII redaction, vendor lock-in, tail sampling Low-medium (a DaemonSet + 2-3 gateway pods) High Adopt now
Service mesh mTLS everywhere, canaries, gRPC balancing, edge metrics Medium-high Medium (sidecars and CRDs everywhere) Adopt only for a named need; prefer managed
Dapr Polyglot building blocks, portability, actors, workflow Medium Low (code depends on its API) Hold unless the triggers appear
Backstage Discoverability, ownership, golden paths at scale High (people) Medium Defer; templates and catalog files first

What the platform already gives you

Need Without new tools
Service identity Managed identity + Entra ID app roles
Network isolation Kubernetes network policies, private endpoints
Resilience AddStandardResilienceHandler in Aspire service defaults
Local multi-service dev Aspire AppHost
New service consistency dotnet new template + shared pipeline template

Production example

On a [10]-service AKS platform, introducing a collector gateway with tail sampling cut Application Insights ingestion by [60%] in a month. A later [security assessment] required mTLS; a [three]-week pilot of the managed Istio add-on on one namespace showed [under 1 ms] p50 overhead, and it was rolled out. Dapr and Backstage stayed on the 'revisit' list in the ADR log.

🔍 What the interviewer is checking

Checks whether the candidate makes platform decisions from problems, cost and reversibility rather than trends, and can communicate them through ADRs and pilots.

Green flags

  • Asks about team size, skills, compliance and cost before choosing
  • Puts reversible, broadly useful changes first and explains why
  • Knows what Azure, AKS and Aspire already cover
  • Defines pilots with metrics, exit plans and revisit triggers

Red flags

  • Adopts everything, or rejects everything, without reasons
  • Picks Dapr or a mesh first with no requirement
  • No thought for who operates the tools after adoption

📚 Learn in depth

1. A decision framework

problem? --no--> don't adopt
   | yes
already solved by platform (AKS, Azure, Aspire, .NET)? --yes--> use that
   | no
who will run it, and for how long? --nobody--> don't adopt / buy managed
   | named owner
pilot on 1-2 services with success metrics + exit plan --> ADR --> roll out or back out

Two axes drive order: value per operating cost, and reversibility (a one-way door needs more evidence than a two-way door). The collector is a two-way door; Dapr, once in application code, is close to one-way.

2. Operating cost in practice

Tool Day-2 work
Collector Config changes, scaling gateways, alerting on drops, quarterly image updates
Mesh Control and data plane upgrades, cert rotation, CRD policy, sidecar or ztunnel debugging
Dapr Runtime and SDK upgrades in step, component configs and secrets, sidecar debugging
Backstage Monthly framework upgrades, plugin maintenance, catalog quality, TypeScript skills

A team of [eight] engineers cannot absorb all four without a dedicated platform function.

3. Sequencing logic

  1. Observability first, because every later change (a mesh, Dapr) needs good telemetry to judge its effect.
  2. Security needs next, if they exist: a mesh or simpler identity controls.
  3. Application-level abstractions (Dapr) only when language or portability needs appear, since they change code.
  4. Developer portal when the number of teams and services makes discoverability a measurable pain.

4. Triggers that change the order

Evidence Change
Audit or customer contract requires mTLS on every hop Bring the mesh forward
A Python or Go team joins, or an on-premises deployment target appears Re-evaluate Dapr
Services pass ~30 or teams pass ~6, and owners are hard to find Bring Backstage forward (consider managed)
Telemetry bill is small and one backend is enough Collector can stay agent-only or be skipped

5. Running a pilot

  • Pick one or two representative services, not the simplest.
  • Define success metrics up front: p99 latency, memory per pod, ingestion cost, time to diagnose a fault, developer feedback.
  • Time-box it (two to four weeks) and write the exit plan before you start.
  • Record the outcome in an ADR, including what you rejected and why.

Try it yourself

  1. Write an ADR template with sections: context, options, decision, consequences, revisit triggers.
  2. Score the four tools for your current platform on value, cost and reversibility.
  3. Deploy a collector agent and gateway in a test cluster and measure ingestion before and after tail sampling.
  4. Enable a mesh on one test namespace and record p99 latency and memory deltas.
  5. List the three pieces of evidence that would make you adopt Backstage.

💻 Code

The first, reversible step: the services keep vendor-neutral OTLP export, and only an environment variable decides whether they talk to the collector or directly to Azure Monitor. That is the exit plan in code.

// ServiceDefaults/Extensions.cs (excerpt): one switch, two paths
using Azure.Monitor.OpenTelemetry.AspNetCore;
using Microsoft.Extensions.Hosting;
using OpenTelemetry;

namespace Shop.ServiceDefaults;

public static class TelemetryExtensions
{
    public static TBuilder AddTelemetryExport<TBuilder>(this TBuilder builder) where TBuilder : IHostApplicationBuilder
    {
        var otlpEndpoint = builder.Configuration["OTEL_EXPORTER_OTLP_ENDPOINT"];

        if (!string.IsNullOrWhiteSpace(otlpEndpoint))
        {
            // Preferred: send OTLP to the collector, which samples, redacts and exports.
            builder.Services.AddOpenTelemetry().UseOtlpExporter();
        }
        else if (!string.IsNullOrWhiteSpace(builder.Configuration["APPLICATIONINSIGHTS_CONNECTION_STRING"]))
        {
            // Fallback and exit plan: export directly to Azure Monitor, as before the collector.
            builder.Services.AddOpenTelemetry().UseAzureMonitor();
        }

        return builder;
    }
}
# ADR-014: Introduce the OpenTelemetry Collector before any other platform tool
Status: Accepted (2026-11)
Context: 10 .NET services on AKS; Application Insights ingestion is our second-largest Azure cost; PII found in spans.
Decision: Agent DaemonSet + 2-replica gateway (tail sampling, redaction). Services export OTLP only.
Rejected for now: Istio (no mTLS mandate yet), Dapr (all-.NET, Azure-only), Backstage (10 services, 3 teams).
Success: ingestion -40% in 60 days, 100% of error traces kept, zero PII in spans (CI test).
Exit plan: unset OTEL_EXPORTER_OTLP_ENDPOINT; services fall back to UseAzureMonitor().
Revisit when: mTLS required, a non-.NET team joins, or service count > 30.

⚠ Common mistakes

  • Mistake: Adopting several platform tools at once because they are on the CNCF landscape. Why it is wrong: The team spends its time upgrading and debugging infrastructure instead of shipping. Instead: Adopt one at a time, each tied to a named problem and owner.
  • Mistake: Starting with the tool that changes application code (Dapr). Why it is wrong: It is the hardest to reverse and needs good telemetry to judge. Instead: Start with observability and reversible infrastructure changes.
  • Mistake: Installing a mesh for encryption when managed identity and network policies already meet the requirement. Why it is wrong: You add sidecars, CRDs and upgrades for no extra benefit. Instead: Check what the platform covers, and adopt a mesh for needs it does not.
  • Mistake: Building a self-hosted Backstage for ten services. Why it is wrong: The portal costs more people than the discoverability problem does. Instead: Use templates, catalog files and docs now, and revisit when teams and services grow.
  • Mistake: Running pilots without success metrics or an exit plan. Why it is wrong: Pilots become permanent by default, whatever the results. Instead: Define metrics, time-box the pilot and record the decision in an ADR.
  • Mistake: Ignoring who will operate the tool. Why it is wrong: Unowned infrastructure falls out of support and becomes a security risk. Instead: Name an owning team and budget their time before adopting.

🏛 Senior insight: trade-offs

The senior move is to treat each tool as a cost the platform must carry for years and to sequence by evidence. Observability infrastructure comes first because it is reversible and because every later decision needs data. Security and traffic tools come when a requirement makes them necessary, preferably as managed services. Code-level abstractions and portals come last, when scale or a polyglot estate makes them worth it.

Option When it fits Cost When not to
Adopt the collector now Rising telemetry cost, PII risk, more than one backend likely Low-medium, reversible One tiny service with a small bill
Managed mesh on a mandate Audit requires mTLS, many canaries, gRPC-heavy Medium-high, sidecar or ztunnel ops Identity and network policies already suffice
Dapr on a trigger Polyglot, multi-environment, actors or workflow Medium, code coupling All-.NET on Azure
Backstage at scale 30+ services, 6+ teams, ownership pain High, people and skills Ten services, three teams

Measure each step: telemetry cost and retained error traces for the collector; latency, memory and incident diagnosis time for a mesh; code removed and broker features lost for Dapr; time to first deploy and template adoption for Backstage.

🔗 Follow-ups the interviewer may ask

  1. When: Candidate starts with the OpenTelemetry Collector Why: Checks they can explain the collector they chose to adopt first.
    How to answer

    The OpenTelemetry Collector is a vendor-neutral process that sits between your services and your backends. Apps send OTLP to it; it runs pipelines per signal (traces, metrics, logs) made of receivers, processors and exporters.

    • Processors handle memory limiting, batching, redaction of PII, filtering and tail sampling.
    • Exporters ship to Application Insights (azuremonitor), Prometheus, Grafana, or several at once.
    • Run it as an agent next to the app, a central gateway, or both.

    The point is decoupling: the .NET service only knows "send OTLP to the collector", so changing vendor, adding a second one or tightening sampling is configuration, not a redeploy of every service. The trade-off is one more component to scale, secure and monitor; with three services exporting straight to Azure Monitor you may not need it.

  2. When: Candidate mentions mTLS or canary releases Why: Checks they understand what a mesh costs and when it is justified.
    How to answer

    A service mesh moves service-to-service concerns out of code into the platform. A data plane of proxies intercepts every call, and a control plane configures them and issues certificates. You get automatic mTLS with workload identity, traffic management (retries, timeouts, weighted canaries, per-request gRPC balancing) and golden metrics per edge.

    • Envoy is the proxy most meshes and gateways are built on.
    • Istio runs Envoy as sidecars, or in ambient mode with a per-node ztunnel for L4 mTLS and optional waypoint proxies for L7.
    • Linkerd uses a small Rust proxy and is simpler to run, with fewer features.

    The trade-off is operational: extra latency and memory per pod, a control plane to upgrade, and harder debugging. Under roughly ten services, the platform's built-in features are usually enough.

  3. When: Candidate mentions Dapr or portability Why: Checks they can justify holding Dapr back with real trade-offs.
    How to answer

    Dapr (Distributed Application Runtime) is a CNCF graduated project that runs a sidecar (daprd) next to each service. Your app calls the sidecar over local HTTP or gRPC, and the sidecar provides building blocks: service invocation, state, pub/sub, input/output bindings, secrets, actors and workflow. Which backing service is used, say Redis or Azure Service Bus for pub/sub, is chosen by a component YAML file, not by your code.

    • In .NET you use DaprClient, plus AddDapr() and [Topic] subscriptions in ASP.NET Core.
    • Azure Container Apps runs the sidecar for you; on AKS you install the Dapr extension.

    It helps polyglot or multi-cloud teams and teams that want actors or workflow without building them. The trade-off: an extra network hop, simpler but narrower APIs than the native SDKs, and one more runtime to operate.

🛠 Real-world problems: how you handle them

Four platform tools proposed in one quarter for a ten-service platform
Situation
A [10]-service .NET platform on AKS with [three] product teams and [no] dedicated platform team; engineers proposed adopting Dapr, Istio, an OpenTelemetry Collector and Backstage in the same quarter.
Signals
Application Insights cost had grown [50%] in six months; a privacy review found customer data in spans; teams complained about inconsistent new services; no audit requirement for mTLS existed yet.
Investigation
Ran a short options review: listed the actual problems, mapped each tool to them, estimated ongoing operating effort, and checked what Azure, AKS and Aspire already covered. Interviewed the teams about what slowed them down most.
Resolution
Adopted the collector first with a two-week pilot and an ADR (tail sampling, redaction); created a shared `dotnet new` template and pipeline template instead of Backstage; recorded the mesh and Dapr as 'revisit when' items with explicit triggers.
Prevention
An ADR log with revisit triggers reviewed each quarter, a lightweight platform-tool intake template (problem, owner, cost, exit plan), and metrics on telemetry cost and time to first deploy.

How to tell it (STAR)

**S:** Our ten-service platform had four teams' worth of tool proposals, Dapr, Istio, the OpenTelemetry Collector and Backstage, and no platform team to run them. **T:** I was asked to recommend what we should adopt and when. **A:** I mapped each tool to a real problem and an operating cost: telemetry cost and PII were real and urgent, mTLS was not yet required, and we were all .NET on Azure. I proposed the collector first with a pilot and ADR, a shared template instead of a portal, and written triggers for the mesh and Dapr. **R:** Telemetry cost fell [55%] in [two] months, PII in spans went to [zero], and when an [audit] later required mTLS we adopted the managed mesh in [three] weeks because the decision framework was already in place.

More in Optional Advanced Tools

Last updated 23 Nov 2026.

🌐 Sangam's Webring

⏪ Previous 🏠 Main Next ⏩
💬 Chat with me