ladderlore
လမ်းညွှန် တောင်းဆိုရန်
  • S3 သို့မဟုတ် IAM လို service အမည်ကို ရိုက်ထည့်ပါ။

သဘောတရား

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.