What problem does it solve?
Vertical Slice Architecture reduces the friction of feature development by keeping each use case self-contained, so developers stop bouncing between layers and files while implementing a single endpoint.
Core Features & Use Cases
- Feature-first organization: Places endpoint, request/response, validation, and handler logic together inside a single vertical slice (e.g.,
Features/Orders/CreateOrder.cs) rather than splitting by technical layers.
- Low coupling between features: Prevents cross-feature direct references by using
Common/ or Shared/ for cross-cutting logic, keeping changes localized.
- Handler-per-unit-of-work: Ensures each handler performs one clear operation, improving maintainability and making behavior easier to test and evolve.
- Multiple handler styles: Supports mediator-style handlers with pipeline behaviors, Wolverine convention-based handlers, and raw handler classes with manual endpoint wiring.
Quick Start
Ask the AI to restructure your .NET API into a Features/ folder using vertical slices with one operation per file and handlers wired to the corresponding endpoints.