Distributed Service Foundations
-
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.
-
Accepted Work and Completed Work
A service can acknowledge receipt of work before producing its final result. Give callers separate evidence for those states.
-
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.
-
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.
-
Stable Request IDs Across Retry Attempts
A stable request ID can refer to one intended operation across several deliveries or attempts.
-
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.
-
Backpressure on a Service Queue
Backpressure lets upstream work producers observe limited downstream capacity and reduce or delay submissions.
-
Arrival Rate and Service Throughput
The rate of incoming work and the rate processed determine whether a queue can absorb expected demand over time.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
Partitioning Data and Replicating Data
Partitioning divides data across storage roles. Replication keeps several copies of selected data for another purpose.
-
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.
-
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.
-
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.
-
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.
-
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.
-
Choosing a Clock for Local Durations and Distributed Events
Elapsed-time measurements and event timestamps have different requirements. Clocks on different hosts may disagree.
-
Checking a Required Dependency Before Serving Work
Starting a service process does not establish that every dependency needed for ordinary requests is ready.
-
Queue Delay and Actual Processing Time
A job's elapsed time can include waiting for a worker and the worker's own processing interval.
-
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.