Fitness Functions for Your Architecture – in Practice
summary
Concrete code examples use ArchUnit and jMolecules to encode fitness functions that assert module dependencies, layered ordering and absence of cycles. A live demo creates an unwanted A→B dependency, the architecture test fails, the dependency is removed and the test turns green, proving immediate feedback works locally and in CI. Fitness functions act like unit tests for architecture and guard against accidental complexity; no ready commercial tool for microservice-level checks is endorsed.
AI-written summary · about
chapters (8)
- 0:00Introduction to fitness functions
- 1:11What are fitness functions
- 6:29Structure and dependencies matter
- 11:29Demo with ArchUnit
- 19:12Layered architecture example
- 26:30JMolecules for layering
- 31:16Wrap-up and agility
- 37:21Q&A on microservices
related talks
01h 03mCreating and Maintaining Architectural Fitness Functions
51mTesting Software Architecture
25mThe Intersection of Fitness Function driven Architecture and Agentic AI
50mBuilding Evolutionary Architectures
22mArchitecture & ArchUnit
02mInterview with Nathaniel Schutta
58mTesting Software Architecture
41mOrganising and Governing Evolutionary Architectures (Fitness Functions)
