SOLID Architecture in Slices not Layers
summary
Argues that replacing horizontal layers with vertical slices yields simpler, safer systems: a single case where four screens live in 20,000 lines for four screens motivates the change. Uses handler/mediator pattern and projections, ships a small library, and applies AutoMapper and FluentValidation plus ORMs only for targeted queries. Organizes code into feature folders with views and JS, removes repositories, reduces merge conflicts, enables incremental refactoring and DDD-style aggregates that actually work in production.
AI-written summary · about
chapters (28)
- 0:00Intro
- 1:04Inmates and asylums
- 3:28Traditional n-tier
- 4:03DDD-style n-tier
- 4:35Organizing by layer
- 5:36Inmates blew up the asylum
- 7:35Web App Characteristics
- 8:58CORS to the Rescue
- 13:40Modeling inputs
- 14:36Modeling outputs
- 15:48Handling Query Request
- 16:19Returning Query Result
- 17:05Complex query response
- 18:19Projecting single model
- 19:20Single projected query
- 21:27Command modeling
- 24:14Command Request
- 24:30Command Handling
- 25:33validation
- 27:25validate requests, not entities
- 29:34Areas of change
- 30:47Collapsing Features
- 31:23Full-stack organization
- 32:38Our Controller
- 33:56DDD Reinvigorated
- 34:50Simple Commands
- 36:21Architecture in slices
- 37:41SOLID Roundup
related talks
58mDesigning for change with Vertical Slice Architecture
01h 02mVertical Slice Architecture
26mSimplifying Our Code with Vertical Slice Architecture
54mDesigning for change with Vertical Slice Architecture
51mA Contrarian View of Software Architecture
01h 29mArchitecture Beyond Clean & Hexagonal
42mStratified design and functional architecture
50mTowards an Evolutionary Architecture
