The whole, before the parts

A distributed system has components communicating across a network. Components can fail independently, and a delayed response can be hard to distinguish from a failed operation. Citation needed

For example, after a payment request times out, the caller may not know whether the payment happened. Retrying requires a design that accounts for this uncertainty. Citation needed

The concepts connect failure of one component, safe repetition of an operation, and keeping copies on different machines. Each addresses how the service behaves when communication or individual components fail. Citation needed

Terminology and core concepts

  1. Partial failure

    Partial failure occurs when some components fail while others continue. Citation needed

    Does one unavailable service prove the whole system stopped?
    no Citation needed
  2. Idempotency

    An operation is idempotent when repeating it has the same intended effect as doing it once. Citation needed

    Why is idempotency useful for retries?
    it prevents repeated requests from multiplying the effect Citation needed
  3. Replication

    Replication stores or maintains copies across components. Citation needed

    Why can replicas temporarily disagree?
    updates take time to reach them Citation needed

Try an example

A payment request times out. Is immediately issuing a new payment with a new identifier safe? Citation needed

Show the reasoning

Not necessarily. The first payment may have succeeded despite the lost reply. Reusing an agreed request identifier can allow the service to recognize the retry.

Citation needed

Sources and further reading

Core notes reviewed .

Learning path

Continue through Software Engineering in order, using the concepts above to connect this topic to the next.