How I Solve an Integration Scenario
Это содержимое пока не доступно на вашем языке.
Module 1 of 5 in the chapter What I Would Architect, chapter 24 of the Integration Architect course. Each module stands on its own. Next: Review Early and at the Gates
The question this module answers: How does an integration architect work a scenario from the first read to a design they can defend, arrow by arrow?
You’ve worked through every piece of this course. Clients and servers, contracts, the landscape, requirements, patterns, the doors in and out, data at scale, events, trust, failure, orchestration, other orgs and agents. Then someone hands you a scenario: a company, its systems, its partners, its volumes, and a list of requirements, some of which pull against each other. Where do you start?
Knowing each piece isn’t the same as designing the whole. When I teach architects preparing for the CTA review board, I say solving a scenario is like a Rubik’s cube: you keep turning every piece until the whole thing fits one design. What you need is an order to work in, so the decisions you make first are the ones everything else depends on.
Read to the Bottom First
Section titled “Read to the Bottom First”The first rule is the simplest, and people break it all the time: read the whole scenario before you draw anything.
Scenarios have a shape. A project overview, the current landscape, the business use cases, then requirements: security, access, reporting and the rest. And there’s almost always something near the end that changes an arrow near the top. A partner joining next quarter. A rule about how long a photo can be kept. A company being bought that has its own org. If you designed the partner integration on page two, you’ll be redesigning it on page eleven.
As an integration architect, I also read for what the scenario doesn’t say out loud:
- Which systems aren’t Salesforce, and which of them can start a call and which can only answer one (chapter 5).
- The volumes, even when they’re hidden in the story: “a few thousand deliveries a day” is a number, and so is “every truck reports its position” (chapter 6).
- The legacy system. There’s nearly always one, with data to bring across or to keep in step for a while.
The Single Big Decision First
Section titled “The Single Big Decision First”Before any arrow, one decision: one org or many? It’s the biggest decision you’ll make in the first few minutes, because everything else depends on it: reporting, data privacy, and how many arrows you’re about to draw between your own orgs. Chapter 21 teaches it; here, just make it first, and say why.
Then the Landscape
Section titled “Then the Landscape”Then I ask myself the question I ask every class: which of my diagrams solves this beautifully? Landscape. It’s the landscape.
Draw the current state first: every system, every box in its place, every arrow you already know about (chapter 5). Then the target. On my Architect Dreamin’ slide, the landscape had three jobs: build the correct bones, see where the data is going, and decide what’s on platform and what’s off it. That’s the frame. Get the boxes right, and the arrows have somewhere to go.
Two habits from earlier in the course matter here. The arrow points from the system that starts the call (chapter 5). And whatever moves data between two stores is a process, so it gets a box: a warehouse doesn’t fetch from Salesforce on its own.
Then the Arrows, One at a Time
Section titled “Then the Arrows, One at a Time”Now take the arrows one at a time. Not all at once, and not in the order you happen to notice them. Pick one, finish it, then the next.
For each arrow, the same questions, in the course’s order:
- What’s the requirement? Its shape and how soon (chapter 6), and its Number of Zeros, today and three years out.
- Which pattern, then which mechanism? Pattern first, then what carries it (chapter 16).
- Who is the call made as, and how does it authenticate (chapter 13)?
- What happens when it fails? Log, tell, retry, and who gets told (chapter 14).
- Write it down. One record per arrow (chapter 16).
Solve in an order; take the arrows one at a time, each through the same five questions.
And when you say it, say it the way I tell my classes: the words that come out of your mouth should blend the requirement with the solution, in the context of the whole design. Not “I’ll use an Apex callout.” Instead: “The credit check has to answer while the rep waits, so it’s a synchronous callout from the page, with a five-second timeout and a fallback that lets the order continue as pending.”
Here’s a question I ask the room. I say I’ll do a callout to the credit check. Why? And what kind of callout? Who can tell me three ways to call out of Salesforce that are completely different? If you can only name one, you’ll design every arrow with it. Chapter 9 has the map.
Concrete Words, Not Buzzwords
Section titled “Concrete Words, Not Buzzwords”In a design review, and on any review board, I may ask about any arrow. How does it authenticate? How is the data flowing? Synchronous or asynchronous? I want to hear concrete things.
Here’s the one I use. Someone says, “We’ll publish a platform event, fire and forget.” I love fire and forget. But that doesn’t answer my question. So I ask: what happens when the subscriber goes down and comes back? The answer I’m listening for is precise: “I store the last replay ID I processed, and I send it when I reconnect, within the 72-hour window” (chapter 11). Say that, and I’m done. Move on.
If the answer is “it’s a queue, so it’s fine,” I ask a second question, and maybe a third. I’m not trying to catch anyone out. I’m checking whether they know what they’re saying, or are reading the buzzwords. A reviewer can tell the difference in about two sentences, and so can the developer who has to build it.
So for every mechanism in your design, know the one detail that proves you’ve used it: the replay ID for events, the external ID for an upsert, the named credential for a callout, the job ID for a Bulk load. If you’ve never used it, learn that detail before you put it on the landscape.
Draw What You’ll Defend
Section titled “Draw What You’ll Defend”The artifacts carry the design. For integration, the ones I build are:
- The system landscape, current and target.
- A swim lane for any flow that crosses several systems in order, each call with its answer underneath.
- The arrow records, one per arrow.
- The sign-in flows where identity is the hard part.
Then tell one clean story with them. Start on the landscape, pick an arrow, go to its swim lane, come back. What I don’t want to see is someone jumping from the landscape to a sign-in flow to a data model and back, with no thread. If I’m thinking “where is this person going?”, the design is fine and the story isn’t.
Balance It, Review It, Then the Curveball
Section titled “Balance It, Review It, Then the Curveball”Three more steps, each taught elsewhere and brought together here.
Balance it. On my Architect Dreamin’ slide: there may be ten ways to solve a problem. Five may be wrong immediately, two may go bad in a year, and two or three may be viable. Your job is one of the viable ones, with its sub-optimal parts chosen on purpose (chapter 16).
Review it before you call it done. Modules 2 to 4 of this chapter: when to review, what to ask, and how to take an arrow away and see what breaks.
Expect the curveball. Real projects change late: a new partner, an acquisition, a new rule about data. A design that was built arrow by arrow, with every arrow written down, absorbs a late change one arrow at a time. A design that was built all at once has to be redone all at once.
That’s what “what I would architect” means. Not the only answer: a possible viable solution, with its trade-offs said out loud. Module 5 works the whole order on Steve Trucking.
Beyond the exam. The Integration Architect exam asks you to identify the trade-offs, limitations and constraints of a proposed solution. This module is the order that gets you a solution worth asking that about: the landscape first, then each arrow with its requirement, mechanism, identity and failure plan, said in concrete words.
What an Architect Decides Here
Section titled “What an Architect Decides Here”- The single big decision, one org or many, made first and said with its reason.
- The landscape, current and target, with every box in its place.
- For every arrow: the requirement, the pattern and mechanism, the identity, the failure plan, and its record.
- The one concrete detail you can give for every mechanism you choose.
- The story the artifacts tell, in order.
- Where the design is sub-optimal on purpose, and why.
Explore
Section titled “Explore”- One Org or Many, From the Integration Side, chapter 21 module 1: the single big decision.
- The Landscape as an Inventory, chapter 5 module 6: current state first, four answers per arrow.
- Pattern First, Then Mechanism and Write the Design Down, chapter 16: the order and the record.
- Replay, Retention, Order, chapter 11 module 4: the replay ID and the 72-hour window.
