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

📚 Interview question

Your organisation is starting a new internal line-of-business application, and the .NET team must choose between React, Angular and Blazor. How would you make and document that decision? Which criteria matter (team skills, hiring, hosting and render model, security, performance, long-term maintenance), what would you recommend in which situations, and how would you reduce the risk of choosing wrong?

An architecture decision between React, Angular and Blazor for a .NET line-of-business app: weighted criteria, team and hiring realities in Australia, Blazor render modes vs SPA hosting, security and offline needs, a time-boxed spike, and recording the outcome in an ADR.

Senior Architecture Advanced adr angular architecture blazor frontend react

🎯 Key points

  • Start from constraints: users, devices, connectivity, accessibility (WCAG 2.2 AA), lifespan, who maintains it
  • Team skills and hiring market weigh more than benchmarks; Australian enterprise and government use all three
  • Blazor: one language and shared C# models; choose render mode (static SSR, Server, WebAssembly, Auto) deliberately
  • Blazor Server needs a persistent SignalR circuit and server memory per user; WebAssembly has a larger first download
  • React: biggest ecosystem and talent pool, but you assemble routing, data and forms
  • Angular: opinionated full framework, strong for large teams wanting consistency
  • Security model the same for all: API enforces authorisation; prefer same-origin cookie/BFF over tokens in the browser
  • Reduce risk with a time-boxed spike on the hardest screen, weighted scoring, and an ADR with review triggers

⏱ 30-second answer

I would treat it as an architecture decision record, not a preference vote. First list the constraints: users and devices, connectivity, accessibility, how long the app lives and who will maintain it. Then score the options on weighted criteria: team skills and hiring, ecosystem and components, render and hosting model, security fit, performance on real devices and long-term maintenance.

Rough guidance: Blazor fits a .NET-only team building internal apps, sharing C# models and validation, if you choose the render mode carefully. React fits when the UI is complex or customer-facing and you can hire frontend specialists. Angular fits large teams that value one opinionated structure.

Reduce the risk with a time-boxed spike on the hardest screen and record the outcome in an ADR with triggers for revisiting it. The trade-off is usually team productivity now against ecosystem and hiring breadth later.

🗣 Full answer (senior)

How I would answer this in an interview

"I'd start by refusing to make it a framework popularity contest. The decision mostly depends on people and constraints, so I'd write down who uses the app and on what devices, whether it must work on poor connections or offline, accessibility requirements, how long it will live, and, most importantly, who will maintain it in three years. Then I'd agree weighted criteria with the team and stakeholders before anyone argues for a framework.

In practice the strongest signal is the team. If it's [six] .NET developers with no dedicated frontend people building an internal app, Blazor is often the pragmatic choice: one language, shared DTOs and validation, and the component model is approachable. But I'd pick the render mode deliberately: static server rendering with interactive islands for most pages, interactive Server for low-latency internal users near the region, WebAssembly or Auto if we need to reduce server load or support patchy connections. If the app is customer-facing, highly interactive, or the organisation already has frontend specialists, React's ecosystem and talent pool usually win. Angular suits large teams that want one way of doing things. For example, at [company] we ran a [two-week] spike building [the most complex screen, a scheduling grid] in Blazor and React; the Blazor version needed [a third-party grid licence] and the React version took [X days longer], and the decision record captured why we chose [option].

The mistake I see is ignoring operational costs. Blazor Server keeps a SignalR circuit and memory per user, so a few thousand concurrent users is a capacity-planning question; WebAssembly ships the runtime to the browser. And whatever we choose, security doesn't change: the API enforces authorisation and I'd still host same-origin with cookie sessions. I finish by recording it as an ADR with explicit triggers to revisit, like 'concurrent users above [N]' or 'customer-facing features added'."


Weighted criteria (example)

Criterion Weight Blazor React Angular
Current team skills (.NET-heavy team) 30% 5 2 3
Hiring market in [city] 15% 2 5 4
Component ecosystem (grids, charts) 15% 3 5 4
Hosting/render fit (internal, good network) 15% 4 4 4
Long-term maintainability / conventions 15% 4 3 5
First-load performance on mobile 10% 3 4 4

Scores are illustrative; the point is agreeing weights before scoring.

When each tends to win

Situation Leaning Why
Internal LOB, .NET-only team, desktop users Blazor (SSR + interactive Server or Auto) One language, shared models, fast delivery
Customer-facing, rich interactions, mobile web React Ecosystem, talent, performance tooling
Large multi-team enterprise app Angular Opinionated structure, DI, consistency
Offline or poor connectivity React/Angular PWA or Blazor WebAssembly No dependency on a live server connection
Existing frontend team on one framework Keep it Switching cost dwarfs framework differences

Production example

For an internal case-management app with [about 400] staff in Australia East, the team chose Blazor with static SSR and interactive Server islands; peak concurrency of about 250 circuits used roughly [400 MB] of server memory, and the first release shipped in [four months] with no dedicated frontend hires.

🔍 What the interviewer is checking

Checks whether a senior candidate can lead a technology decision with structured criteria, honest trade-offs and risk reduction rather than personal preference.

Green flags

  • Starts from users, constraints and who maintains the app
  • Knows Blazor render modes and their operational consequences
  • Compares ecosystems, hiring and conventions realistically
  • Keeps security server-side regardless of choice
  • Proposes a spike, weighted scoring and an ADR with review triggers

Red flags

  • 'React is the best' or 'Blazor because we're a .NET shop' with no reasoning
  • Ignores operations (circuits, download size, hosting)
  • No plan to validate the decision
  • Treats the frontend as the place for business rules

📚 Learn in depth

1. Separate the decision into layers

Constraints (users, devices, network, a11y, lifespan, data sensitivity)
      │
People (skills now, hiring, who maintains it)
      │
Runtime model (SPA on static host / same-origin SPA / Blazor render modes)
      │
Framework (React, Angular, Blazor) ──► ecosystem (grids, charts, forms, testing)

Most arguments happen at the framework layer, but most consequences come from the people and runtime layers.

2. Runtime models compared

Model Where UI code runs Server cost First load Offline
React/Angular SPA Browser Static files + API JS bundle (100s of KB) Possible (PWA)
Blazor static SSR Server, HTML per request Per request Fast HTML No
Blazor interactive Server Server, UI diffs over SignalR Memory per circuit, persistent connection Fast No
Blazor WebAssembly Browser (.NET runtime in Wasm) Static files + API Larger download, cached afterwards Possible
Blazor Auto Server first, then WebAssembly Both, transitioning Fast, then cached Partly

Blazor Server latency depends on round trips for every interaction, so users far from the region (for example Perth to a Sydney-hosted Australia East app is fine; overseas users less so) feel it more.

3. Security is framework-independent

All three render in the browser or send HTML to it, so authorisation must be enforced in ASP.NET Core APIs or server components. Same-origin hosting with cookie sessions (or a BFF for SPAs) avoids tokens in browser storage. Blazor Server keeps state server-side, which avoids an exposed API surface for some interactions but makes the circuit itself the security boundary.

4. Ecosystem and accessibility

LOB apps live or die on data grids, date pickers and charts. Check that the component libraries you would use meet WCAG 2.2 AA, are maintained, and have acceptable licences. React has the widest choice; Blazor relies more on commercial suites or community libraries.

5. De-risking the choice

  • Spike the hardest screen in the top two candidates, time-boxed (one to two weeks), with the people who will maintain it.
  • Measure: build time, lines of code, Lighthouse scores, accessibility audit, server memory per user for Blazor Server.
  • Keep the API framework-agnostic (OpenAPI, ProblemDetails, same auth model) so a later frontend change is a rewrite of the UI only.

6. Recording the decision

An ADR captures context, options, criteria and weights, the decision, consequences and review triggers. This protects the team from relitigating it every quarter and makes a future change a deliberate decision.

Try it yourself

  1. Write an ADR template with sections: context, constraints, options, criteria and weights, decision, consequences, review triggers.
  2. Build the same filtered table in Blazor (interactive Server) and React; compare code size and time taken.
  3. Run Lighthouse on both and compare first load on a throttled mobile profile.
  4. Load-test the Blazor Server version with 500 simulated circuits and record memory with dotnet-counters.
  5. Run an accessibility audit (axe DevTools) on both prototypes.

💻 Code

The same small feature in Blazor and React against one framework-agnostic API, which is what keeps a later switch cheap. ```csharp // Shared API (.NET 10): the contract does not care which frontend calls it. var builder = WebApplication.CreateBuilder(args); builder.Services.AddOpenApi(); var app = builder.Build(); app.MapOpenApi(); app.MapGet("/api/cases", (string? status) => TypedResults.Ok(new CaseDto[] { new(101, "Smith v Council", "Open"), new(102, "Licence renewal", "Closed"), }.Where(c => status is null || c.Status == status))) .RequireAuthorization(); app.Run(); public sealed record CaseDto(int Id, string Title, string Status); ``` ```razor @* Blazor (interactive Server render mode): CaseList.razor *@ @page "/cases" @rendermode InteractiveServer @inject HttpClient Http @if (cases is null) {

Loading cases...

} else {
    @foreach (var c in cases) {
  • @c.Title (@c.Status)
  • }
} @code { private string status = ""; private CaseDto[]? cases; protected override Task OnInitializedAsync() => LoadAsync(); private async Task LoadAsync() => cases = await Http.GetFromJsonAsync

⚠ Common mistakes

  • Mistake: Choosing by popularity or a benchmark. Why it is wrong: For LOB apps, team skills and maintenance dominate cost; micro-benchmarks rarely matter. Instead: Agree weighted criteria from real constraints first.
  • Mistake: Picking Blazor without choosing a render mode. Why it is wrong: Interactive Server and WebAssembly have very different scaling, latency and offline behaviour. Instead: Decide the default render mode per area of the app and plan capacity.
  • Mistake: Picking React without standardising the stack. Why it is wrong: Each developer brings different routing, state and form libraries. Instead: Decide the supporting libraries in the same ADR.
  • Mistake: Ignoring the component ecosystem. Why it is wrong: A missing accessible data grid can cost months. Instead: Spike the hardest screen with the actual component library.
  • Mistake: Coupling the API to the frontend framework. Why it is wrong: It makes a later change a full rewrite. Instead: Keep a framework-agnostic API with OpenAPI and ProblemDetails.
  • Mistake: Assuming the frontend choice changes the security model. Why it is wrong: Authorisation always belongs on the server. Instead: Use the same server-side authorisation and same-origin session approach for any choice.
  • Mistake: Making the decision without the maintainers. Why it is wrong: Low buy-in and knowledge gaps. Instead: Involve the team in the spike and the scoring.

🏛 Senior insight: trade-offs

All three are capable; the wrong choice is usually one that ignores people and operations. A .NET-only team forced into React without frontend leadership will produce an inconsistent codebase; a customer-facing product built on Blazor Server without capacity planning will hit connection and memory limits. I make the decision reversible where cheap: a framework-agnostic API, OpenAPI contracts and the same authentication model mean a future frontend change is a UI rewrite, not a platform rewrite.

I also check versions and support at decision time (as of November 2026: React 19.3, Angular 22 with yearly majors from now on, Blazor in .NET 10 LTS supported until November 2028) and record them in the ADR.

Option When it fits Cost When not to
Blazor .NET team, internal LOB, shared C# models Smaller ecosystem; Server needs circuits, Wasm larger download Public, mobile-first, SEO-heavy sites
React Rich or customer-facing UI, frontend specialists, hiring breadth Assembling and standardising the stack Team with no frontend skills and no plan to hire
Angular Large teams wanting conventions and DI Learning curve, RxJS Small apps or prototypes
Risk reducer Effort What it buys
Time-boxed spike on hardest screen 1 to 2 weeks Real data instead of opinions
Weighted criteria agreed upfront Hours Less bias and relitigating
ADR with review triggers Hours A deliberate, revisitable decision

🔗 Follow-ups the interviewer may ask

  1. When: Candidate leans towards React. Why: Checks that they understand React's model well enough to lead a .NET team on it.
    How to answer

    React builds the UI from components: plain functions that take props (read-only inputs from the parent) and hold state (data the component owns, changed only through a setter from useState). When state changes, React re-renders that component, compares the new output with the old one and updates only the DOM nodes that changed, so the UI is always a function of state.

    Hooks add behaviour to function components: useState for state, useEffect to synchronise with things outside React such as a network call or a timer, and custom hooks to reuse that logic.

    A React app talks to an ASP.NET Core API with fetch (or a library like TanStack Query) returning JSON. React is only the client: validation, authorisation and data rules still live on the server. The trade-off is flexibility and a huge ecosystem against having to choose routing, data fetching and forms yourself.

  2. When: Candidate mentions Angular's conventions and DI. Why: Checks working knowledge of Angular's building blocks.
    How to answer

    Angular is a full framework. An app is a tree of standalone components, each a TypeScript class with a template that binds data: {{ value }} for text, [property] for inputs, (event) for outputs. Logic and data access live in services that Angular's dependency injection supplies, with root-level singletons and component-level providers, which feels very familiar to .NET developers.

    The API is called through HttpClient, which returns RxJS Observables and supports interceptors for auth headers and error handling. Modern Angular uses signals for state and zoneless change detection (the default for new apps since Angular 21; Angular 22 is current).

    Compared with React, Angular gives you the router, forms, DI and testing out of the box, at the cost of more concepts (RxJS, decorators) and a steeper start.

  3. When: Candidate discusses hosting the chosen frontend. Why: Checks same-origin vs separate-origin hosting and its security consequences.
    How to answer

    There are two shapes. Same origin: build the SPA into the API's wwwroot, serve it with static files and MapFallbackToFile("index.html") so deep links work, or put both behind one reverse proxy (YARP, Front Door). You get no CORS, first-party cookies and easy BFF security. Separate origins: host the SPA on Azure Static Web Apps or a CDN and call the API on another host. You get independent deploys and edge caching, but you must configure CORS and your cookies become cross-site, pushing you towards tokens in the browser.

    Locally, the Vite dev server serves the SPA with hot reload and proxies /api to Kestrel, so the browser sees one origin, just like production same-origin hosting.

    The trade-off is security and simplicity (same origin) against independent scaling and release cadence (separate origins).

🛠 Real-world problems: how you handle them

Blazor Server chosen for an internal app that turned customer-facing
Situation
An internal case-management app built with Blazor interactive Server for [about 400] staff, hosted in Australia East. Two years later the business asked to open part of it to [about 20,000] external customers.
Signals
Load testing the planned customer portal showed memory climbing about [1.5 MB] per circuit and connection drops beyond [3,000] concurrent users; Lighthouse scores on mobile were acceptable, but reconnect banners appeared on flaky mobile networks.
Investigation
Used `dotnet-counters` to track memory and active circuits, Azure SignalR Service metrics for connection counts, Application Insights for reconnect events, and reviewed the original ADR, which had no review triggers for external users.
Resolution
Immediately: kept staff screens on interactive Server and built the customer portal as static SSR with small interactive islands, moving the busiest customer form to WebAssembly. Longer term: added Azure SignalR Service for remaining interactive Server use and updated the ADR with capacity thresholds.
Prevention
ADR review triggers (external users, concurrency above a threshold), regular load tests in staging, dashboards on circuit counts and memory, render-mode guidance in the team's architecture handbook.

How to tell it (STAR)

**S:** At [company], our internal Blazor Server app for [about 400] staff was suddenly going to be opened to [about 20,000] customers. **T:** As the lead engineer I had to decide whether the original frontend decision still held, without a rewrite. **A:** I load-tested the customer journeys and measured about [1.5 MB] per circuit and drops beyond [3,000] connections. Rather than switch frameworks, I changed render modes: static SSR for most customer pages, interactive islands where needed, WebAssembly for the heaviest form, and Azure SignalR Service for staff screens. I updated the ADR with explicit review triggers. **R:** The portal launched handling [N] concurrent users with server memory [X% lower] than projected, and the team reused [most] of the existing components.

↩ Usually asked after

More in SPA Integration

Last updated 23 Nov 2026.

🌐 Sangam's Webring

⏪ Previous 🏠 Main Next ⏩
💬 Chat with me