Chapter III · Area 09 of 12

Runtime & operations

The Question for Our ShopWhat does the shop do if the payment provider has not responded after one second?

Here you will find building blocks for stable runtime, controlled releases and the diagnosis of faults.

Three questions for every ongoing service

  1. How does the shop limit waiting time and load?

    Call protection

    After one second without a reply the shop stops waiting; payment P-731 stays open, and a retry uses pay-B-1042.

  2. How does the team know how the system is doing?

    Observing

    One trace links cart, payment and the shipping query; the goal: order confirmations visible within two seconds.

  3. How are changes delivered safely?

    Release & recovery

    A new tax rule first gets a small share of traffic; a backed-up order index is restored in isolation and reconciled with the payment system.

Known names – and where they are

This is how the building blocks hang together

Timeout, retry, circuit breaker, bulkhead and backpressure protect the service from the consequences of faults and overload. Observability shows their effect; SLOs, rollouts and recovery connect measurement with operational decisions.

Quality attributeObservabilityObservability combines signals that let you inspect a system's internal state.MechanismTimeout & Deadlinelimits the waiting time; signals show frequency and affected dependenciesArchitectural conditionRetry Stormshows up in growing call load and retry metricsPatternCircuit Breakerlimits calls and makes its state visible through signalsPatternBulkheadseparates resources; utilisation per pool shows where bottlenecks ariseMechanismBackpressurethrottles the inflow; queue length and processing rate show the pressureApproachService Targets: SLI, SLO & Error Budgettranslate operational signals into metrics, targets and responses to deviationsDecision spaceDeployment & rolloutuses metrics to assess the effect of a rolloutActivityRecoveryis triggered by signals and closed with verified metrics
Relations: Timeout & Deadline limits the waiting time; signals show frequency and affected dependencies; Retry Storm shows up in growing call load and retry metrics; Circuit Breaker limits calls and makes its state visible through signals; Bulkhead separates resources; utilisation per pool shows where bottlenecks arise; Backpressure throttles the inflow; queue length and processing rate show the pressure; Service Targets: SLI, SLO & Error Budget translate operational signals into metrics, targets and responses to deviations; Deployment & rollout uses metrics to assess the effect of a rollout; Recovery is triggered by signals and closed with verified metrics.

Your learning path through the area

Here you clarify what happens when the payment provider has not responded after one second. From this you derive deadlines, protection mechanisms, measurement targets and safe rollouts. Each building block shows its theme at our shop.

  1. Timeout & Deadline

    Standalone conceptProtection

    This is what you learnYou can model a timeout as the end of the waiting period and keep an unexplained result technically visible.

    In the shopThe order module passes an authorization to the payment module that calls up the external provider. The shop time budget ends after one second; the provider response arrives later.

    Timeout & Deadline Open
  2. Retry

    Standalone conceptProtection

    This is what you learnYou can define a limited repetition with appropriate errors, waiting times, and cancellation conditions.

    In the shopThe shop loads the shopping cart again after a short connection error. It repeatedly limits and shows the stored cart status after the last attempt.

    Retry Open
  3. Retry Storm

    Standalone conceptProtection

    This is what you learnYou can detect a repetition wave as a load amplification and contain it with coordinated limits and breaks.

    In the shopAfter a short interruption, shop clients and gateway send payment status queries simultaneously. A limited queue and random breaks distribute the re-traffic.

    Retry Storm Open
  4. Circuit Breaker

    Standalone conceptProtection

    This is what you learnYou can configure a Circuit Breaker to protect a disturbed dependency from additional call pressure.

    In the shopThe shop calls the external payment provider. After a series of technical errors, the breaker opens for further authorization attempts.

    Circuit Breaker Open
  5. Graceful Degradation

    Standalone concept

    This is what you learnPreserve usability through explicit priorities. Assess the result against this limit: Without agreed priorities, reduction can damage core value.

    In the shopThe shop example uses the existing shared database and seven modules. Any added service or deployment model is a hypothetical extension. During a traffic spike, shop checkout remains the priority. Live recommendations are disabled first, then product images use lower resolution, while price and payment validation continue. Product and operations teams agreed on this order in advance. A load test confirms that the core transaction remains stable within the assumed capacity. Optional features are restored in stages after load subsides.

    Graceful Degradation Open
  6. Fallback

    Standalone concept

    This is what you learnProtect specific functions with a deliberate substitute. Assess the result against this limit: A substitute path can return incorrect or misleading business data.

    In the shopThe shop example uses the existing shared database and seven modules. Any added service or deployment model is a hypothetical extension. The shop serves recommendations from a cache while its recommendation service is unavailable. The fallback affects recommendations only; cart, price validation, and payment follow their own rules. The result carries a timestamp, and use of the cached value ends after five minutes. Monitoring counts fallback responses separately from normal ones. Once the dependency recovers, the normal path resumes.

    Fallback Open
  7. Bulkhead

    Standalone conceptProtection

    This is what you learnYou can use separate resource quotas so that a slow shop function does not fully occupy other processing capacity.

    In the shopThe modular shop uses a worker pool for invoices and its own pool for order confirmations. Delayed invoices do not prove the order confirmation capacity.

    Bulkhead Open
  8. Backpressure

    Standalone conceptProtection

    This is what you learnYou can link in-depth work to the actual processing capacity available.

    In the shopAfter a discount promotion, orders arrive faster than invoice creation processes them. The shop limits the queue and throttles new background orders.

    Backpressure Open
  9. Load Balancing

    Standalone concept

    This is what you learnDistribute new work across suitable available targets. Assess the result against this limit: Poor health checks can remove healthy targets or retain unhealthy ones.

    In the shopThe shop example uses the existing shared database and seven modules. Any added service or deployment model is a hypothetical extension. The shop runs three web instances behind a load balancer. New cart requests are distributed, and instances with failing health checks temporarily receive no new traffic. In-flight payment requests remain traceable by business identifiers even if an instance fails. A load test checks distribution, zone loss, and restoration of healthy targets. The instance count is a test configuration, not a production capacity claim.

    Load Balancing Open
  10. Scaling

    Standalone concept

    This is what you learnAdjust capacity through justified resource changes. Assess the result against this limit: More resources can create another bottleneck or higher costs.

    In the shopThe shop example uses the existing shared database and seven modules. Any added service or deployment model is a hypothetical extension. Before a campaign, operations adds shop web instances after a test identifies CPU as the bottleneck. Order modules remain within the same application and continue using the shared database. A second test shows that database write capacity saturates before web capacity. The team therefore scales the database path separately and measures latency, queue depth, and cost. The assumed load values remain explicit test assumptions.

    Scaling Open
  11. Load Shedding

    Standalone concept

    This is what you learnPreserve core capacity during overload. Assess the result against this limit: Incorrect priorities can shed valuable work.

    In the shopThe shop example uses the existing shared database and seven modules. Any added service or deployment model is a hypothetical extension. Under heavy shop load, the search platform approaches its tested limit. The entry point rejects extra preview queries with a clear overload response, while order confirmation and payment status retain priority. The API ends waiting optional requests early instead of holding them in an unbounded queue. Dashboards measure rejection rate, latency, and successful core orders. As the queue drains, the system resumes accepting previews.

    Load Shedding Open
  12. Rate Limiting

    Standalone concept

    This is what you learnControl ingress against a measurable budget. Assess the result against this limit: A local limit does not protect against aggregate distributed consumption.

    In the shopThe shop example uses the existing shared database and seven modules. Any added service or deployment model is a hypothetical extension. During a campaign launch, search traffic rises sharply. The shop API permits 20 searches per customer account in ten seconds and maintains a separate aggregate budget for the search index. Excess requests receive a Retry-After value; checkout and payment routes do not share the search budget. Load tests cover bursts and distributed clients, while metrics report throttled calls by route and tenant.

    Rate Limiting Open
  13. Observability

    Standalone conceptMeasuring

    This is what you learnYou can combine metrics, logs and traces to match an operational question and derive a next test step from this.

    In the shopOrders take longer after a release. A trace links shopping cart, payment, and shipping query; metrics show the latency increase by version.

    Observability Open
  14. Deployment & rollout

    Overview & comparisonChange

    This is what you learnYou can plan a rollout with compatible versions, observable criteria, and clear return options.

    In the shopThe shop publishes a new tax rule initially for a small share of traffic. Old and new versions read the same additive database schema during the rollout.

    Deployment & rollout Open
  15. Serverless

    Standalone concept

    This is what you learnDesign operation on managed infrastructure with explicit limits. Assess the result against this limit: Provider limits and execution costs shift operational effort.

    In the shopThe shop example uses the existing shared database and seven modules. Any added service or deployment model is a hypothetical extension. A hypothetical extension to the example shop sends an event to a serverless invoice function after order acceptance. The function creates the document and stores it in its own storage area; the existing shared shop database and its seven modules remain unchanged. A burst of orders can trigger concurrent starts, so the team limits concurrency and checks broker retries, idempotency, execution budget, and cost per invoice.

    Serverless Open
  16. Recovery

    Standalone conceptChange

    This is what you learnYou can schedule a recovery process based on recovery goal, verified data, and business verification.

    In the shopAn error damages the order index. The team restores a secure stand in an isolated environment and compares orders with the payment system.

    Recovery Open
Afterwards in the learning path · area 10Security & Trust Boundaries