Using Kotlin to implement Clean Architecture
summary
Shows a working CRUD ecommerce example implementing Clean Architecture with Kotlin, Spring Boot, Spring Data and MongoDB; use cases are split into findProducts and createProduct interfaces, domain uses immutable data classes, and persistence uses product documents with a repository. Kotlin extension functions replace many mappers, and null-safety plus immutability reduce accidental coupling. Tests run with an embedded Fongo in-memory MongoDB inside a Spring test context, and the demo compiles, runs and passes integration tests.
AI-written summary · about
chapters (7)
- 0:00Start
- 1:24WHAT IS CLEAN ARCHITECTURE
- 5:48SOLID PRINCIPLES
- 9:56MODULAR APPROACH
- 12:51STATICS ARE IMPLICITLY DISCOURAGED
- 13:23SYNTACTIC PERKS
- 36:53QUESTIONS?
related talks
38mEmbracing Clean Architecture in Spring Boot and Kotlin
32mWhen Clean Architecture met Kotlin, A love story
44mKotlin and Spring Boot, a Match Made in Heaven
50mAnatomy of a Spring Boot App with Clean Architecture
50mKotlin and Spring boot a pleasant experience and some rough edges
59mSpring into Kotlin: How to Make the Magic even more Magical
16mUsing Kotlin and Data Classes to set up Spring Boot with DynamoDB
44mSpring + Kotlin = Modern + Reactive + Productive
