The Universal Microservices Architecture book
This book is for architects and senior engineers who can already ship distributed systems, but are no longer satisfied with how
quickly those systems fragment across browser, edge, backend, workflow, and AI-assisted execution paths. It uses WebAssembly as
an enabling boundary, but the deeper subject is architectural coherence under runtime diversity.
Who this book is for
This is not a microservices introduction. If you are still learning what a service boundary is, this book will move too fast.
This microservices architecture book is written for engineers and architects who already ship distributed systems. and who are
frustrated by a specific pattern: the same business behavior keeps getting rewritten as execution surfaces multiply. You write
the pricing rule once for the backend, then again for the browser to keep the UI responsive, then again for the edge layer to
cut latency, then again for a workflow orchestrator, and now again for an AI-assisted path. The logic is never wrong in
isolation. The system is wrong in aggregate.
The reader this book is aimed at:
- Architects and senior engineers responsible for how a distributed system holds together over time. not just how it deploys today
- Platform and infrastructure teams adding edge, mobile offline, or AI-assisted execution paths to systems that were originally designed around one canonical backend
- Technical leads who need a vocabulary and a structural model (not another framework) for making runtime decisions explicit and governable
- Anyone who has hit the ceiling of "just deploy it everywhere" and needs a principled way to think about behavior portability, runtime trust, and service graph evolution
If you are evaluating whether portable microservices architecture or WASM microservices design applies to your context, the
honest test is this: does your system already have behavior in more than one execution environment that should be identical
but is not? If yes, this book is for you.
What the book covers
The book is a progression, not an encyclopedia. It starts with the smallest portable service boundary (what a Universal
Microservice actually is) and then deliberately adds the runtime concerns that real systems accumulate. The later topics only
become meaningful once the earlier service model is clear.
The arc moves through:
- The portable service boundary: what a Universal Microservice is, why it is defined differently from a standard microservice, and how the contract separates business logic from the host runtime
- Contracts and active descriptors: how services describe themselves in a way that lets the runtime make placement and validation decisions without hard-coding assumptions
- Runtime design: what belongs inside the runtime layer and what belongs outside it. how validation, transport, policy, and trust become explicit parts of the model rather than implicit framework behavior
- Adapter binding: how the same portable service connects to different host environments through thin translation layers without leaking runtime-specific logic into the core
- Orchestration from metadata: how workflows can emerge from contracts and capability metadata instead of being hardwired into pipelines
- Service graph evolution: how compatibility, versioning, and change stay visible as the system grows. how to avoid the drift and sprawl that make graphs unmaintainable
- Trust boundaries: how provenance, policy, and enforcement remain explicit around portable execution instead of being retrofitted after portability creates risk
- Discoverable decisions: how proposal, validation, approval, and execution trace become queryable system artifacts rather than invisible runtime behavior
- System change and coherence: how a system that can evolve without fragmenting is architecturally different from one that simply accumulates backward-compatible releases
The book has 14 chapters. Every major concept has a corresponding runnable example in the companion repository, so the
architecture is explained and then immediately exercised. not left as a purely conceptual framework.
What makes it different from other architecture books
Most architecture books stay abstract. Most implementation books tie every example to one stack. This book sits between those
two positions deliberately, and differs from the standard in four specific ways:
-
Every claim has runnable proof. The companion repository covers 100% of business logic. If the book says
a portable service can run identically across runtimes, there is a lab that proves it with passing CI. not a diagram that
implies it.
-
CI verifies behavioral equivalence, not just unit tests. The Reader Smoke workflow validates that the
reader path (the actual sequence a reader follows through the examples) produces correct output end to end. The benchmark
proof workflow publishes measurable footprint data. These are not test suites for the sake of coverage. they exist to make
the book's core claims falsifiable.
-
WASM and WASI are treated as an execution boundary, not just a deployment format. Most WASM architecture
content focuses on how to compile and ship a module. This book focuses on what changes architecturally when WebAssembly
becomes the boundary between portable logic and the runtime host. and what that means for contracts, trust, adapter design,
and portability proof. This is the WASM microservices book that treats the execution model seriously.
-
Honest about tradeoffs and maturity. The book includes explicit discussion of when UMA is too much. when
a simpler service boundary or a shared library is the right answer. It does not pretend that portable microservices
architecture is universally appropriate. The companion repository's comparison pages make those tradeoffs queryable.
What you'll build
Portable services with explicit contracts, governed runtimes with visible approval traces, and orchestrated workflows built from capability metadata. not hardwired pipelines.
What you'll understand
Why behavior keeps fragmenting across runtimes, what a portable service boundary actually is, and how trust, versioning, and system change become first-class architectural concerns.
What you'll prove
That the same business logic can run across native, WASM, and AI-assisted paths with deterministic output. verified by CI, not implied by a diagram.
What you'll skip
Deployment platform tutorials, framework opinions, and vague portability promises. The book assumes you can already ship. it focuses on the architectural model that keeps what you ship coherent.
Chapter overview
Each chapter addresses one layer of the UMA model, in the order the complexity actually arrives when building a real system.
Each chapter page gives you a preview of the architectural question it answers.
- Chapter 1 (Introduction
- Why distributed systems need a new architectural model as execution surfaces multiply.
- Chapter 2) Why Device Independence Matters
- What breaks when business logic is coupled to a single execution environment.
- Chapter 3 (What Is UMA?
- The precise definition of UMA: three durable separations that distinguish it from conventional microservices.
- Chapter 4) The Road to UMA: From SOA to Metadata
- How architectural thinking evolves from SOA through microservices to metadata-driven portable services.
- Chapter 5 (Building UMA Services
- Three requirements for genuine portability: no hidden dependencies, machine-readable contract, parity proof.
- Chapter 6) The UMA Runtime Layer
- What the runtime layer owns (validation, adapter binding, trust, placement, policy, evidence) and why it must be explicit.
- Chapter 7 (Portability with WebAssembly and Native Runtimes
- How WASM component model, WASI 0.2, and active descriptors make portability inspectable rather than assumed.
- Chapter 8) Contracts, Events, and Orchestration
- How orchestration emerges from declared contracts and events instead of hardcoded wiring.
- Chapter 9 (From Services to Systems
- The three system-level properties that emerge when individual services are portable and well-governed.
- Chapter 10) Security and Trust Boundaries
- Trust as a per-execution runtime decision enforced by the runtime layer (not a deployment-time assumption.
- Chapter 11) Decisions, Patterns, and Tradeoffs
- The recurring architectural decisions in UMA and an honest account of the tradeoffs each one involves.
- Chapter 12 (Evolving and Adapting UMA Systems
- Contract-driven evolution: how to change a system over time without introducing behavioral drift.
- Chapter 13) Agents, MCP, and the Runtime of Reasoning
- UMA's runtime governance extended to AI-native execution paths via Model Context Protocol.
- Chapter 14 (The Reference Experience
- The complete UMA system assembled and running) all pieces integrated and explained decision by decision.
The companion repository
The UMA code examples repository is the runnable half of
this microservices architecture book. It is not a set of illustrative snippets. It is a structured proof surface:
- 100% business logic coverage: every portable service in the companion examples has full coverage on its core logic, enforced by the Business Logic CI workflow
- Reader Smoke CI: a dedicated workflow validates that the reader path through the examples produces correct output end to end. if a chapter example regresses, the build fails
- Runnable labs for chapters 4–13: each chapter has a
./scripts/run_lab.sh or equivalent entry point. readers can run the proof without setting up a custom environment
- Behavioral equivalence proofs: Chapter 6 includes a native-to-WASM parity test that makes the portability claim falsifiable. the benchmark proof workflow publishes footprint data for early chapters
- Chapter 13 reference application: the full portable MCP runtime, runnable as a complete system, is the culmination of every concept introduced in chapters 1–12
If you want to evaluate the model before buying, the most honest path is: inspect
Chapter 4
for the smallest portable boundary, then inspect
Chapter 13
for the complete system. Those two chapters, plus the live reference app, give you the full range of what the book builds toward.
Pre-order the book
Universal Microservices Architecture is available for pre-order on Amazon (ASIN: B0GTTTTQH4, releasing August 2026).
This is the portable microservices architecture book that treats WASM as an execution boundary, verifies its claims with CI,
and gives experienced engineers a model they can reason about, challenge, and extend. not just read and shelve.
Ready to read?
Pre-order on Amazon or start with the companion repository. Both are designed to be evaluated independently before
committing to either.