Mastering Modern .NET Architecture

5 days
UNARCH
5 days

Upcoming Sessions

Date:

Format:

Price:

Location:

Book now

Date:

Format:

Price:

Location:

Book now

Date:

Format:

Price:

Location:

Book now

Date:

Format:

Price:

Book now

Interested in a private company training? Request it here.

Not ready to book yet? Request an offer here.

Architectural Principles

Good architecture is about making good decisions over time, not about following rules or trends. This module explains why clear principles help teams make consistent choices and avoid confusion as systems and requirements change.

  • The role of an Architect
  • What is good Architecture?
  • Architectural Principles: Encapsulation, Separation of Concerns, ...
  • Architectural Drivers

N-Tier Architecture

N-Tier architecture is still very common, often because it feels familiar and safe. This module explains why it became popular, what it does well, and why it can become a problem when applications grow larger.

  • What is N-Tier?
  • Physical Tiers vs. Logical Layers
  • The Standard Layered Stack: Data Access, Business, Presentation
  • The "Database-Centric" Mindset
  • Testability, Maintainability, Performance
  • LAB: Creating a Simple N-Tier Application

Clean Architecture

Clean Architecture tries to keep business logic independent from frameworks and infrastructure. This module explains why this separation makes applications easier to test, change and maintain, while also showing where it can add extra complexity.

  • Dependency Inversion
  • Domain, Application, Infrastructure, Presentation Layers
  • Testability, Maintainability, Performance
  • Domain Modelling with Entities and Value Objects
  • Domain Services and Application Services
  • LAB: Migrating from N-Tier to Clean Architecture

Mapping

Mapping is often used to separate different models in an application, but it is not free. This module explains why mapping exists, what problems it tries to solve, and why too much mapping can slow teams down.

  • To DTO or Not?
  • The Domain Leakage Problem
  • Flattening Objects
  • Manual vs. Automated Mapping
  • Performance and Projections
  • Architectural Purity and Developer Productivity
  • LAB: Using Source Generation for Mapping

Vertical Slices

In layered architectures, small changes often touch many parts of the system. This module explains why organizing code around features can make applications easier to understand, change and maintain.

  • The Layer "Tax"
  • Features over Layers Philosophy
  • Abstraction over DRY
  • Implementation Details
  • Managing Shared Logic
  • The Testing Pyramid vs. The Diamond
  • Maintainability and Performance
  • LAB: Migrating from Clean Architecture to Vertical Slices

Persistence Strategy

Data access is a frequent source of design problems in .NET applications. This module evaluates repository patterns, common pitfalls, and practical DbContext usage in both Clean Architecture and Vertical Slices.

  • Repository Pattern
  • Leaky Abstractions
  • The "Generic Repository" Trap
  • DbContext as a Repository
  • Unit Testing Reality
  • Aggregates
  • LAB: Using DbContext in Clean Architecture

Result Objects and Exceptions

Operations can succeed, fail, be cancelled or return different kinds of results. This module dicusses how to handle these situations clearly and consistently, and how these choices affect control flow, clarity and system behavior.

  • Return Codes
  • Flow Control vs. Error Handling
  • Validation
  • Running Jobs
  • Performance Impact
  • Hidden Side Effects
  • "Try"-pattern
  • Discriminated Unions and "OneOf"
  • LAB: Exploring Trade-offs with FluentResults

Messaging Patterns

Messaging is often introduced to decouple components, but can easily increase complexity. This module explains why messaging patterns exist and how to apply them deliberately without turning systems into hard-to-follow workflows.

  • Pub/Sub and Domain Events
  • Mediator: Hero or Villain?
  • Classical .NET Events
  • Domain and Integration Events
  • In-Memory vs. Out-of-Process
  • CQRS
  • Job Scheduling
  • LAB: Using CQRS in Clean Architecture

Modular Monolith

Microservices introduce significant operational and organizational cost. This module explains why modular monoliths offer a pragmatic alternative that enables strong boundaries without premature distribution.

  • Microservices in a Nutshell
  • The Microservices Tax
  • Modular Monolith as strategic middle ground
  • Module Communication & Integration
  • Data Isolation Strategies
  • Enforcing Boundaries
  • LAB: Migrating from Clean Architecture to Modular Monolith

Monorepo vs Polyrepo

Repository structure influences dependency management, team autonomy and evolution speed. This module explains why neither monorepos nor polyrepos are universally correct and how context determines their effectiveness.

  • Atomic Refactoring
  • The "Dependency Hell" Tax
  • The "Slow Build" Myth
  • Team Ownership
  • Private NuGet feeds
  • "Shared Library" Dependency Tax
  • NuGet Versioning
  • Source Mapping

Configuration and Dependency Injection

Configuration and DI often start simple but degrade as systems scale. This module explains why lifecycle awareness and composition boundaries are critical to keep applications predictable and maintainable.

  • The Options Pattern
  • Options Lifecycles
  • When Options don't work
  • Dependency Injection Architecture
  • Decorators and Interceptors
  • LAB: Setting up Configuration

Building Reusable Libraries

Reusable libraries often fail due to hidden assumptions about their consumers. This module explains why designing for unknown usage contexts is essential for adoption, longevity and safe evolution.

  • Defensive Visibility
  • Exception Safety
  • Writing Context-Agnostic Code
  • Abstractions Package
  • Minimize Dependencies
  • Idempotent Registrations
  • Maintaining Compatibility
  • Postel's Law
  • LAB: Building a Reusable Library for Document Processing

Governing Third-Party Libraries

Third-party libraries introduce long-term risk beyond immediate functionality. This module explains why dependency choices are architectural decisions involving security, licensing and sustainability.

  • Library Selection Criteria
  • Open Source versus Commercial Libraries
  • Supply Chain Security

Quality Gates

Quality does not scale through manual reviews alone. This module explains why automated quality gates are needed to enforce standards, protect architecture and keep delivery predictable.

  • Code Style and Formatting
  • Static Code Analysis Tools
  • Complexity Metrics
  • Roslyn Analyzers
  • Testing & Coverage Thresholds
  • Security & Dependency Audits
  • Architectural Tests
  • AI Code Generation Guidelines
  • Acceptance Criteria
  • Quality Gates in CI/CD
  • LAB: Setting up a Quality Gated Project

Monitoring and Observability

Without observability, systems cannot be trusted in production. This module explains why structured telemetry enables faster diagnosis, better decisions and controlled operational cost.

  • Logging vs Telemetry
  • Structured Logging in .NET
  • Instrumentation and OpenTelemetry
  • Application Health and Lifecycle
  • Distributed Tracing
  • Visualization and Dashboards
  • Cost Control
  • Privacy and PII
  • MTTD and MTTR
  • LAB: OpenTelemetry with Grafana

Branching Strategies and Feature Flags

How teams work with branches has a big impact on delivery speed and risk. This module explains why different branching strategies exist, how feature flags enable trunk-based development, and how the same flags can be used to safely release features and control deployments in production.

  • Branching Strategies: GitFlow vs. Trunk-Based
  • Feature Flags: The Enabler of Trunk-Based
  • Deployment Patterns: Canary, Blue-Green, A/B Testing
  • LAB: Targeting Groups with Feature Flags

The Cost and Benefits of Native AOT

Native AOT improves startup time, memory usage and security, but not without trade-offs. This module explains the architectural consequences of choosing Native AOT and how those trade-offs affect real-world deployment scenarios.

  • The Compilation Spectrum: JIT, ReadyToRun, and Native AOT
  • Code and Library Considerations
  • Security Implications
  • Build and Runtime Trade-offs
  • Deployment Scenarios: Cloud-Native, Containers, and Embedded Systems
  • LAB: Adapting an Application for Native AOT Deployment

Obfuscation & IP protection

IP protection requires more than just obfuscation. This module explains why code protection, secrets management and trust boundaries must be designed together to avoid false security.

  • Obfuscation Trade-offs
  • Obfuscation vs. Native AOT
  • Decodable Obfuscation
  • Zero-Trust Production Model
  • Cloud-Shoring
  • Secrets Management (User Secrets and Key Vaults)
  • IP Contamination
  • LAB: Applying Decodable Obfuscation

The answer to the ultimate question of life, the universe and good architecture is: It depends. This training equips .NET architects to make principled trade-off decisions across architectural styles, deployment models and governance practices. It provides the insights needed to structure maintainable projects, enforce quality gates and balance developer productivity with long-term sustainability, without falling into common anti-patterns like leaky abstractions or dependency hell.

Senior .NET developers transitioning to architecture roles, solution architects designing enterprise-grade .NET applications and tech leads responsible for code quality, testing strategy, and architectural governance. Requires solid C#/.NET experience, no prior architecture training needed.

Contact Us
  • Address:
    U2U nv/sa
    Z.1. Researchpark 110
    1731 Zellik (Brussels)
    BELGIUM
  • Phone: +32 2 466 00 16
  • Email: info@u2u.be
  • Monday - Friday: 9:00 - 17:00
    Saturday - Sunday: Closed
Say Hi
© 2026 U2U All rights reserved.