Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Clean Architecture with .NET
  • Table Of Contents Toc
Clean Architecture with .NET

Clean Architecture with .NET

By : Casey Crouse, Steve "Ardalis" Smith
1 (1)
close
close
Clean Architecture with .NET

Clean Architecture with .NET

1 (1)
By: Casey Crouse, Steve "Ardalis" Smith

Overview of this book

Learn how to apply Clean Architecture in real-world .NET applications with Azure in this guide. Designed around an e-commerce project - Project Odyssey, you’ll design and build every architectural layer, from core domain logic and application orchestration to infrastructure and presentation. This book equips you to apply DDD, CQRS, MediatR, and dependency injection, enabling loosely coupled, testable systems. You’ll build reusable and modular code structures that scale with your application’s complexity and learn how to persist data using EF Core with a code-first approach, managing schema evolution with migrations while keeping infrastructure concerns isolated from your domain logic. Learn how to develop secure systems by integrating Azure External ID, Azure Key Vault, and application-level authentication and authorization. Gain practical experience with Blazor Server, Razor components, and MudBlazor UI, all integrated within a layered architecture. Learn to enforce business logic boundaries, reduce boilerplate with generic request handlers, and use real-world use cases like payment processing and shopping cart management. Whether you're new to Clean Architecture or scaling up enterprise solutions, this book provides the patterns, tools, and mindset to succeed. *Email sign-up and proof of purchase required
Table of Contents (23 chapters)
close
close
Lock Free Chapter
1
Part 1: Introduction and Overview of Clean Architecture
4
Part 2: Design and Implementation of Clean Architecture
12
Part 3: Advanced Topics in Clean Architecture
17
Part 4: Additional Topics and Resources
21
Other Books You May Enjoy
22
Index

Implementing the code

When adding new functionality in a Clean Architecture application, the starting point is usually the Application layer. This is where use cases are expressed, orchestrating the flow between domain rules and external concerns. Beginning here helps ensure that new features are driven by business needs rather than technical details, keeping the architecture aligned with its core principles.

That said, you'll often need to create or refine supporting elements in the Domain layer first — for example, defining a new entity or adding a method to enforce a business rule. In practice, the Application layer sets the direction, while the Domain layer supplies the building blocks. Together, they establish a clear boundary that keeps the business logic insulated from infrastructure and presentation concerns.

This inside-out mindset is key. Rather than seeing your application as "just a web app" or "just an API," you treat those as entry points...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Clean Architecture with .NET
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist download Download options font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon