Anatomy of a modern ASP.NET web application
Good architecture isn't an end in itself - it shows in how easily a team moves with it: today and in two years. This eBook revisits modern web-development approaches that everyday work often forgets. Food for thought, not dogma.
- Use dependency injection & lifetimes correctly - from the composition root to a unit of work per request.
- Understand the middleware pipeline: order, rate limiting and custom middleware - including our interactive Middleware Designer.
- Test web APIs like a real consumer - with WebApplicationFactory, Testcontainers and honest TDD.
.NET experts from Switzerland · Microsoft MVP & open-source contributors · proven in cloud environments
The eBook is available in German only.
Request the free eBook
We'll first email you a confirmation link.
What's inside the eBook
From dependency injection through the middleware pipeline to testing - compact and practical.
-
Good architecture
What defines it
-
Dependency Injection
IoC & composition root
-
Lifetimes
Transient · Scoped · Singleton
-
Middleware pipeline
Order & cross-cutting
-
Rate limiting
Four strategies
-
Testing
WebApplicationFactory & Testcontainers
We build and maintain web APIs - for many years.
We're .NET experts from Switzerland, including a Microsoft MVP and open-source contributors. From advising CTOs on architecture to running .NET workshops: we love code - and even more, software that matters.
Dependency Injection
Chapter 4Constructor injection as the norm, DbContext as scoped - and why a singleton must never depend on a scoped service.
Middleware pipeline
Chapter 5CORS → Authentication → Authorization: the ordering invariants - plus an interactive designer to try it out.
Testing
Chapter 6Test web APIs as a real consumer: WebApplicationFactory in memory, Testcontainers for the real database, honest TDD.
Interactive Middleware Designer
Compose your ASP.NET middleware pipeline visually - with warnings for problematic ordering and generated C# code.
An eBook doesn't replace a conversation about your specific architecture. But it shows the principles we build by - and where decisions pay off early.
Ready for cleaner ASP.NET architecture?
Get the eBook and see how modern web applications are well structured from the ground up.
Request eBookPrefer to write to us directly?
Let's Build Something Great Together
Have a question or want to discuss a project? We'd love to hear from you. Fill out the form below and we'll get back to you as soon as possible.
You can also reach us directly at [email protected]
