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.85 · Chapter 8
REST, GraphQL and gRPC interfaces, plus the authentication and authorization sublayer that guards them.
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 API layer has one job: protocol translation. What a thin REST route looks like, how domain errors become status codes, and how to pick a versioning style.
GraphQL and gRPC are extra adapters over the same tools, and OpenAPI docs can come straight from Schema-layer definitions. Where each concern belongs in LVD.
Why LVD puts authentication and authorization in a sublayer of the API layer, not in tools, and how JWT, OAuth, API keys, roles and rate limits fit together.
REST routes and MCP tools are adapters, so their tests check contracts, not business rules. The kinds of test LVD uses, and what one end-to-end check proves.
How the book's ShopFlow example spreads a retail platform across nine layers, and how three teams split the work along those layers.
API and UI code translate between worlds, so test the translation, not the business rules: contract tests, UI outcome tests and where end-to-end fits.
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.