Designing Distributed Systems. 2nd Edition - Helion
ISBN: 9781098156312
stron: 220, Format: ebook
Data wydania: 2024-12-04
Księgarnia: Helion
Cena książki: 177,65 zł (poprzednio: 216,65 zł)
Oszczędzasz: 18% (-39,00 zł)
Every distributed system strives for reliability, performance, and quality, but building such a system is hard. Establishing a set of design patterns enables software developers and system architects to use a common language to describe their systems and learn from the patterns and practices developed by others.
The popularity of containers and Kubernetes paves the way for core distributed system patterns and reusable containerized components. This practical guide presents a collection of repeatable, generic patterns to help guide the systems you build using common patterns and practices drawn from some of the highest performing distributed systems in use today. These common patterns make the systems you build far more approachable and efficient, even if you've never built a distributed system before.
Author Brendan Burns demonstrates how you can adapt existing software design patterns for designing and building reliable distributed applications. Systems engineers and application developers will learn how these long-established patterns provide a common language and framework for dramatically increasing the quality of your system.
This fully updated second edition includes new chapters on AI inference, AI training, and building robust systems for the real world.
- Understand how patterns and reusable components enable the rapid development of reliable distributed systems
- Use the sidecar, adapter, and ambassador patterns to split your application into a group of containers on a single machine
- Explore loosely coupled multinode distributed patterns for replication, scaling, and communication between components
- Learn distributed system patterns for large-scale batch data processing covering work queues, event-based processing, and coordinated workflows
Osoby które kupowały "Designing Distributed Systems. 2nd Edition", wybierały także:
- Windows Media Center. Domowe centrum rozrywki 66,67 zł, (8,00 zł -88%)
- Ruby on Rails. Ćwiczenia 18,75 zł, (3,00 zł -84%)
- Przywództwo w świecie VUCA. Jak być skutecznym liderem w niepewnym środowisku 58,64 zł, (12,90 zł -78%)
- Scrum. O zwinnym zarządzaniu projektami. Wydanie II rozszerzone 58,64 zł, (12,90 zł -78%)
- Od hierarchii do turkusu, czyli jak zarządzać w XXI wieku 58,64 zł, (12,90 zł -78%)
Spis treści
Designing Distributed Systems. 2nd Edition eBook -- spis treści
- Preface
- Who Should Read This Book
- Why I Wrote This Book
- The World of Distributed Systems Today
- Navigating This Book
- Conventions Used in This Book
- Online Resources
- Using Code Examples
- OReilly Online Learning
- How to Contact Us
- Acknowledgments
- I. Foundational Concepts
- 1. Introduction
- A Brief History of Systems Development
- A Brief History of Patterns in Software Development
- Formalization of Algorithmic Programming
- Patterns for Object-Oriented Programming
- The Rise of Open Source Software
- The Value of Patterns, Practices, and Components
- Standing on the Shoulders of Giants
- A Shared Language for Discussing Our Practice
- Shared Components for Easy Reuse
- Summary
- 2. Important Distributed System Concepts
- APIs and RPCs
- Latency
- Reliability
- Percentiles
- Idempotency
- Delivery Semantics
- Relational Integrity
- Data Consistency
- Orchestration and Kubernetes
- Health Checks
- Summary
- II. Single-Node Patterns
- 3. The Sidecar Pattern
- An Example Sidecar: Adding HTTPS to a Legacy Service
- Dynamic Configuration with Sidecars
- Modular Application Containers
- Hands On: Deploying the topz Container
- Building a Simple PaaS with Sidecars
- Designing Sidecars for Modularity and Reusability
- Parameterized Containers
- Define Each Containers API
- Documenting Your Containers
- Summary
- 4. Ambassadors
- Using an Ambassador to Shard a Service
- Hands On: Implementing a Sharded Redis
- Using an Ambassador for Service Brokering
- Using an Ambassador to Do Experimentation or Request Splitting
- Hands On: Implementing 10% Experiments
- Summary
- Using an Ambassador to Shard a Service
- 5. Adapters
- Monitoring
- Hands On: Using Prometheus for Monitoring
- Logging
- Hands On: Normalizing Different Logging Formats with fluentd
- Adding a Health Monitor
- Hands On: Adding Rich Health Monitoring for MySQL
- Summary
- Monitoring
- III. Serving Patterns
- 6. Replicated Load-Balanced Services
- Stateless Services
- Readiness Probes for Load Balancing
- Hands On: Creating a Replicated Service in Kubernetes
- Session Tracked Services
- Application-Layer Replicated Services
- Introducing a Caching Layer
- Deploying Your Cache
- Hands On: Deploying the Caching Layer
- Expanding the Caching Layer
- Rate Limiting and Denial-of-Service Defense
- SSL Termination
- Hands On: Deploying nginx and SSL Termination
- Summary
- Stateless Services
- 7. Sharded Services
- Sharded Caching
- Why You Might Need a Sharded Cache
- The Role of the Cache in System Performance
- Replicated Sharded Caches
- Hands On: Deploying an Ambassador and Memcache for a Sharded Cache
- An Examination of Sharding Functions
- Selecting a Key
- Consistent Hashing Functions
- Hands On: Building a Consistent HTTP Sharding Proxy
- Sharded Replicated Serving
- Hot Sharding Systems
- Summary
- Sharded Caching
- 8. Scatter/Gather
- Scatter/Gather with Root Distribution
- Hands On: Distributed Document Search
- Scatter/Gather with Leaf Sharding
- Hands On: Sharded Document Search
- Choosing the Right Number of Leaves
- Scaling Scatter/Gather for Reliability and Scale
- Summary
- Scatter/Gather with Root Distribution
- 9. Functions and Event-Driven Processing
- Determining When FaaS Makes Sense
- The Benefits of FaaS
- The Challenges of FaaS
- The Need for Background Processing
- The Need to Hold Data in Memory
- The Costs of Sustained Request-Based Processing
- Patterns for FaaS
- The Decorator Pattern: Request or Response Transformation
- Hands On: Adding Request Defaulting Prior to Request Processing
- Handling Events
- Hands On: Implementing Two-Factor Authentication
- Event-Based Pipelines
- Hands On: Implementing a Pipeline for New User Signup
- Summary
- Determining When FaaS Makes Sense
- 10. Ownership Election
- Determining If You Even Need Leader Election
- The Basics of Leader Election
- Hands On: Deploying etcd
- Implementing Locks
- Hands On: Implementing Locks in etcd
- Implementing Ownership
- Hands On: Implementing Leases in etcd
- Handling Concurrent Data Manipulation
- Summary
- IV. Batch Computational Patterns
- 11. Work Queue Systems
- A Generic Work Queue System
- The Source Container Interface
- Work Queue API
- The Worker Container Interface
- The Shared Work Queue Infrastructure
- Hands On: Implementing a Video Thumbnailer
- Dynamic Scaling of the Workers
- The Multiworker Pattern
- Summary
- A Generic Work Queue System
- 12. Event-Driven Batch Processing
- Patterns of Event-Driven Processing
- Copier
- Filter
- Splitter
- Sharder
- Merger
- Hands On: Building an Event-Driven Flow for New User Signup
- Publisher/Subscriber Infrastructure
- Hands On: Deploying Kafka
- Resiliency and Performance in Work Queues
- Work Stealing
- Errors, Priority, and Retry
- Summary
- Patterns of Event-Driven Processing
- 13. Coordinated Batch Processing
- Join (or Barrier Synchronization)
- Reduce
- Hands On: Count
- Sum
- Histogram
- Hands On: An Image Tagging and Processing Pipeline
- Summary
- V. Universal Concepts
- 14. Monitoring and Observability Patterns
- Monitoring and Observability Basics
- Logging
- Metrics
- Basic Request Monitoring
- Advanced Request Monitoring
- Alerting
- Basic alerting
- Alerting on anomolies
- Tracing
- Aggregating Information
- Summary
- Monitoring and Observability Basics
- 15. AI Inference and Serving
- The Basics of AI Systems
- Hosting a Model
- Distributing a Model
- Development with Models
- Retrieval-Augmented Generation
- Testing and Deployment
- Summary
- 16. Common Failure Patterns
- The Thundering Herd
- The Absence of Errors Is an Error
- Client and Expected Errors
- Versioning Errors
- The Myth of Optional Components
- Oops, We Cleaned Up Everything
- Challenges with the Breadth of Inputs
- Processing Obsolete Work
- The Second System Problem
- Summary
- Conclusion: A New Beginning?
- Index