

Vertical Slice Architecture with Jeremy Miller
Feb 27, 2025
Jeremy Miller, a seasoned software architect known for his contributions to open-source tools, discusses the benefits of vertical architecture in application development. He emphasizes the importance of quickly delivering functional solutions by focusing on vertical slices rather than getting bogged down by complex designs. The conversation touches on the challenges of collaboration, the risks of shortcuts, and the significance of effective communication within teams to enhance efficiency and creativity. Miller's insights offer a refreshing perspective on streamlining code organization and maintainability.
AI Snips
Chapters
Transcript
Episode notes
Vertical Slice Architecture: Use Case Focus
- Vertical Slice Architecture prioritizes organizing code around use cases, unlike layered architectures like Clean Architecture.
- This approach improves reasoning about system behavior by grouping related code together, making it easier to understand and modify specific functionalities.
Vertical Slice Implementation: Single File Ideal
- In Vertical Slice Architecture, aim to handle a single web request within one code file, including data fetching, business rules, and persistence.
- For larger use cases, extract helper methods or message handlers while maintaining the focus on cohesive functionality within the slice.
Data Access: Ditch Repositories, Go Direct
- Minimize the use of repository layers and abstractions, especially when performance is critical. Directly use data access tools like EF Core's DbContext or an IDocumentStore.
- This approach allows developers to leverage the full power of data persistence tools for optimizations like batch querying or eager fetching.