Quick revision
The short answer
Checkout failed because a derived, best-effort dependency, related products from the search cluster, was called synchronously on critical paths without a tight timeout or a fallback, so its outage became checkout's outage. We make every call to search optional: a timeout of tens of milliseconds, a circuit breaker and an empty or cached fallback, and none at all on cart and checkout. We also separate search workloads into their own clusters or node pools, classify dependencies by tier in design reviews, prove with fault injection that checkout works without search, and give search its own SLO and capacity plan.
What to remember
In this answer, we traced how a synchronous call without a short timeout let a search outage fill request threads and take down cart and checkout. We set the rule that derived dependencies are optional and stay off critical paths, added timeouts of tens of milliseconds, a circuit breaker, a bulkhead and an empty or cached fallback, separated interactive search from analytics and reindex work, classified dependencies by tier with fault injection to prove checkout works without search, and gave search its own SLO and capacity for peak load plus a reindex.
Your turn
Answer it aloud as you would in the interview, or type your answer below. Then show one part at a time and compare.
Checkout failed because a derived, best-effort dependency, related products from the search cluster, was called synchronously on critical paths without a tight timeout or a fallback, so its outage became checkout's outage. We make every call to search optional: a timeout of tens of milliseconds, a circuit breaker and an empty or cached fallback, and none at all on cart and checkout. We also separate search workloads into their own clusters or node pools, classify dependencies by tier in design reviews, prove with fault injection that checkout works without search, and give search its own SLO and capacity plan.
Why this question is asked
Outages that spread from a non-essential system into an essential one are among the most expensive kinds, because they are avoidable. Orders do not need search at all, yet checkout was down for 25 minutes at an evening peak. Interviewers ask this scenario to see whether we can name the design mistakes precisely, not just say add a circuit breaker, and whether we fix the process that let them in. In this answer, we will trace how the outage spread, set the rule for derived dependencies, implement timeouts, circuit breakers and fallbacks, separate search workloads, classify and test dependencies, and give search its own SLO and capacity plan.
1How a Search Outage Became a Checkout Outage
The related products widget was added to the product page and the cart, and its data came from a synchronous call to the search cluster in the same request that renders the page. When the search cluster slowed down at the evening peak and then failed, each call waited for the client's default timeout, often several seconds or more. Request threads in the product and cart services filled up waiting, the services stopped accepting new requests, and the cart, which checkout depends on, returned errors.
So there were three mistakes: a non-critical feature was on a critical path, it was called synchronously without a short timeout, and its failure was treated as a page failure instead of a missing widget. Possibly a fourth: the search cluster was shared with other heavy work and had no capacity for peak queries.
5 messages in order. Play them, or step through them one at a time.
2The Rule: Derived Dependencies Are Optional
A search index is a derived copy of data that lives elsewhere, built for discovery. Treating it as best-effort means two things. Critical paths, such as cart, checkout, payment and order confirmation, must not call it at all, or only behind strict limits with a fallback that renders the page without it. And every caller, even on non-critical pages, must survive its failure: the product page should show without related products rather than fail.
For the cart, the related products widget can be loaded separately by the browser after the cart has rendered, so even its latency stops affecting the cart.
3Timeouts, a Circuit Breaker and a Fallback
Each call to search gets a timeout sized to the feature, for related products tens of milliseconds, say 80 ms, not the library default. A circuit breaker counts failures and slow calls; when they pass a threshold, it opens and fails calls immediately for a while, so we stop sending load to a struggling cluster and stop waiting on it. The fallback returns an empty list or a recently cached result, and the page renders without the widget. A bulkhead, a separate small thread pool or concurrency limit for search calls, ensures that even slow calls cannot take every request thread.
In a Spring Boot service, Resilience4j provides these pieces, and the HTTP or search client timeouts must be set as well, because the breaker's time limiter alone does not stop the underlying request.
With this in place, the same search outage would have made related products disappear for 25 minutes while orders kept flowing.
4Separating Search Workloads
Search clusters often serve several kinds of work: interactive queries from the site, heavy aggregations for internal analytics, reindex jobs, and continuous indexing. If they share nodes, a big reindex or an analytics query can starve interactive searches. We separate them into different clusters or at least different node pools, with interactive traffic on its own nodes, analytics on another cluster or a replica, and reindex jobs throttled and scheduled. Then one workload's spike cannot take down the others.
- Tier 0: checkout, payment, order storemust work; no calls to lower tiers
- Tier 1: cart, product page core datadatabase and cache only
- Tier 2: search, related products, recommendationsoptional; timeout, breaker, fallback
- Tier 3: analytics, reindex jobsisolated clusters or node pools
4 layers, from the top down. Step through them one at a time.
5Classifying Dependencies and Proving It With Fault Injection
The process fix is to classify every dependency by tier in design reviews. A service on a higher tier may call a lower tier only with a timeout, a breaker and a fallback, and the review asks what the page does when that dependency is down. The answer must be written down and tested.
Testing means fault injection: in staging, and carefully in production, we make search unavailable or slow, with a tool such as Toxiproxy, a service mesh fault rule, or by blocking the search endpoint, and run the checkout journey. The test passes only if orders complete. Running such a test regularly, as a game day or in an automated suite, catches the next widget someone adds to the cart page.
6Search as Its Own SLO, With Capacity for Peaks
Finally, search deserves its own service level objective, such as 99.9 percent of queries under 200 ms, with its own dashboards and alerts, so its health is visible separately from the pages that use it. Capacity planning must cover the peak query load plus a reindex or a large update running at the same time, since that is a realistic evening on a busy site. The outage that started this was probably both a capacity problem and a coupling problem, and both need an owner.
7Follow-up questions
How would you find other places where a non-critical dependency sits on a critical path?
Start from distributed traces: for each critical endpoint, list every downstream call in its traces and mark each by tier. Any lower-tier call on a higher-tier path is a finding. Then confirm with fault injection, turning each optional dependency off in staging and running the critical journeys. Adding the tier of each dependency to the service catalogue and checking it in design reviews keeps the list current.
Is a circuit breaker enough without a timeout?
No. The breaker opens only after it has seen enough failures or slow calls, and until then each call waits for whatever timeout the client has. Short timeouts limit the damage of each call, the breaker stops calling once failure is clear, and the bulkhead limits how many threads can wait at once. They work together.
Should related products be cached?
Yes, they change slowly, so caching results per SKU for minutes or hours both reduces load on search and provides a good fallback during an outage.
8Conclusion
In this answer, we traced how a synchronous call without a short timeout let a search outage fill request threads and take down cart and checkout. We set the rule that derived dependencies are optional and stay off critical paths, added timeouts of tens of milliseconds, a circuit breaker, a bulkhead and an empty or cached fallback, separated interactive search from analytics and reindex work, classified dependencies by tier with fault injection to prove checkout works without search, and gave search its own SLO and capacity for peak load plus a reindex.
Open with
The core mistake was treating a derived, best-effort system as if it were critical. Related products came from the search cluster through a synchronous call on the product page and the cart, with no short timeout and no fallback, so when search failed at peak, threads piled up waiting and the cart and checkout went down with it, even though orders never need search.
Then, if they want more
I would fix it at several levels. Checkout and cart do not call search at all; the widget can load separately after the page renders.
Every remaining call gets a timeout of tens of milliseconds, a circuit breaker so we stop calling a failing cluster, a bulkhead so slow calls cannot use every thread, and an empty or cached fallback, so the widget just disappears. I would split search workloads so interactive queries do not share nodes with analytics or reindex jobs.
Then the process: classify dependencies by tier in design reviews, and use fault injection to prove that checkout completes with search unavailable, regularly, not once. Finally, search gets its own SLO and a capacity plan that covers peak queries with a reindex running at the same time.
About this answer
- Last updated
- 13 November 2026
- Checked
- Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the official documentation for the version you use. What the checks cover
- Where the question comes from
- Written by Scrivio for practice. It is not taken from an interview.
Report an issue with this answer
Copy the line below and send it to the author with what you found. It carries the address of this page.
Issue with "What design mistakes allowed a derived search index to take down checkout, and what do...": https://scrivio-interview-library.netlify.app/architecture/storage-and-pipelines/2efee0425a/