Skip to content

The healthy dashboard for a broken customer journey

Failure story 22, in observability and recovery.

API availability was 100% all afternoon and no alert fired. Why were no orders delivered to the warehouse after 1 p.m.?

Assumption Value
Checkout API Validates the order, stores it and returns 202 Accepted within 200 ms
Fulfillment worker Picks up accepted orders and sends them to the warehouse system
Objective 99.9% of checkout requests succeed, measured at the API
Alerts On the API’s error rate and latency
Time What happens Dashboard
13:04 A credential used by the fulfillment worker expires. The worker can’t reach the warehouse, logs an error per order and moves on to the next. Green
13:05–17:30 Checkout keeps accepting orders: about 1,840. Every request returns 202. API availability: 100%
17:30 A store manager asks why the afternoon’s pick list is empty. Green
17:45 Someone finds the worker’s errors. Green

The dashboard was accurate. It measured whether the API answered, and it did. It didn’t measure whether the customer got what the answer promised.

202 Accepted means I’ve taken responsibility for this, not it’s done. Once a system hands work to an asynchronous step, the endpoint’s success says nothing about the outcome. The objective and the alerts were attached to the part of the journey that was easy to measure, the synchronous request, and none to the part where the promise is kept.

Aspect Design A: endpoint success Design B: an end-to-end objective
Objective 99.9% of checkout requests succeed 99% of accepted orders reach the warehouse within 5 minutes
Measured by The API’s status codes Each order’s time from accepted to received by the warehouse, plus the age of the oldest accepted order not yet delivered
This afternoon 100% 0% from 13:04
First alert None About 13:09, when the first accepted order passes 5 minutes undelivered

The oldest-undelivered-order signal matters as much as the percentage. A percentage needs completed orders to compute; when nothing completes at all, a percentage can look like no data rather than total failure. The age of the oldest waiting order rises steadily whatever the traffic.

Stop the fulfillment worker in a test environment and keep placing orders.

  1. Expected: the report shows how many accepted orders breached the 5-minute deadline, rising as orders arrive.
  2. Expected: it shows when the first alert fired, within a few minutes of the first breach, not hours later.
  3. Expected: the API’s own availability stays at 100% throughout, which demonstrates why it can’t be the only objective.

This check is in the checks catalog as test templates in Java and Python.

  • The endpoint does all the work synchronously, so its success is the outcome.
  • The asynchronous step’s failure is harmless and self-correcting, such as an analytics event that’s allowed to be lost.

Discussion question. For one of your systems, write down what the customer was promised at each step of a journey. Which of those promises does a dashboard measure today?

Exercise. Orders are rare overnight: sometimes none for 40 minutes. A team member worries that the end-to-end objective will either miss a midnight failure or alert falsely. How would you cover the quiet hours?

Worked answer

Two signals together. The oldest undelivered order’s age works at any volume: if a real order is waiting longer than 5 minutes, that’s a breach whether it’s the only order of the night or one of thousands, and if no order is waiting, there’s nothing to alert on. To find a broken pipeline before a customer is affected, add a synthetic order every few minutes that goes through the whole journey to a test destination in the warehouse system and is checked at the far end. A missing synthetic confirmation is a clear signal even when no real customer is ordering. Keep the synthetic results out of the business’s order reports.

Written and edited by Abhinav Taduka, enterprise software architect.