Steve Trucking, the Whole Integration Design
This content is not available in your language yet.
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.
The landscape absorbs the late changes: two arrows for Oakline, one for Gulf Coast. Nothing else moves.
Every Arrow on One Page
Section titled “Every Arrow on One Page”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:
| Arrow | Pattern and mechanism | Signs in as | When it fails |
|---|---|---|---|
| Redrock’s manifests in (C1) | Remote Call-In: Composite, sets of 200, upsert by the partner key | The layer’s manifests user | Redrock resends; the key makes it an update |
| Keystone’s and Brightwave’s manifests | Batch Data Synchronization: files through the Bulk API | The bulk-loads user, off between runs | Counted in and counted out before the file is done |
| FleetLink’s latest position | Remote Call-In: one Composite call a minute | FleetLink’s own user, trucks only | An 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 way | The layer’s status user | Replay from the last replay ID within 72 hours |
| Status events to Snowflake (C7) | The layer passes the same stream on | The layer | Replay, then resync from the last known-good time |
| Delivery counts to finance (C9) | Batch Data Synchronization: one query a day | The layer | Run the day again; a day’s counts replace that day’s |
| Photos | Fire and Forget: the crew’s app straight to the photo store | The crew’s app, not Salesforce | Retried when signal comes back |
| The day-before message | Fire and Forget: a platform event to the layer, which calls the provider | The layer | Same key on every retry |
| The Recipient assistant (new) | One tool: this delivery’s confirmed window, nothing else | Its own minimal agent user | It 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).
Review It Before Anyone Else Does
Section titled “Review It Before Anyone Else Does”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.
| Area | Question | Finding | Severity | Owner |
|---|---|---|---|---|
| Volume and limits | How 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 line | Fix with a date: before a fifth partner signs | Integration architect |
| Identity and keys | Does the 30-day deletion reach every copy? | The layer’s payload logs and failed-message queue keep Recipients’ names and phones for 30 days | Fix before Oakline goes live | Integration layer lead |
| Failure and recovery | Does every arrow tell someone when it goes quiet? | FleetLink’s silence threshold is still not set | Fix before the next gate | Operations lead |
L1: A Fourth Partner You Call
Section titled “L1: A Fourth Partner You Call”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).
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.
Oakline fits, and uses up the margin.
L2: Gulf Coast, One View Within a Year
Section titled “L2: Gulf Coast, One View Within a Year”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).
Take One More Arrow Away
Section titled “Take One More Arrow Away”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.
In My Professional Opinion
Section titled “In My Professional Opinion”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.
What an Architect Decides Here
Section titled “What an Architect Decides Here”- 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.
Explore
Section titled “Explore”- Checkpoint 2: Steve Trucking Under Load, chapter 16 module 7: every arrow, its mechanism, and the meter.
- The Steve Trucking brief: sections 1 to 9.
- Checkpoint 3 in the Data Architect course: the same late changes, from the data side.
- One Org or Many, From the Integration Side, chapter 21 module 1: one view, or one org.
