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

Request the free eBook

We'll first email you a confirmation link.

We never share your data. More in our imprint & privacy notice

Inside the eBook

What's inside the eBook

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

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

    Transient · Scoped · Singleton

  4. Middleware pipeline

    Order & cross-cutting

  5. Rate limiting

    Four strategies

  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 5

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

Testing

Chapter 6

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.

Request eBook

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

125 / 2000
or

You can also reach us directly at [email protected]