Skip to content

Latest commit

 

History

68 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vertical Shop - Vertical Slice Architecture Sample

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

Shared Infrastructure

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}/.

But Why?

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.

About

A sample application demonstrating vertical slice, event-driven design using .NET Aspire

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Contributors

Languages