Note
This sample (and documentation) is a work-in-progress.
This is a sample application demonstrating Vertical Slice Architecture in .NET. The application is a simple e-commerce system that manages products and inventory using a modular, domain-driven approach.
In this example, each feature behaves like a microservice, with full ownership of the underlying persistence. Other feature slices only interact with other features through public contracts (e.g., integration events or API calls).
Instead of spinning up sepearte infrastructure for each slice, the AppHost and Api projects orchestrate shared infrastructure.
At the database level, this means that each feature owns a schema -- effectively treating a schema like its own database.
At the API level, a feature's endpoints are exposed under api/{feature}/.
This project waas developed primarily as a proof-of-concept to demonstrate how close we can get to microservice-like architecture without the pain of maintaining the corresponding infrastructure.