Embracing Clean Architecture in Spring Boot and Kotlin
summary
Practical walkthrough of a small Spring Boot + Kotlin demo app that adds and lists products, then introduces buy-one-get-one and percent discounts with POST endpoints and a price-calculation request body; shows the concrete refactor from shared JPA entities to a port-and-adapter persistence adapter, moves @Transactional out of the domain into an application/config layer, and extracts a pricing use case. Code and slides are on GitHub so the demo is reproducible and the changes are visible line-by-line.
AI-written summary · about
chapters (12)
- 0:00Introduction and speaker intro
- 1:55What is software architecture
- 8:23Architectural styles overview
- 14:06Clean architecture explained
- 18:00Starting with layered architecture
- 21:10Adding discounts to the system
- 24:45Refactoring to clean architecture
- 27:34Domain model independence
- 30:22Framework agnostic domain
- 33:15Use cases in application layer
- 35:29Symptoms of unclean architecture
- 37:00Q&A and resources
