Book description
A Patterns Approach to Designing Distributed Systems and Solving Common Implementation Problems
More and more enterprises today are dependent on cloud services from providers like AWS, Microsoft Azure, and GCP. They also use products, such as Kafka and Kubernetes, or databases, such as YugabyteDB, Cassandra, MongoDB, and Neo4j, that are distributed by nature. Because these distributed systems are inherently stateful systems, enterprise architects and developers need to be prepared for all the things that can and will go wrong when data is stored on multiple servers--from process crashes to network delays and unsynchronized clocks.
Patterns of Distributed Systems describes a set of patterns that have been observed in mainstream open-source distributed systems. Studying the common problems and the solutions that are embodied by the patterns in this guide will give you a better understanding of how these systems work, as well as a solid foundation in distributed system design principles.
Featuring real-world code examples from systems like Kafka and Kubernetes, these patterns and solutions will prepare you to confidently traverse open-source codebases and understand implementations you encounter "in the wild."
Review the building blocks of consensus algorithms, like Paxos and Raft, for ensuring replica consistency in distributed systems
Understand the use of logical timestamps in databases, a fundamental concept for data versioning
Explore commonly used partitioning schemes, with an in-depth look at intricacies of two-phase-commit protocol
Analyze mechanisms used in implementing cluster coordination tasks, such as group membership, failure detection, and enabling robust cluster coordination
Learn techniques for establishing effective network communication between cluster nodes.
Along with enterprise architects and data architects, software developers working with cloud services such as Amazon S3, Amazon EKS, and Azure CosmosDB or GCP Cloud Spanner will find this set of patterns to be indispensable.
Register your book for convenient access to downloads, updates, and/or corrections as they become available. See inside book for details.
..
Table of contents
- Cover Page
- About This eBook
- Halftitle Page
- Title Page
- Copyright Page
- Pearson’s Commitment to Diversity, Equity, and Inclusion
- Dedication Page
- Contents
- Foreword
- Preface
- Acknowledgments
- About the Author
-
Part I: Narratives
- Chapter 1. The Promise and Perils of Distributed Systems
-
Chapter 2. Overview of the Patterns
- Keeping Data Resilient on a Single Server
- Competing Updates
- Dealing with the Leader Failing
- Multiple Failures Need a Generation Clock
- Log Entries Cannot Be Committed until They Are Accepted by a Majority Quorum
- Followers Commit Based on a High-Water Mark
- Leaders Use a Series of Queues to Remain Responsive to Many Clients
- Followers Can Handle Read Requests to Reduce Load on the Leader
- A Large Amount of Data Can Be Partitioned over Multiple Nodes
- Partitions Can Be Replicated for Resilience
- A Minimum of Two Phases Are Needed to Maintain Consistency across Partitions
- In Distributed Systems, Ordering Cannot Depend on System Timestamps
- A Consistent Core Can Manage the Membership of a Data Cluster
- Gossip Dissemination for Decentralized Cluster Management
-
Part II: Patterns of Data Replication
- Chapter 3. Write-Ahead Log
- Chapter 4. Segmented Log
- Chapter 5. Low-Water Mark
- Chapter 6. Leader and Followers
- Chapter 7. HeartBeat
- Chapter 8. Majority Quorum
- Chapter 9. Generation Clock
- Chapter 10. High-Water Mark
- Chapter 11. Paxos
- Chapter 12. Replicated Log
- Chapter 13. Singular Update Queue
- Chapter 14. Request Waiting List
- Chapter 15. Idempotent Receiver
- Chapter 16. Follower Reads
- Chapter 17. Versioned Value
- Chapter 18. Version Vector
- Part III: Patterns of Data Partitioning
- Part IV: Patterns of Distributed Time
- Part V: Patterns of Cluster Management
- Part VI: Patterns of Communication between Nodes
- References
- Index
- Code Snippets
Product information
- Title: Patterns of Distributed Systems
- Author(s):
- Release date: December 2023
- Publisher(s): Addison-Wesley Professional
- ISBN: 9780138222246
You might also like
book
Designing Distributed Systems
Without established design patterns to guide them, developers have had to build distributed systems from scratch, …
video
Distributed Systems in One Lesson
Simple tasks like running a program or storing and retrieving data become much more complicated when …
book
Foundations of Scalable Systems
In many systems, scalability becomes the primary driver as the user base grows. Attractive features and …
book
Designing Distributed Systems, 2nd Edition
Every distributed system strives for reliability, performance, and quality, but building such a system is hard. …