Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Designs or reviews .NET solution architecture across modular monoliths, clean architecture, vertical slices, DDD, CQRS, and microservices.
Use this skill ↓82% 86%+5 ptsof test cases passed
Passed 19 of 22 test cases with the skill, and 18 of 22 without it.
An external consulting firm submitted a diagram for a new C# system architecture featuring 20 distinct services and event buses. How should engineering leadership validate whether this architecture is acceptable?
Validates that data ownership paths are explicit.
3 of 3 safety checks passed
This reference covers practical implementations of common architectural patterns in modern .NET, using C# 12+ features including primary constructors.
Clean Architecture organizes code into concentric layers with dependencies pointing inward. The domain layer has no external dependencies; infrastructure concerns live at the outer edge.
src/
Domain/ # Entities, value objects, domain events, interfaces
Application/ # Use cases, DTOs, validators, command/query handlers
Infrastructure/ # EF Core, external APIs, messaging, file storage
WebApi/ # Controllers, middleware, composition root
// Domain/Entities/Order.cs
public sealed class Order
{
public OrderId Id { get; }
public CustomerId CustomerId { get; }
private readonly List<OrderLine> _lines = [];
public IReadOnlyList<OrderLine> Lines => _lines.AsReadOnly();
public OrderStatus Status { get; private set; }
public Money Total => _lines.Aggregate(Money.Zero, (sum, line) => sum + line.Subtotal);
private Order(OrderId id, CustomerId customerId)
{
Id = id;
CustomerId = customerId;
Status = OrderStatus.Draft;
}
Next to this one in the catalogue, plus more from the same author.