By Chason ArthurRevision 138.057Published Updated

Go / Distributed systems / Recovery

Compare the choices.

Choose a pattern by the failure it addresses. Several safeguards can be necessary at once.

Which approach fits the problem?

Patterns and tradeoffs
ApproachUseful whenDecision or limitation
Attempt timeoutBound one downstream waitDoes not bound all retries by itself
Request deadlineBound an entire operationEvery layer must propagate and observe it
Retry budgetCap extra attemptsRequires transient-error and operation-safety rules
BulkheadBound concurrent dependency workNeeds a policy for rejected or queued requests
Circuit breakerSkip calls while a dependency appears unhealthyRequires recovery probes and suitable thresholds
Load sheddingReject excess work before consuming scarce capacityMakes an explicit availability tradeoff

Which environment should you use?

Execution environments
EnvironmentWhat you can doScope
This browser labClick, compare, reset and inspect exact sourceActual Go runs as WebAssembly with timed in-process dependency calls. The native download uses real loopback HTTP. These fixtures show control flow and cleanup; they are not a multicore benchmark, a network-fault simulator or a production capacity result.
Independent downloadRun the same prebuilt lab with Python’s local serverNo package installation or automatic external calls needed for the prebuilt preview
Native exerciseRun language tests and the included local adapter or scriptRequires the documented local toolchain; does not provision a cloud service

A comparison you can reproduce

The safe implementation allows at most three dependency calls in flight and returns with zero active calls. Recovery eventually permits successful probes. Shed requests are counted separately from work that started and failed.

What this adds to a conventional tutorial

Begin with an observable outcome, inspect the decisions that produced it, then test a repair. The companion tutorial explains the mechanism; the how-to guide takes the same source into an independent environment.

Read the primary documentation

Customer.io’s backend role emphasizes Go systems, recovery, backpressure and reliability tradeoffs.

Related role from the job review

Choose your next step

Build the safeguards

Eight explained steps, a source example and a checkpoint at each decision.

Read the tutorial

Compare the alternatives

Understand where each pattern helps and which tradeoffs remain.

Compare approaches

Run and extend it locally

Download the independent environment, run the native checks and try a specific extension.

Open the how-to guide