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.3 · Chapter 5
Types, validation rules and data contracts. The most stable code in the system: it changes when the business meaning of your data changes, and rarely otherwise.
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 Schema layer is LVD's lowest and most stable layer. See what belongs in it, how to pick a schema language, and how to lay out its folders.
Per-field checks miss rules that span fields, and shared schemas can lose them between languages. Two fixes for a Schema layer used by several services.
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.
Every layer imports Schema types, so Schema is where a team's shared vocabulary can be enforced. Enums are the first place to start.
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.