The Nine Layers of LVD, Explained
A plain-English tour of LVD's nine layers, from Schema to UI: what each one holds, why it sits where it does, and the rule that connects them.
Volatility ν = 0.4 · Chapter 5
Pure, stateless functions organised by domain. No I/O, no hidden state, which makes this layer cheap to test and slow to change.
A plain-English tour of LVD's nine layers, from Schema to UI: what each one holds, why it sits where it does, and the rule that connects them.
The Utils layer holds pure functions grouped by business domain. See what purity buys you, why technical folders fail, and the complexity cap the book sets.
One small feature carried through the two bottom layers: a rental schema with a cross-field rule, and pure fare utilities that import its types.
Trace three kinds of change through a tool that uses Schema, Utils and Resources, and see why the two bottom layers earn the heaviest testing.
How the book's ShopFlow example spreads a retail platform across nine layers, and how three teams split the work along those layers.
How to test Schema, Utils, Resources and Tools in LVD: exhaustive rule checks, property-based tests, containers for adapters and mocks at the resource boundary.
The whole idea of Layered Volatility Decomposition in one sitting: sort code by how often it changes, depend only downward, and let nine layers do the rest.
A one-page reference to LVD's nine layers: volatility coefficients, what lives in each, what does not, plus the dependency rule and axioms A5 and A6.