Bỏ qua để đến nội dung

Steve Trucking, the Whole Integration Design

Nội dung này hiện chưa có sẵn bằng ngôn ngữ của bạn.

Module 5 of 5 in the chapter What I Would Architect, chapter 24 of the Integration Architect course, and the end of the course. Previous: Take an Arrow Away: the Failure Review

The question this module answers: Put every Steve Trucking integration on one page, review it, then absorb three late changes: what holds, and what changes?

Try it first. The challenge is on the Checkpoint 3 practice page. Do it before you read on, then compare your reasons, not just your arrows.

The Single Big Decision, Then the Landscape

Section titled “The Single Big Decision, Then the Landscape”

Module 1’s order, from the top. The single big decision: one org. One US company, one operation, and nothing in the brief that asks for its own hosting. That holds until section 9, and we’ll come back to it there.

Then the landscape: Salesforce in the middle with Field Service and the partner portal; the integration layer in front of it as its own box; the three Retail Partners and the SMS and email provider bottom right; FleetLink, Snowflake, the finance ERP and the photo store on the right. Every box is where chapter 14 drew it (chapter 14). Part 3 added two things to it: Snowflake is fed by a process, the integration layer, never by itself; and there’s one new caller, the Recipient assistant on the tracking page, with one tool.

Checkpoint 3: the landscape absorbs the late changes Steve Trucking's landscape in the same places as chapter 14's, in three frames. Frame 1, the whole design: people on the left, Salesforce in the middle with the integration layer in front, the community sites, the systems on the right (Snowflake, FleetLink, the finance ERP, photo storage, the RouteDesk archive), and the partners and providers bottom right (Redrock, Keystone, Brightwave, and the SMS and email provider). Frame 2, the fourth partner: Oakline appears bottom right, with its own API that we call, its Recipients' data deleted at 30 days; two arrows start at the integration layer: C10, manifests, we ask, and C11, status out. Frame 3, the acquisition: Gulf Coast's own Salesforce org appears beside Steve Trucking's, running as it is in year one; one emphasized arrow carries its deliveries to the integration layer and on to Snowflake. Underneath: a fourth partner is two arrows we start; an acquired org is one more arrow to the warehouse; nothing else moves. {"author": "Steve Simpson", "blueprint": "1.0.0", "builder": "standard 1.59.0", "built": "2026-11-21", "id": "DGM-INT-WA-51", "rights": "\u00a9 2026 Twinshark LLC. All rights reserved.", "template": "system-landscape 0.13.0", "theme": "stevetecharc 1.4.0"} ABOVE: IDENTITY, APPEXCHANGE, WEB PEOPLE RIGHT: INTERNAL SYSTEMS BELOW: CUSTOMER CHANNELS BOTTOM RIGHT: PARTNERS AND PROVIDERS Dispatch coordinators 45, inside 9 partner DCs Delivery crews ~700 on 330 trucks Care and office staff 100: service, ops, finance Retail Partner users ~300 at 3 partners Recipients ~1 million a year Corporate IdP SSO for office staff only Retail Partner portal Tracking page INTEGRATION Snowflake status history, analytics FleetLink raw GPS stays here Finance ERP invoices partners, pays crews Photo storage 4–5 million a year, off core RouteDesk archive retired; 8 years of history Phone care agents Email email-to-case SMS and email provider day-before message, with a link Redrock REST API, webhooks Keystone CSV over SFTP Brightwave EDI through a third-party network Oakline its own API: we call it; data deleted at 30 days Salesforce Field Service, one US org Gulf Coast org acquired; runs as it is in year one a link, no login office staff only calls cases in manifests in manifests in status out manifests in status out upserts, partner key status events status events latest position only delivery counts delivery counts photos, from the crews' app day-before, with a link C10: manifests, we ask C11: status out deliveries, to Snowflake Salesforce a community people identity, apps, web an internal system a customer channel the integration layer starts at the system that opens the connection; the label says what moves a shared certificate: trust, no direct call one view: Gulf Coast's deliveries join the warehouse A fourth partner is two arrows we start. An acquired org is one more arrow to the warehouse. Nothing else moves. © 2026 Twinshark LLC · stevetecharc.com
Click to enlarge

The landscape absorbs the late changes: two arrows for Oakline, one for Gulf Coast. Nothing else moves.

Checkpoint 2 gave every arrow its mechanism, its identity and its failure plan (chapter 16). Nothing in Part 3 changed a single one of them. Here they are on one page, with what Part 3 added:

ArrowPattern and mechanismSigns in asWhen it fails
Redrock’s manifests in (C1)Remote Call-In: Composite, sets of 200, upsert by the partner keyThe layer’s manifests userRedrock resends; the key makes it an update
Keystone’s and Brightwave’s manifestsBatch Data Synchronization: files through the Bulk APIThe bulk-loads user, off between runsCounted in and counted out before the file is done
FleetLink’s latest positionRemote Call-In: one Composite call a minuteFleetLink’s own user, trucks onlyAn alert when the calls stop
Status changes out (C2 and the others)Fire and Forget: change events on a filtered channel to the layer, then to each partner its own wayThe layer’s status userReplay from the last replay ID within 72 hours
Status events to Snowflake (C7)The layer passes the same stream onThe layerReplay, then resync from the last known-good time
Delivery counts to finance (C9)Batch Data Synchronization: one query a dayThe layerRun the day again; a day’s counts replace that day’s
PhotosFire and Forget: the crew’s app straight to the photo storeThe crew’s app, not SalesforceRetried when signal comes back
The day-before messageFire and Forget: a platform event to the layer, which calls the providerThe layerSame key on every retry
The Recipient assistant (new)One tool: this delivery’s confirmed window, nothing elseIts own minimal agent userIt says “not yet confirmed”

The assistant is the only new arrow, and it’s a tool, not a colleague (chapter 23). Its words are its contract, and its allowlist has one entry (chapter 22).

Now I do what I tell every team to do: review my own design, at year three, against 70% of every shared limit (module 3).

Checkpoint 2’s event meter was the one to watch. Today, with the add-on: about 29,700 deliveries a day against 125,000, about 24%. At year three: about 65,300, about 52%. Inside 70%, with room. The API allocation, in chapter 6’s “what if,” is a few thousand calls against 300,000: nowhere near.

Then I take an arrow away (module 4). I pick FleetLink, because a coordinator’s five-minute late alert (R13) depends on it, and nobody is waiting on its calls, so nobody will notice they’ve stopped. Walk the clock: a minute of silence is normal. Ten minutes during delivery hours isn’t. Checkpoint 2 said “an alert when the calls stop,” and then listed the threshold as something to settle later. It’s still not settled. That’s a finding, and it’s mine.

Here’s the card, with my three most important findings. Two of them come from the late changes below, so read the card again after them.

AreaQuestionFindingSeverityOwner
Volume and limitsHow close do event deliveries run to the allocation at year three?With Oakline, about 87,000 a day against 125,000: about 70%, right at the lineFix with a date: before a fifth partner signsIntegration architect
Identity and keysDoes the 30-day deletion reach every copy?The layer’s payload logs and failed-message queue keep Recipients’ names and phones for 30 daysFix before Oakline goes liveIntegration layer lead
Failure and recoveryDoes every arrow tell someone when it goes quiet?FleetLink’s silence threshold is still not setFix before the next gateOperations lead

Oakline Furniture wants to be live at three DCs in 90 days, with about as many deliveries as each of the others, about 1,100 a day. Its manifests come from its own API, which we call, and its status goes back the same way. Its brand on the tracking page and the messages. Recipient personal data deleted 30 days after delivery.

The Data Architect course counted what Oakline costs the data model: nothing new, one sharing rule, and two contracts, C10 for its manifests and C11 for its status. From the integration side, those two contracts are the work. Let’s open them.

C10, Oakline’s manifests in. Every partner so far has come to us: Redrock calls our API, Keystone and Brightwave drop files. Oakline is the first partner we call. That changes one question more than any other: who keeps our place in Oakline’s data? We do. The layer asks Oakline’s API every five minutes for manifests created or changed since the last time it asked, and stores that point only after a page has been loaded. If the layer is down for an hour, it asks again from the same point, and nothing is missed. It’s the replay ID idea from chapter 11, except now we hold the bookmark for someone else’s data (chapter 11).

A partner we call: we keep the place Oakline's manifests, zoomed in, in three frames. Frame 1: the integration layer, which starts it, asks Oakline's API every five minutes for changes since its stored point: "changes since 07:55?" Oakline's API holds the manifests in Oakline's own format. Frame 2: the layer maps them and upserts them into Salesforce in one Composite call by the partner key, then, in green, stores the point, only after the page is in: 08:00. Frame 3: Oakline's API is down from 8 a.m. for two hours; the call is red with an X, no answer. In green: back at 10 a.m., the layer asks again from 08:00, and nothing is missed. Underneath: Redrock calls us; Oakline we call. When we call, we keep the place, like a replay ID for someone else's data. {"author": "Steve Simpson", "blueprint": "1.0.0", "builder": "standard 1.59.0", "built": "2026-11-21", "id": "DGM-INT-WA-52", "rights": "\u00a9 2026 Twinshark LLC. All rights reserved.", "template": "cells 0.5.0", "theme": "stevetecharc 1.4.0"} INTEGRATION LAYER OAKLINE Every five minutes ask for changes since the stored point starts it Map, then upsert one Composite call into Salesforce, by the partner key Then store the point only after the page is in: 08:00 Oakline's API, down from 8 a.m., for two hours Back at 10 a.m. ask again from 08:00: nothing missed no answer Redrock calls us; Oakline we call. When we call, we keep the place, like a replay ID for someone else's data. HOW TO READ IT what makes it safe red with an X: the call failed © 2026 Twinshark LLC · stevetecharc.com
Click to enlarge

When we call the partner, we keep the place.

Five minutes meets R4: a change after routing reaches the coordinator in minutes. And the count is small: 144 polls a day at most over a twelve-hour day, each one a call to Oakline, not to Salesforce. Each poll that finds changes becomes one Composite upsert into Salesforce, by the partner key with Oakline in the value, through the same path as Redrock’s.

The mapping lives in the layer. Oakline’s format is its own. The layer maps it once to the delivery shape every other partner already lands in, so Salesforce never learns that Oakline exists as a format. That’s what makes O3 possible, a new partner in weeks: a new connection and a new mapping, and everything behind them reused (chapter 18).

C11, Oakline’s status. The same filtered stream of status changes that feeds every partner. The layer passes Oakline’s on by calling Oakline’s status API: about 8,800 calls a day today, about 19,300 at year three. That’s Oakline’s limit to know, not ours, so it’s a question for Oakline’s team on the first call, written into the contract (chapter 6).

Identity. One new credential. Oakline gives us one for its API, and it lives in the layer’s vault, with its expiry date in the inventory (chapter 18). On the Salesforce side, nothing new: Oakline’s manifests are upserted by the layer’s manifests user, like every other partner’s, because the job is the same job (chapter 13).

The brand is data on Oakline’s account: its name, logo and colors, and the sender name the layer passes to the SMS and email provider with every message. The next partner that asks for its brand is a new set of values, not a new integration.

The 30 days. Data Architect’s answer is a retention period on every partner’s account, and one job that clears what’s past it. That clears Salesforce. The integration architect’s job is every other place the arrows put a Recipient:

  • The layer’s logs and its failed-message queue. Payloads kept for troubleshooting are copies. That’s finding two on the card: keep them days, not months, or log without the personal fields.
  • The SMS and email provider. It keeps the phone number and the message. Its retention is a line in the provider’s contract, agreed before Oakline’s first text.
  • The photo store. Oakline’s photos go at 30 days. L3 sets the general rule below.
  • The status stream to Snowflake. It carries the status, not the Recipient. Keep it that way: no personal field gets added to the filtered channel without a review.

Then the meter, with Oakline. Today: 4,400 deliveries a day, 35,200 status changes and 4,400 day-before messages: about 39,600 event deliveries a day, about 32% of 125,000. That’s a third of the limit, exactly where my rule wants today. Year three: about 87,000 a day, about 70%. Right at the line. It fits, and it leaves no room for a fifth partner. That’s finding one on the card: the second add-on goes into the budget before partner five signs, not after.

The event meter, with Oakline Three columns of 100 squares, each square 1% of 125,000 event deliveries a day, with a dashed line at 70% in every column. Before Oakline, at year three: 65,300 a day, 52 squares filled. With Oakline, today: 39,600 a day, a third, 32 squares. With Oakline, at year three, in amber and marked at the line: about 87,000 a day, 70 squares, right at the 70% line. Underneath: Oakline fits, and uses up the margin; the next add-on goes in the budget before a fifth partner signs. {"author": "Steve Simpson", "blueprint": "1.0.0", "builder": "standard 1.59.0", "built": "2026-11-21", "id": "DGM-INT-WA-53", "rights": "\u00a9 2026 Twinshark LLC. All rights reserved.", "template": "units 0.3.0", "theme": "stevetecharc 1.4.0"} each square = 1% of 125,000 event deliveries a day 70% 52% Before Oakline, year three 65,300 a day 70% 32% With Oakline, today 39,600 a day: a third 70% 70% at the line With Oakline, year three about 87,000 a day Oakline fits, and uses up the margin. The next add-on goes in the budget before a fifth partner signs. © 2026 Twinshark LLC · stevetecharc.com
Click to enlarge

Oakline fits, and uses up the margin.

Steve Trucking is buying Gulf Coast Home Delivery: 120 trucks, about 1,200 deliveries a day, its own Salesforce org, two of the same Retail Partners. Leadership wants one view of each shared partner’s deliveries within a year.

First, the single big decision again. It just changed. One org became two. But read the requirement: one view, not one org. Chapter 21’s question is the right one: what’s the smallest set of arrows that gives one view (chapter 21)?

The Data Architect course weighed the four ways across and chose to integrate into the warehouse for the first year. From the integration side, I agree, and here’s the arrow. Gulf Coast’s org publishes its completed deliveries and status changes to the integration layer, which passes them on to Snowflake beside Steve Trucking’s, the same way C7 does. Redrock’s deliveries from both carriers sit side by side under Redrock’s own reference, which both carriers already carry, with a carrier column added.

Three integration questions decide whether that arrow is sound:

  • As whom? One integration user in Gulf Coast’s org, for this arrow only. The layer gets a second org connection, with its own credential. Nothing in Steve Trucking’s org changes.
  • Against whose allocation? Gulf Coast’s. Its events are delivered from its org, so they spend its event allocation, not ours. And I don’t know its edition yet. If it’s Enterprise Edition with no add-on, about 9,600 status changes a day today is under 40% of 25,000, and about 21,100 at year three is about 84%. Over my line. So for year one, either the add-on goes on Gulf Coast’s org, or the arrow sends only completed deliveries and their final status, which is what “one view” needs, as one query an hour. I’d ask the edition in the first week, and decide then.
  • Why not connect the two orgs directly? Salesforce Connect’s cross-org adapter is good for a coordinator looking up one delivery. “Each shared partner’s deliveries” is a report, not a lookup, and every look would spend Gulf Coast’s API calls (chapter 21).

Consolidating the two orgs is a program of its own, with its own business case, later, if the operations converge. It isn’t hidden inside “one view.”

L3: Photos, and What the Assistant Can Say

Section titled “L3: Photos, and What the Assistant Can Say”

Photos showing people: no longer than 90 days. Photos of the installed item: kept for the warranty period. Data Architect’s answer is that a photo knows its rule at the moment it’s taken: the install step that asked for it tags it install, with the product, and every other photo is tagged delivery.

The integration question is how that tag travels, and what happens when the photo is gone.

  • The tag travels with the upload. The crew’s app sends the photo straight to the photo store, as it already does, with its tag, its partner and its date as the photo’s own metadata. The store’s own retention rules delete by tag and partner: delivery photos at 90 days, 30 for Oakline; install photos at the end of the warranty. No process in the middle has to remember.
  • Then Salesforce’s link goes stale. The org keeps a link and a few facts for each photo, and the tracking page shows them. When the store deletes a photo, the link points at nothing. So the store’s deletions come back as an arrow of their own: once a night, the layer asks the store what it deleted and marks those photos “removed” in Salesforce, so the page says so instead of showing a broken image. Two systems, one deletion, checked every night (chapter 21).

The assistant. Three things it must never do: promise a time dispatch hasn’t confirmed, reveal another Recipient’s address, or share a partner’s order details beyond that one delivery. Data Architect’s answer is that the boundary is the action’s output, and from the integration side that’s a tool contract (chapter 22):

  • One tool, one delivery. The tracking link’s token names the delivery; the tool returns only that delivery. There’s no search tool and no list of stops on the allowlist.
  • Only what’s confirmed. The tool returns the window dispatch confirmed, or “not yet confirmed.” It never returns an estimate for the agent to round up into a promise.
  • A fixed set of fields. Items, status, window, photos after delivery. Not the manifest, not prices, not the partner’s other orders.

And someone owns the outcome. When the assistant gets it wrong, the owner of the tracking page, the front door, answers to the Recipient (chapter 23).

The challenge asked for it: a Retail Partner’s API is down for two hours from 8 a.m. Take Oakline’s, because it’s the newest and the only one we call.

  • The first call fails. Nobody waits on it. The poll fails; the layer keeps its place and tries again in five minutes. The status calls to Oakline fail; they wait in the layer’s queue, retried with longer gaps, and the breaker opens.
  • An hour. Today’s manifests arrived yesterday, so the trucks are loaded and moving. What’s missing is revisions: a cancelled order or a changed address that Oakline made at 8:30 doesn’t reach the coordinator. Oakline’s DC coordinators are told by 8:30 that revisions are paused, and Oakline’s team is called (chapter 14).
  • Two hours, back. The poll asks from its stored point and gets every change it missed. The queued status calls drain, oldest first, and the newest status wins: about 1,500 calls in a burst, which is Oakline’s rate limit to know, so the layer drains at the pace the contract allows.
  • What’s lost? Nothing, if the place was stored after each page and every status call is safe to repeat. Who owns the recovery? The integration layer’s team, with Oakline’s named contact, both in the runbook before go-live.

Here’s what I would architect, after all of it.

What held: every arrow from Checkpoint 2. Not one mechanism changed for Part 3, for Oakline, for Gulf Coast or for the photos. The patterns from Part 1, the mechanisms from Part 2, the identities, the failure plans. A fourth partner was two contracts and a mapping. An acquisition was one more arrow to the warehouse. A legal ruling was a tag and a nightly check.

What I changed: the meter’s margin, which Oakline used up, so the next add-on is now a dated finding. And two arrows I added: Gulf Coast to the warehouse, and the photo store’s deletions back to Salesforce.

The option I didn’t choose: connecting Gulf Coast’s org directly, or consolidating it. Both are reasonable later. Neither is what “one view within a year” asked for.

That’s the whole course in one design. Draw the landscape, take the arrows one at a time, give each one a contract, an identity, a failure plan and an owner, count the zeros at year three, and review it before anyone else does. Then, when the late change comes, and it always comes, you change one arrow, not the design.

Beyond the exam. This is the shape of a design question on the exam: a landscape, the numbers and a set of requirements, then a change. For each integration, be ready to name the pattern, the mechanism and why, how it authenticates, how it fails, and the limit it’s closest to, added up across the whole org.

  • Which earlier decisions hold when a late change arrives, and the few that change.
  • For a partner you call: who keeps the place, how often to ask, and where the mapping lives.
  • Every copy a deletion has to reach, arrow by arrow.
  • For an acquired org: the smallest set of arrows for what was asked, as whom, against whose allocation.
  • The tool contract that keeps an assistant inside its boundary, and who owns its outcome.
  • The findings, with owners, that the design carries into delivery.