the Failure Review
Questi contenuti non sono ancora disponibili nella tua lingua.
Module 4 of 5 in the chapter What I Would Architect, chapter 24 of the Integration Architect course. Each module stands on its own. Previous: The Course Is the Checklist · Next: Checkpoint 3: Steve Trucking, the Whole Integration Design
The question this module answers: How do you review an integration design for the day something fails, before that day comes?
Most design reviews look at a landscape where every arrow works. That’s reviewing the sunny day. But every arrow stops one day, and the design that matters is the one that’s running when it does.
So the review that’s most integration’s own is this one: take an arrow away, and see what happens next.
Pick the Arrows That Matter
Section titled “Pick the Arrows That Matter”You won’t walk every arrow in one review, and you don’t need to. Pick the ones where a failure hurts most:
- The busiest arrow, because its backlog grows fastest.
- The arrow a person waits on, because a failure there is a spinning wheel in front of a customer.
- The arrow with no undo, a payment, a message sent, a truck dispatched (chapter 15).
- The arrow a partner owns the other end of, because you can’t fix their side and may not be able to reach them.
- The arrow that crosses into another org or to an agent, because the failure has two owners.
- Any arrow that shares something: an identity, an allocation, a queue. A failure there spreads.
Three or four arrows, chosen this way, will find most of what a failure review can find.
Zoom Out, Then Mark It Red
Section titled “Zoom Out, Then Mark It Red”Put the landscape on the screen, every box in its place. Mark the arrow red, with an X. Then zoom in on it alone: the two systems and the call between them. Chapter 14 drew it for Steve Trucking, with Redrock’s webhook not answering on an ordinary afternoon (chapter 14).
The landscape view matters. It’s where you see what else that arrow touches: which other arrows wait on it, which share its identity, which spend from the same allocation. The zoomed-in view is where you ask the questions.
Walk the Clock
Section titled “Walk the Clock”Now walk forward in time. Chapter 1 gave you the clock: a minute, an hour, a day, a weekend (chapter 1). At each step, one question.
- The first call fails. Does anyone wait on it? What does the caller do with the timeout, and is a resend safe (chapter 14)?
- An hour. Where do the failed messages wait? Who has been told, and how did they find out: an alert, or a phone call from the business?
- A day. Does tomorrow’s run carry today’s gap, or start fresh and leave it behind? Does anyone downstream make a decision from data that’s now a day old?
- A weekend. Who can you reach on a Saturday, on both sides? Can you stop the arrow yourself? Chapter 13’s Saturday lockout is the story behind this question (chapter 13, chapter 14).
- Past the window. Platform events and change events are kept for 72 hours (chapter 11). After that, the oldest are gone, with no error. At what point does a gap on this arrow become data loss, and what’s the plan then (chapter 1)?
If the design has an answer at every step, the arrow is designed for its bad day. If it runs out of answers at “an hour,” that’s a finding.
Walk forward in time. Where the answers run out, that’s the finding.
Both Ends
Section titled “Both Ends”Then turn the arrow around. Every arrow has two ends, and each end has its own job when it fails. As I put it in class: whoever is the client takes responsibility for the connection. The client records the failures, logs the problems with security and credentials, handles the errors that come back from the remote system, and decides who to notify. The server has its own errors coming in: malformed data, its own timeouts, an extraordinary number of attempts that it needs to notice and log.
So for every arrow you take away, ask the questions on both sides. If your side calls a partner, your side owns the retry. If the partner calls you, ask what they’ll see when you time out, and whether their resend is safe on your side. Chapter 14’s reciprocal is the same habit (chapter 14).
Coming Back Is a Failure Too
Section titled “Coming Back Is a Failure Too”The arrow comes back. The review isn’t over, because recovery has its own ways to go wrong.
- How do you know what got through? Every message sent and never confirmed has to be found, not guessed at. That’s the return receipt (chapter 14).
- Which recovery, at which size? Replay one, catch up, or resync. It depends on the size of the gap, and it should be written down before the outage, not decided during it (chapter 14).
- Does the catch-up fit? Here’s the one reviews miss. When a day’s backlog drains, it spends the same shared allocations as every other arrow: API calls, event deliveries. A design running at 90% of an allocation on a normal day has no room to recover. That’s one more reason for module 3’s headroom rule: the 30% you leave free is also your recovery room.
- Is the order right? A backlog that drains out of order can overwrite a newer change with an older one. The newest change has to win.
When the Arrow Is an Agent or Another Org
Section titled “When the Arrow Is an Agent or Another Org”Two kinds of arrow need one more question each.
An arrow to another org. The other org can fail on its own, be restored, or move. What’s the recovery point, and does a restore change the record IDs your side is holding (chapter 21)?
An arrow to an agent. A delegated task can fail, be rejected, be cancelled, or never come back before your deadline. Walk each ending, and make sure the fallback chain ends with a person who sees the whole story (chapter 23).
Write It on the Card
Section titled “Write It on the Card”Every gap the walk finds goes on the review card from module 3, like any other finding: the area is failure and recovery, the question is the step where the answer ran out, and the finding is stated as a fact. “No one on Redrock’s side can be reached on a weekend” is a finding. “Support could be better” isn’t. Then a severity and an owner.
Hands-On: Take an Arrow Away From Checkpoint 2
Section titled “Hands-On: Take an Arrow Away From Checkpoint 2”Open the design from Checkpoint 2. Pick one arrow using the list above, and say why you picked it. Then:
- Mark it red on the landscape, and list what else it touches.
- Walk the clock: a minute, an hour, a day, a weekend, past 72 hours. Write one answer at each step, or write that there isn’t one.
- Turn it around: what does the other end see, and is its resend safe?
- Bring it back: which recovery size, how you’ll know what got through, and whether the catch-up fits the allocation.
- Write every gap on a review card, with a severity and an owner.
If you finish with an empty card, pick a harder arrow.
Beyond the exam. The exam asks about error handling for each integration option, and about escalation and recovery when an integration fails. The failure review is where you prove the design has those answers, arrow by arrow, before production asks the questions for you.
What an Architect Decides Here
Section titled “What an Architect Decides Here”- Which arrows to take away in each review, and why those.
- The answer at every step of the clock, for each one, at both ends.
- The point where a gap becomes data loss, and the plan before it.
- How each arrow recovers, at which size, and whether the catch-up fits the allocations.
- Who can be reached, and who can stop the arrow, on a weekend.
- Every gap on the card, with a severity and an owner.
Explore
Section titled “Explore”- Every Arrow, Out and In, chapter 14 module 1: zoom out, then zoom in, drawn on Steve Trucking.
- Escalation and Recovery, chapter 14 module 6: the Saturday lesson and recovery in three sizes.
- Plan for Failure, chapter 1 module 6: the clock, and the point where it’s data loss.
- Replay, Retention, Order, chapter 11 module 4: the 72-hour window.
