Where is the Logic of My Application?
summary
Claims a practical path to make architecture testable by defining rules, codifying them with ArchUnit, and shipping a shared rules library used by multiple microservices; shows an example repo with two microservices and one library, adds ArchUnit deps, and runs rules as unit tests in CI. Demonstrates concrete rules (controller→service→repository layering, private static final logger naming, DTOs only getters/setters), shows detection of cyclic dependencies, and recommends incremental adoption.
AI-written summary · about
chapters (14)
- 0:00Introduction and context
- 1:16Microservices naming inconsistencies
- 3:48Visualizing layer inconsistencies
- 5:14Problems with informal approaches
- 7:02Why use ArchUnit
- 9:39Comparing static analysis tools
- 11:45ArchUnit library overview
- 13:53Defining custom rules
- 16:01Cyclic dependencies check
- 17:25Implementing company-wide rules
- 18:10Practical ArchUnit example
- 20:37Reusing rules across services
- 21:42Library integration
- 22:25Best practices and resources
