.NET Rocks!

Vertical Slice Architecture with Jeremy Miller

11 snips
Feb 27, 2025
Jeremy Miller, a seasoned software architect and open-source innovator, shares insights on vertical architecture. He emphasizes the importance of quickly delivering functional applications by taking an end-to-end approach. The discussion touches on the balance between thoughtful design and rapid execution, addressing concerns like team collaboration and duplicated efforts. Jeremy also explores the evolution of backend technologies and the challenges of transitioning to NoSQL databases, highlighting how resilience and effective communication are key to project success.
Ask episode
AI Snips
Chapters
Transcript
Episode notes
INSIGHT

Vertical Slice Architecture vs. Layered Architectures

  • Vertical Slice Architecture, popularized by Jimmy Bogard, contrasts with layered architectures like Clean Architecture.
  • It prioritizes organizing code around use cases or CQRS commands/queries over horizontal layers.
ADVICE

Organizing Code in Vertical Slices

  • Organize code around use cases, minimizing shared logic between slices.
  • Focus on the entire request process, from input to output (e.g., a web request).
ADVICE

Direct Data Access over Repositories

  • Utilize data persistence tools directly (e.g., EF Core's DbContext, Marten's IDocumentStore) instead of defaulting to repository layers.
  • This allows leveraging the full power of your database tooling.
Get the Snipd Podcast app to discover more snips from this episode
Get the app