Backend Architecture
Putting it together: multiple-choice review
Six questions that cut across the whole backend track at once. None tests a single mechanism in isolation — each puts two or three of them on the same request, under the same load, and asks you to read the interaction the way you would in a real incident.
Confirm you can reason about the seven mechanisms as one composed system: how a correct part becomes another part’s bad input, how the timeout budget threads the stack, why goodput beats throughput, and why readiness is verified, not felt.
Every one of the seven backend mechanisms passes its own tests, yet the team's worst incidents come from places no single mechanism explains. What is the capstone's diagnosis?
A payment provider's p99 climbs from 40ms to 4s — no errors, just slow answers. Minutes later endpoints that never call the provider are also slow. Which mechanism's correct behaviour propagated the fault, and through what?
A POST /payments handler has a 3-second total budget set in middleware, but the downstream provider call, the pool acquire, and the DB write each carry their own 3-second timeout. Why is this wrong even though every individual timeout looks reasonable?
During a cascade the slow provider fully recovers — latency back to 40ms — but the service stays collapsed. What does this reveal, and what is the right response?
A service is past saturation — demand exceeds capacity — and currently accepts and queues every request. Why does adding fast 503-with-Retry-After shedding at the edge increase the number of users served well?
A readiness review on a complex new payment service comes back 'all eight gates fully green, no caveats.' Why is a senior reviewer more skeptical than reassured?
The through-line across the track is one claim: composition is not addition. A correct pool draining under a slow downstream becomes the breaker’s bad input; a correct retry becomes a storm; a correct drain races a stuck in-flight job. The timeout budget must nest down the stack so the innermost slow thing fails first; under overload you protect goodput by shedding the excess on purpose; you can only operate what you can see at the p99 tail, not the mean; and readiness is a checklist calibrated to blast radius, not a feeling. Senior backend work is reading the interaction graph before it cascades.