The Leanpub 60 Day 100% Happiness Guarantee
Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
See full terms...
About the Book
Distributed systems engineering operates under physical and theoretical constraints that single-node abstractions conceal: asynchronous message delivery, unbounded network delay, independent component crashes, clock drift across unsynchronized oscillators, and volatile kernel page caches. Designing reliable infrastructure requires deriving architectures directly from explicit safety and liveness invariants, fault boundaries, and quantitative resource limits rather than informal component sketches.
In this book, I examine the architecture of fault-tolerant distributed systems from first principles. For every system, I establish the actors, verifiable functional contracts, explicit latency and availability Service Level Objectives (SLOs), and storage, compute, and bandwidth envelopes prior to introducing algorithms, wire protocols, or deployment topologies.
The twenty-eight chapters are grouped into six thematic parts:
Across every system design chapter, I adhere to an explicit engineering progression aligned with formal systems documentation standards (ISO/IEC/IEEE 26514):
The companion code/ directory contains the runnable Part I storage subsystems and the workload simulations cited across Parts II to VI, allowing readers to reproduce the throughput measurements, skew distributions, and crash-recovery experiments reported in the text.
For the system design chapters, I assume foundational knowledge of HTTP semantics, relational databases, data structures, and TCP/IP networking. For the low-level implementation chapters in Part I, I additionally assume reading familiarity with Rust. Every distributed systems primitive is derived when first introduced and consolidated in each chapter’s engineering glossary.
The protocols and trade-offs presented in this volume draw upon primary distributed systems literature and published production engineering reports, including work on Raft consensus, Dynamo, Spanner, CockroachDB, Stripe’s atomic-phase idempotency and GCRA rate-limiting systems, and classical transaction-processing theory. Full bibliographic citations appear at the close of each chapter.
Arpan Pathak
About the Author
I am a software engineer with over 8 years of experience building and operating cloud infrastructure, storage systems, payment gateways, and AI serving platforms at Microsoft, Oracle, Amazon, and Razorpay. My work focuses on distributed systems, systems programming, and parallel GPU computing. I wrote this book to present distributed system architectures rigorously, deriving each design from explicit requirements, failure models, and executable verification.
Website: https://arpanpathak.github.io
GitHub: https://github.com/arpanpathak
You can get the free Community Edition in PDF or EPUB just by sharing your name and email address with the author.
Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
See full terms...
We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.
(Yes, some authors have already earned much more than that on Leanpub.)
Learn more about writing on Leanpub
If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).
Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.
Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.
Learn more about Leanpub's ebook formats and where to read them
You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!
Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.
Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.