ladderlore
ガイドをリクエスト
  • S3 や IAM などのサービス名を入力してください。

概念

Failover and distributed design patterns

Remove single points of failure, fail over on health checks, and survive overload with backoff and circuit breakers.

このレッスンはまだ翻訳されていないため、英語で表示しています。

  • Retry with backoff and jitter

    What it does
    Waits longer each time, with a random delay
    Example
    SDK retries, queue redelivery
  • Timeout

    What it does
    Stops waiting for a slow call
    Example
    Connection and read timeouts
  • Circuit breaker

    What it does
    Stops calling a failing service, fails fast
    Example
    Pause calls for 30 seconds
  • Bulkhead

    What it does
    Isolates resources per part
    Example
    Separate queues or groups
  • Graceful degradation

    What it does
    Returns a reduced result
    Example
    Show cached prices
Patterns that stop a failure from spreading.

1 / 2

  • Retry with backoff and jitter

    What it does
    Waits longer each time, with a random delay
    Example
    SDK retries, queue redelivery
  • Timeout

    What it does
    Stops waiting for a slow call
    Example
    Connection and read timeouts

2 / 2

  • Circuit breaker

    What it does
    Stops calling a failing service, fails fast
    Example
    Pause calls for 30 seconds
  • Bulkhead

    What it does
    Isolates resources per part
    Example
    Separate queues or groups
  • Graceful degradation

    What it does
    Returns a reduced result
    Example
    Show cached prices
Patterns that stop a failure from spreading.
Users
Route 53Load BalancingS3healthyif unhealthy
Health checks pick the application, or a static fallback page.

概要

A single point of failure (SPOF) is a part whose failure stops the system. Look for them tier by tier: one server, one AZ, one NAT gateway, one database, one DNS record, one person. Fix each with a copy. Active-active runs all copies and shares the load, so a failure only shrinks capacity. Active-passive keeps a copy idle until health checks say the first has failed. Active-active recovers faster. Active-passive costs less and suits data that needs one writer.

概要

Failures also come from overload and slow dependencies. Retry with exponential backoff and jitter: wait longer after each failure, with a random delay so clients do not all retry together. Set timeouts so a slow call does not hold a thread forever. A circuit breaker stops calling a failing service for a while and fails fast. Bulkheads split resources so one overloaded part cannot use them all: separate queues, thread pools or Auto Scaling groups. Graceful degradation serves a reduced answer, such as cached data, instead of an error.

概要

Loose coupling and statelessness help too: a queue lets a producer survive a slow consumer, and a stateless server lets any copy take over. Put health checks at every level: load balancer, Route 53 and Auto Scaling. A static fallback page in Amazon S3, behind a Route 53 failover record, keeps users informed when the application is down.

覚えること

  • Find every single point of failure: server, AZ, NAT gateway, database, DNS, person.
  • Active-active shares load. Active-passive keeps a standby that health checks activate.
  • Retry with exponential backoff and jitter. Never retry in a tight loop.
  • Timeouts and circuit breakers keep one slow dependency from sinking its caller.

覚えること

  • Bulkheads isolate parts. Graceful degradation returns a reduced result.
  • A static fallback page in S3 can answer when the application is down.

試験では

  • “Clients overload a recovering service with retries” points to exponential backoff with jitter.
  • “Keep serving the product catalog from cache when the pricing service is down” describes graceful degradation.
  • “Eliminate the single point of failure” points to a second AZ or a second copy of the component named in the question.