BitSpire
English
Free eBook · ASP.NET

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.

Get the free eBook

Instant download - no email or sign-up required.

Download the eBook

Shall we get in touch?

No newsletter, no ads. We'd like a personal, one-to-one conversation about your projects, your challenges, and whether we could work together.

We never share your data. More in our privacy policy

Inside the eBook

What's inside the eBook

From good architecture and dependency injection through the middleware pipeline and caching to testing - compact and practical.

9 chapters · 25 pages
Preview page from the eBook: the middleware pipeline
A peek inside the eBook
  1. Good architecture

    What defines it

  2. Dependency Injection

    IoC & composition root

  3. Controllers vs. Minimal APIs

    TypedResults & Native AOT

  4. Middleware pipeline

    Order & cross-cutting

  5. Caching

    L1/L2 & HybridCache

  6. Testing

    WebApplicationFactory & Testcontainers

Why BitSpire

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 4

Constructor injection as the norm, DbContext as scoped - and why a singleton must never depend on a scoped service.

Middleware pipeline

Chapter 6

CORS → Authentication → Authorization: the ordering invariants - plus an interactive designer to try it out.

Testing

Chapter 8

Test 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.

Try it now (opens in a new tab)

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.

Download the eBook

Get In Touch

Prefer to write to us directly?

You talk directly to the people who will write your code.

  1. You get in touch: We do our best to reply within 24 hours.
  2. We get to know each other: 30 minutes. You talk, we ask. No pitch.
  3. We decide together: How to move forward, or honestly, that we're not the right fit.
125 / 2000

A few sentences are enough. What's holding you back today, is there a deadline?

We only use your details to reply to you.

Rather talk directly? 30 minutes on Google Meet with Steven Giesel.

Pick a time
Or email us at contact@bitspire.ch