Architecture
9 articles tagged with Architecture.
An AI gateway for your SaaS in ASP.NET Core: one path to the model
Learn how to route every AI call of an ASP.NET Core application through one gateway that checks the organization's switch, the person's allowance and writes a usage ledger.
7 min read
A billing module behind an adapter: Stripe that runs unconfigured
Learn how to keep Stripe inside one billing module in ASP.NET Core, with its own DbContext, a payment-gateway port and an adapter that lets the app run with no key at all.
8 min read
An audit log that can't lie: building one in ASP.NET Core with the outbox
Learn how to build an ASP.NET Core audit log that records a change if and only if it committed, and an architecture test that keeps it complete as the product grows.
8 min read
Architecture tests that fail the build: keeping a .NET solution honest
Learn how to turn the boundaries of a .NET solution into tests that read the compiled assemblies, so that a wrong reference fails the build instead of a code review.
7 min read
Separating reads and writes in ASP.NET Core without MediatR
Learn how to split an ASP.NET Core API into a read side and a write side with plain interfaces, projections and a result type, chosen by HTTP verb, with no mediator in between.
8 min read
Replacing MassTransit with Wolverine: keep the bus library in one project
Learn how to put your message bus behind ports and adapters, so that replacing MassTransit with Wolverine means rewriting one adapter instead of every domain.
8 min read
Domain events vs integration events in .NET, and the transactional outbox
Learn the difference between domain events and integration events in .NET, and how a transactional outbox on EF Core and PostgreSQL makes an event exist if and only if the change committed.
7 min read
Hexagonal architecture in .NET: going beyond Clean Architecture
Learn how to move from a layered Clean Architecture to ports and adapters in .NET, with one project per domain and explicit doors between domains.
8 min read
Introduction to Clean Architecture
Learn the four rings of Clean Architecture and how to apply them in a small .NET 10 Web API, with use cases, a repository port and request records.
7 min read