Reliability starts with user journeys, not individual services
At 18:02, a payment service in Johannesburg began returning intermittent 502 errors. The application dashboard looked healthy: CPU was below 40%, pods were ready, and the database had spare capacity. The actual failure was less obvious. A power…
Distributed System Reliability Engineering: Designing for Failure Across African Networks
At 18:02, a payment service in Johannesburg began returning intermittent 502 errors. The application dashboard looked healthy: CPU was below 40%, pods were ready, and the database had spare capacity. The actual failure was less obvious. A power event shifted traffic from a local availability zone to a European failover path, where latency to eu-west increased enough to trigger connection-pool exhaustion. Retries then amplified the load, while an alert based on average latency stayed green.
This is the practical territory of Distributed System Reliability Engineering: keeping a system useful when networks, dependencies, regions, power, and telemetry pipelines behave independently and sometimes fail together. The job is not merely to make each service reliable. It is to understand how failure travels across boundaries, then build enough evidence and control into the platform to stop a local problem becoming a regional incident.
Reliability starts with user journeys, not individual services
A service-level objective for an isolated API can hide a broken customer experience. A checkout request may cross an ingress controller, authentication service, fraud engine, payment gateway, message broker, and database before returning a result. Each component can report acceptable availability while the complete journey fails.
Start with a small set of critical paths and define reliability in terms a customer can recognise:
- Successful payment authorisation within a defined latency target.
- Order status remaining available during a downstream warehouse outage.
- Account login continuing to work when a non-essential recommendation service is unavailable.
- Telemetry remaining queryable during a regional network partition.
For each journey, record the expected dependencies, timeout budget, retry policy, fallback behaviour, and data-consistency requirement. This becomes a failure map rather than another architecture diagram. It also gives the on-call engineer a useful starting point: which dependency can be degraded, which one must be isolated, and which user action should be disabled first?
Grafana is most useful here when dashboards follow the journey rather than the Kubernetes namespace. A landing dashboard should show request success, latency by route, dependency health, saturation, and the region serving traffic. Drill-down panels can then link metrics to Loki logs and Tempo traces using shared service, route, and trace identifiers.
Design the failure boundaries before choosing the dashboard panels
South African estates often combine local data centres, one or more public clouds, branch connectivity, and external providers. Treating this as a single low-latency cluster is an expensive assumption. A Johannesburg workload may have a fast path to Cape Town, a slower path to London, and a last-mile connection that becomes unreliable during congestion or load-shedding.
Useful boundaries include:
- Power boundary: UPS, generator, utility, and site-level failure domains.
- Network boundary: campus, ISP, internet exchange, private link, and inter-region paths.
- Data boundary: primary database, replica, queue, object store, and backup location.
- Operational boundary: teams, deployment pipelines, credentials, and alert ownership.
- Regulatory boundary: data that may remain in South Africa and data permitted to cross borders under the organisation’s POPIA controls.
Every boundary needs an explicit response. If the Cape Town replica cannot be reached, does the application fail closed, serve stale data, or route to eu-west? If a payment provider slows down, does the checkout wait, queue the transaction, or offer manual follow-up? Reliability improves when these decisions are made before the incident.
Keep the control plane independent where possible. A monitoring system that depends entirely on the same network, credentials, and cloud region as the application may disappear precisely when it is needed. Prometheus agents can collect locally, while Mimir provides a horizontally scalable, Prometheus-compatible destination for longer-term and cross-region analysis. Local retention and buffering are valuable when links are intermittent or an upstream endpoint is unavailable.
Use metrics for symptoms, traces for the path, and logs for the evidence
Distributed System Reliability Engineering requires all three telemetry signals, but each answers a different question:
- Metrics: Is the service healthy, saturated, or outside its SLO?
- Traces: Where did the request spend its time, and which dependency introduced the delay?
- Logs: What decision, error, retry, or configuration value explains the behaviour?
Prometheus 3.0, released in November 2024, added stronger OpenTelemetry interoperability, including OTLP support.[1] That matters for estates gradually standardising instrumentation: teams can retain Prometheus-compatible alerting while adopting OpenTelemetry collectors and consistent resource attributes.
Keep labels bounded. Never place customer IDs, request IDs, email addresses, or arbitrary URLs in Prometheus labels. Those values belong in logs or traces. A safe metric might use service, route, region, and status_code; a Loki log can carry the high-cardinality request context; Tempo can connect the complete call chain.
A latency alert should expose the tail, not just the mean. For example:
histogram_quantile(
0.99,
sum by (le, region, route) (
rate(http_request_duration_seconds_bucket{job="checkout"}[5m])
)
) > 1.5
Pair this with an error-budget alert, because a briefly slow endpoint may be less damaging than a sustained stream of failed requests. Alert by region and route so that a eu-west failover is not averaged away by healthy Johannesburg traffic.
Make load-shedding and weak connectivity observable
Load-shedding-aware reliability is not a special dashboard theme; it changes the operating model. A site may remain reachable while its UPS runtime falls, generators start, cooling degrades, or network equipment switches paths. These signals should be available beside application health.
- UPS battery percentage and estimated runtime.
- Generator state, fuel level, and transfer-switch status.
- Power-source changes correlated with request errors.
- ISP path, packet loss, and round-trip latency by site.
- Queue age and backlog during disconnected operation.
Do not page on every power transition. Page when the transition threatens the SLO, when generator runtime crosses a tested threshold, or when redundancy has been lost. A warning that arrives during every scheduled outage will be ignored during the one that matters.
For branch and mobile users, monitor availability from multiple vantage points. A synthetic check from a Johannesburg office cannot represent a customer on a congested rural mobile network. Track DNS, TLS negotiation, time to first byte, and completed business transactions separately. The distinction helps engineers avoid “the API is up” arguments when the real issue is the path between the user and the API.
Control retries, queues, and failover like production capacity
Retries are not reliability by default. A retry consumes capacity, holds connections, and can turn a partial outage into a total one. Use deadlines that fit inside the user’s overall timeout budget, exponential backoff with jitter, and a maximum attempt count. Retry only operations that are safe or idempotent.
Bulkheads should protect critical traffic from optional work. Separate connection pools for payment and reporting, independent worker concurrency for priority queues, and circuit breakers around unstable providers all limit blast radius. A degraded recommendation service should not prevent login.
Failover also needs a measurable readiness state. A passive region with expired credentials, an untested schema, or an empty cache is not a recovery region. Test restoration regularly and measure:
- Time to detect and declare the failure.
- Time to shift traffic safely.
- Data loss against the recovery point objective.
- Recovery time against the recovery time objective.
- Customer-impacting errors during the transition.
Keep cost in the design. ZAR-denominated cloud bills make duplicated always-on capacity difficult to justify, but an under-sized failover environment is false economy. Mimir retention, Loki volume, and Tempo sampling should reflect investigative value. Sample routine successful traces more aggressively than failed or slow traces, and preserve exemplars that connect high-latency metrics to representative traces.
Turn incident evidence into safer engineering decisions
After an incident, the useful question is not “which pod failed?” It is “which assumption allowed this failure to propagate?” The answer may be an alert based on averages, a retry policy without a deadline, a dashboard that ignored region, or a failover plan that had never been exercised.
Write the timeline from telemetry, not memory. Correlate deploys, power events, route changes, queue depth, dependency latency, and customer symptoms. Loki provides searchable event context; Tempo shows the distributed path; Prometheus and Mimir establish when the SLO began burning. Grafana can place these signals on one incident view so that responders do not spend the first thirty minutes opening unrelated dashboards.
Recent observability surveys indicate that Prometheus and OpenTelemetry adoption continues to grow, with 71% of surveyed organisations reporting use of both in some capacity in 2025.[2] The technical direction is clear, but adoption alone does not create reliability. Consistent naming, useful ownership metadata, tested runbooks, and disciplined alert design do.
Distributed System Reliability Engineering is ultimately a practice of limiting surprise. Map the real failure boundaries, measure the user journeys, preserve evidence across regions, and make degradation deliberate. When the next power event moves traffic across an ocean, the system may still bend—but the team should know where it bent, why it bent, and how to bring it back without guessing.