DEV Community

kirandeepjassal-crypto
kirandeepjassal-crypto

Posted on • Originally published at prepstack.co.in

Angular 19 + .NET 9 Enterprise Architecture — Clean, CQRS, SignalR (with Production Metrics)

⚠️ Heads up: This is a short preview. The full 24-min deep dive lives on my blog — read it here →

Every "enterprise architecture" tutorial I've read had the same problem: clean diagrams, zero numbers.

So I wrote the one I wish I had when I shipped my last full-stack project — built around a real production system, with the actual P95 latencies, the EF Core changes that moved them, and the trade-offs I'd defend in a code review.

What's inside the full guide

  • Clean Architecture layout that holds up after 3 years of feature creep
  • CQRS + MediatR — where it earns its keep, where it's pure ceremony
  • JWT auth done right — refresh-token rotation, the parts most tutorials skip
  • SignalR at scale — Redis backplane, sticky sessions, the gotchas nobody warns you about
  • EF Core perf wins — tracking, projection, compiled queries — P95 480ms → 90ms
  • Angular ↔ .NET contract patterns that kill "works on my machine"
  • Production metrics from a live system, not benchmarks on a laptop

A taste — the EF Core perf table from the article

Change P95 before P95 after
Default tracking on read queries 480 ms
AsNoTracking() everywhere reads 480 ms 310 ms
Project to DTO instead of entities 310 ms 140 ms
Compiled queries on hot paths 140 ms 90 ms

One endpoint. Four targeted changes. ~5× improvement. The article shows you the exact code for each.

Why I'm not republishing the full thing here

I want Dev.to readers to land on the original blog because the article keeps getting updated as I learn more. Bookmark the canonical URL — that's the source of truth.

👉 Read the full playbook on PrepStack →


If you're architecting (or rescuing) a full-stack .NET + Angular app in 2026, this is for you. Would love your feedback in the comments — especially from anyone running SignalR + Redis at scale. What patterns worked? What burned you?

Top comments (0)