Distributed Service Foundations

  1. Local Calls and Network Service Calls

    A local call shares the caller's runtime context. A network call adds a transport, another process, and additional ways to wait or fail.

    Undergraduate
  2. Accepted Work and Completed Work

    A service can acknowledge receipt of work before producing its final result. Give callers separate evidence for those states.

    Undergraduate
  3. Dividing a Deadline Among Service Calls

    A request deadline can be budgeted across local work and dependencies so each operation respects the work still possible.

    Undergraduate
  4. What a Timeout Tells the Caller

    A timeout signals that a response was not observed before a limit. It can result from slow work, slow communication, or other problems.

    Undergraduate
  5. Stable Request IDs Across Retry Attempts

    A stable request ID can refer to one intended operation across several deliveries or attempts.

    Undergraduate
  6. Bounded Retries When a Dependency Is Slow

    Retrying consumes capacity and remaining time. Limit attempts and choose when a retry is permitted under the operation's semantics.

    Undergraduate
  7. Backpressure on a Service Queue

    Backpressure lets upstream work producers observe limited downstream capacity and reduce or delay submissions.

    Undergraduate
  8. Arrival Rate and Service Throughput

    The rate of incoming work and the rate processed determine whether a queue can absorb expected demand over time.

    Undergraduate
  9. Reading from a Replica After a Write

    A replica can serve data copied from another service instance. Whether it sees a newly committed write depends on the replication and read policy.

    Undergraduate
  10. Roles of a Primary and a Replica

    A service can designate an instance to accept writes and other instances to copy state, according to a defined protocol.

    Undergraduate
  11. A Service Cache in Front of a Catalogue

    Caching can avoid repeated reading or rendering for requests with the same relevant inputs, according to a freshness contract.

    Undergraduate
  12. Invalidating a Service Cache After a Data Change

    A data change can make a cached representation stale. Invalidation identifies which keys or versions should no longer serve as current.

    Undergraduate
  13. Signals for a Running or Ready Service

    A running process may not yet be ready to accept ordinary traffic. Separate observations can indicate whether it exists and whether it can handle work.

    Undergraduate
  14. Correlating One Request Across Service Logs

    A correlation identifier can connect diagnostic events from cooperating components, letting a maintainer reconstruct relevant parts of a request.

    Undergraduate
  15. Waiting for Parallel Dependencies

    An operation asking several independent services can wait for all results or for a policy-defined subset. The elapsed time depends on the slowest needed result plus overhead.

    Undergraduate
  16. Fan-Out and Combining Results

    Fan-out sends work to several recipients. A combining step defines how their results form one observation for the caller.

    Undergraduate
  17. Publishing an Event After a Committed Change

    An event can describe a stored change to other components. Its publication contract should say how the event corresponds to the committed data.

    Undergraduate
  18. Event Order and Versions of a Record

    Services can receive events in a different order from the changes they describe. A version rule can help a consumer choose which update to apply.

    Undergraduate
  19. Pending and Confirmed Work as Durable States

    A service can track work as pending until it receives the confirmation its contract requires. These state changes support recovery after interruption.

    Undergraduate
  20. Assigning Records to Shards by a Key

    A shard rule chooses a partition for a record. Use the same routing basis for writes and reads under a compatible layout.

    Undergraduate
  21. Partitioning Data and Replicating Data

    Partitioning divides data across storage roles. Replication keeps several copies of selected data for another purpose.

    Undergraduate
  22. Overload and Service Unavailability

    A busy service can run and still fail to respond in time. A failed service may stop accepting work. Observations should guide the distinction.

    Undergraduate
  23. Measuring Successful Requests as a Fraction

    An availability measure can describe the fraction of eligible requests meeting a specified success rule over an observation interval.

    Undergraduate
  24. Checking a Service Release from the Public Boundary

    A release can finish building before the public service begins returning the intended new behavior. Verify the actual consuming endpoint.

    Undergraduate
  25. Observing Versions During a Progressive Rollout

    A rollout can serve requests from more than one software version during a transition. The application and data format may need to work across that overlap.

    Undergraduate
  26. A Time-Limited Claim for Background Work

    A lease can assign a job to a worker for a bounded period. The protocol must address what happens if the old worker continues past expiry.

    Undergraduate
  27. Choosing a Clock for Local Durations and Distributed Events

    Elapsed-time measurements and event timestamps have different requirements. Clocks on different hosts may disagree.

    Undergraduate
  28. Checking a Required Dependency Before Serving Work

    Starting a service process does not establish that every dependency needed for ordinary requests is ready.

    Undergraduate
  29. Queue Delay and Actual Processing Time

    A job's elapsed time can include waiting for a worker and the worker's own processing interval.

    Undergraduate
  30. Testing a Failure of One Service Dependency

    A controlled dependency failure can verify what the caller returns, which work is retained, and whether other features remain available.

    Undergraduate