Enterprise Distributed Architecture and Cloud-Native Platforms
Volume II of a Systems Engineering Handbook
Transport internals to consensus. Event logs to service meshes. Container runtimes to agentic AI infrastructure.
Transport internals to consensus. Event logs to service meshes. Container runtimes to agentic AI infrastructure. A systems engineering handbook for distributed systems at enterprise scale.
Systems Architect & Security Researcher. Sole author.
Written in Simplified Technical English (ASD-STE100). Revision 1.0, September 2026. Free to read online.
Preface
Two engineers look at the same incident. The first sees a service that returned 503 for eleven minutes. The second sees a consumer group that rebalanced, a partition that moved, a retry budget that nobody set, and a circuit breaker that stayed closed because its window was too long. The difference is a model that reaches from the wire format up to the deployment topology.
This book builds that model for systems that run across many machines.
What the book covers
Part I covers the substrate. Chapter 1 takes apart transport: HTTP/3 stream multiplexing, kernel bypass, remote procedure call encoding, and the TLS 1.3 handshake. Chapter 2 covers agreement: Raft, the Paxos family, the consistency models that name what a reader can observe, and the protocols for a transaction that spans machines. Chapter 3 covers durable state: storage engine internals, partitioning, multi-leader replication, and concurrency control at scale.
Part II covers the architecture above it. Chapter 4 treats the append-only log as a primitive and builds event sourcing, exactly-once processing, and schema contracts on it. Chapter 5 covers service-to-service communication and the resilience patterns that keep a partial failure partial. Chapter 6 covers the edge: rate limiting, edge runtimes, zero trust authentication, and API aggregation.
Part III covers the runtime. Chapter 7 opens the container and the orchestrator. Chapter 8 covers telemetry, kernel tracing, tail latency, and the error budget arithmetic that decides when a page is justified. Chapter 9 covers the AI infrastructure layer: model serving, multi-accelerator parallelism, retrieval infrastructure, and the durable execution patterns that production agents need.
What the book assumes
The book assumes that you write code, that you operated something in production, and that you read a stack trace at an unreasonable hour. It does not assume a formal background in distributed systems, and it defines every term that it uses.
The book does not teach a framework. It teaches the mechanism under the framework, because the frameworks change every eighteen months and the mechanisms do not. Where a named product appears, it appears as an example of a mechanism rather than as a recommendation.
How to read it
Each chapter holds four sections, and each section is self-contained enough to read on its own. The table of contents lists every section with its page, so the book works as a reference as well as a text.
Read Chapter 2 before Chapter 3, and Chapter 4 before Chapter 5. The rest are close to independent. An engineer who owns a streaming platform can go straight to Chapter 4. An engineer who owns an inference cluster can go straight to Chapter 9, though Section 1.2 and Section 2.3 carry the transport and consistency assumptions that Chapter 9 relies on.
Five block types repeat through the book:
- A note block adds a fact that the main argument does not need.
- A warning block names a failure that costs money, data, or availability.
- A production block gives a rule that holds in a real deployment.
- A key numbers block gives the measurements for the section.
- A summary block ends each chapter with a set of claims.
Its relationship to Volume I
Volume I covers computer science fundamentals: computer architecture, kernel mechanics, data structures under real memory behavior, concurrency, language runtimes, design boundaries, storage engines, and consensus foundations. This volume goes deeper on distribution and on the cloud-native platform.
The two overlap in four places, and the treatment differs each time. Volume I introduces QUIC as a protocol choice, and Section 1.1 here takes apart its stream machinery. Volume I introduces Raft as one consensus algorithm among several, and Section 2.1 here works through its invariants and its membership change protocol. Volume I prices the storage engine families, and Section 3.1 here covers the compaction strategies and the write paths. Volume I introduces model serving, and Chapter 9 here covers the serving architecture in full.
You do not need Volume I to read this book. You need it if you want to know why a cache miss costs 80 nanoseconds and what that implies for the code you write.
On the writing
The book uses a controlled subset of English. Sentences stay under 25 words. The voice stays active. The modal verbs are can, will, and must. There are no contractions and no em-dashes. One word carries one meaning across the whole text.
A controlled language removes the second reading. An engineer who reads a runbook during an incident cannot afford a sentence that parses two ways. The same discipline applies to a book about distributed systems, where the subject already resists a first reading.
About this edition
About this book
This book covers the architecture of systems that run across many machines. It starts at the transport protocol and ends at an agentic AI platform. Nine chapters hold thirty-six sections, and each section covers one mechanism in enough depth to implement it or to debug it.
The book is a companion to Volume I, which covers computer science fundamentals from the cache line to production scale. This volume assumes the constants that Volume I establishes and spends them on distributed design. It stands alone, and a reader who wants the hardware and kernel foundations will find them there.
Language and style
The prose follows the discipline of ASD-STE100 Simplified Technical English, the controlled language that aerospace adopted in 1983. Sentences are short. The voice is active. One word carries one meaning for the whole book. Technical terms carry a definition at first use.
No tool and no publisher can guarantee ASD-STE100 compliance, because ASD certifies no tool. The official standard is a free download at asd-ste100.org.
Numbers and currency
Latency numbers, throughput numbers, and version numbers carry a date or a source in the text. Software versions move. A protocol detail from 2026 will drift, and the mechanism under it will not. Read the tables as orders of magnitude, and measure the absolutes on your own hardware.
Where a claim depends on a specific version, the text names the version. Where a claim is a general property of a design, the text says so. Where a design is proposed rather than shipped, the text says that too.
Code and configuration
Code samples are illustrative. Several remove error handling to keep the mechanism visible. Any sample that you take to production needs error handling, bounds checks, and a test.
Do not copy a configuration from this book into a production system without a test. The book describes mechanisms and trade-offs. It does not know your workload, your hardware, or your failure budget.
Colophon
Set in Bitstream Charter for the body text, Noto Sans for headings and tables, and Fira Code for program text. Composed in Markdown, rendered to HTML, and printed to PDF with WeasyPrint.
Questions about this book
- Who is the author of this book?
- Ayoub Zulfiqar is the sole author. He is a Systems Architect and Security Researcher with 8+ years of experience in systems architecture, offensive security research, and open-source software.
- Is this book a sequel? Can I read it without reading Volume I?
- This book is Volume II of a Systems Engineering Handbook. It assumes the constants established in Volume I (cache lines, kernel mechanics, memory models), but it stands alone. Each chapter defines every technical term at first use.
- What topics does this book cover?
- The book covers nine chapters across three parts plus three reference appendices: High-Throughput Networking and Distributed State (transport protocols, consensus, storage engines), Modern Architecture Patterns and Event-Driven Systems (event sourcing, microservices, API gateways), and Cloud-Native Runtimes, Observability, and AI-Native Infrastructure (Kubernetes, telemetry, AI serving).
- What writing style does the book use?
- The book uses Simplified Technical English (ASD-STE100), the controlled language adopted by aerospace since 1983. Sentences are under 25 words, the voice is active, and one word carries one meaning across the entire text.
Attribution and sole author credit: Ayoub Zulfiqar. All content in this book is the original work of the author.