Module 2 · Integration · Chapter 3 · Free
Map the integration surface: APIs, events and MCP servers before you build
- Inventory before design: list every system, its API, auth, owner, limits, data and failure behaviour first.
- Northgate has four systems to map: the EHR, scheduling, the service desk tool and the patient portal.
- The EHR cap is 600 calls per minute. Simple arithmetic shows a naive Relay design breaking it at peak.
The picture: a surveyor mapping every road and bridge before anyone designs the new building.
Domain: Integration (21 percent of the exam, the heaviest domain). You should be able to:
- Build an integration inventory covering API style, auth, owner, rate limits, data classes, events and failure behaviour.
- Estimate peak load from monthly volume and test it against a vendor cap.
- Spot inventory faults: missing owners, wrong limits, mislabelled data, undocumented retries.
- Use the inventory to decide what an agent may touch, and through what.
- Nobody in the room knows. The vendor contract names a team that was reorganised away last year.
- The first Relay sketch assumed the EHR answers instantly and without limits. It does neither.
- Two weeks of design work rest on guesses. Elena, the sponsor, asks what else in the plan is a guess.
- What an integration inventory records, field by field.
- The message flow across Northgate's four systems.
- Peak-load arithmetic against the 600 calls per minute EHR cap.
- The lab: build the inventory, then break and fix a bad one.
Next: what goes in the inventory, and why each field earns its place.
Step 1: Inventory before design, field by field
Think of moving house. Before you hire a van, you list what you own, what is fragile, and which rooms it lives in. An integration inventory is that list, for systems.
For every system, record the same eight fields:
- What it does: one plain sentence a non-engineer could check.
- API style: REST, vendor API, batch extract, webhooks, or some mix.
- Auth: how callers prove who they are, and who issues the credentials.
- Owner: a named team who can answer questions and approve changes.
- Rate limits: the cap, its unit, and whether other systems share it.
- Data classes: what kind of data flows, and whether it includes patient data.
- Events out: what the system announces, such as a new ticket or a changed appointment.
- Failure behaviour: timeouts, retries, error shapes, and what callers see when it is down.
A blank field is a finding, not a detail. It marks a question to close before build, while closing it is still cheap.
Next: the four systems, and how a message travels between them.
Step 2: Northgate's surface, and the flow across it
Northgate's surface has four systems. The EHR is old and central, reached through a vendor API capped at 600 calls per minute, plus nightly batch extracts. The scheduling system is newer, with a clean REST API. The service desk tool takes escalations and offers an API plus webhooks. The patient portal is where messages start.
Relay, the triage agent, sits between the portal and the systems. Atlas, the MCP gateway you will design in Chapter 4, sits between Relay and everything it touches.
Press Next to walk a message from the portal to the record.
- A patient writes in. The portal is the source system, and its volume drives every number later.
- Relay reads the message and decides what it needs: a summary, an appointment, an escalation.
- Relay never calls systems directly. Atlas is the one front door, checked in Chapter 4.
- Patient summaries live here. Every call counts against 600 per minute, shared with other users.
- Appointments live in the scheduling system, on a clean REST API with no EHR cap involved.
Where the picture breaks down:
- The service desk tool is missing from the flow: escalations leave Relay sideways, by webhook and API.
- The nightly EHR batch extract never appears in a live flow, yet it may be the right route for bulk data.
Next: the arithmetic that turns a monthly total into a peak problem.
Step 3: Worked example, peak load against the EHR cap
Worked example. Northgate handles 260,000 portal messages a month. Can a naive Relay, making 4 EHR calls per message, stay under the 600 calls per minute cap?
Step 1, daily volume. Assume traffic lands mostly on weekdays (assumption, made up): 260,000 ÷ 20 weekdays = 13,000 messages per weekday.
Step 2, the morning surge. Assume 25 percent of the day arrives in the 8 to 9 am hour, after reminder notifications go out (assumption, made up): 13,000 × 0.25 = 3,250 messages in that hour, about 54 per minute.
Step 3, peak minutes. Messages arrive in bursts, not evenly. Assume the worst minute runs at 3 times the surge-hour average (assumption, made up): 54 × 3 = 162 messages in that minute.
Step 4, calls against the cap: 162 × 4 = 648 EHR calls in that minute. The cap is 600. The naive design breaks it, before retries, and before the EHR's other users take their share.
The monthly average looked harmless: about 6 calls per minute spread evenly. Averages hide peaks, and caps are enforced at the peak.
162 × 2 = 324 calls in the peak minute. Halving calls per message halves peak load. That is why the inventory records calls per message next to the cap.
Next: what failure behaviour adds to the map.
Step 4: Failure behaviour is part of the surface
Two systems with the same API style can fail very differently. The inventory records what a caller actually experiences:
- EHR: slow under load, errors arrive as vendor codes, and the nightly extract is the fallback for bulk reads.
- Scheduling: clean REST errors, fast timeouts, safe to retry reads.
- Service desk: webhooks announce new tickets. If a webhook has no retry, a missed delivery is a lost escalation.
- Portal: the source of volume. Its notification schedule creates the morning surge.
Priya, Northgate's CISO, reads the data classes column first. A flow marked wrong there is a review blocker, not a typo.
Next: the lab, where you build the inventory and then break one.
Hands-on lab: the integration inventory
Part A: build it locally
Do this: save this inventory as integration-inventory.md in your engagement folder. It is the chapter artifact, and later chapters design against it. Figures come from the case bible; owners marked to confirm are your first chase list.
{
"systems": [
{
"name": "EHR",
"does": "Holds the patient record; source of patient summaries",
"api_style": "Vendor API plus nightly batch extracts",
"auth": "Vendor-issued service credentials (illustrative)",
"owner": "TO CONFIRM: vendor contract names a reorganised team",
"rate_limit": "600 calls per minute, shared",
"data_classes": ["patient data", "clinical notes"],
"events_out": ["none confirmed"],
"failure_behaviour": "Slow under load; vendor error codes"
},
{
"name": "Scheduling system",
"does": "Holds appointments; books, moves and cancels slots",
"api_style": "REST",
"auth": "Service account per caller (illustrative)",
"owner": "Northgate digital team (to confirm name)",
"rate_limit": "No cap recorded yet: confirm before build",
"data_classes": ["patient data", "appointment data"],
"events_out": ["appointment changed"],
"failure_behaviour": "Fast timeouts; reads safe to retry"
},
{
"name": "Service desk tool",
"does": "Receives escalations and incidents from Relay",
"api_style": "API plus webhooks",
"auth": "API key per integration (illustrative)",
"owner": "Tom, service desk",
"rate_limit": "No cap recorded yet: confirm before build",
"data_classes": ["patient data in escalation text"],
"events_out": ["ticket created", "ticket resolved"],
"failure_behaviour": "Webhook retry behaviour UNKNOWN"
},
{
"name": "Patient portal",
"does": "Where patients send messages; source of all volume",
"api_style": "Message feed to Relay (illustrative)",
"auth": "Portal session, patient authenticated",
"owner": "Northgate digital team (to confirm name)",
"rate_limit": "260,000 messages per month; morning surge",
"data_classes": ["patient data", "message text"],
"events_out": ["new message"],
"failure_behaviour": "Reminder sends create load bursts"
}
]
}
What to notice: three fields still say unknown or to confirm. A real inventory ships with its gaps visible and owned.
Break-it lab: fix a broken inventory extract
A teammate hands you this extract. It has four planted faults. Find all four before you open the reveal.
System: EHR
owner: (blank)
rate_limit: 6,000 calls per minute
data_classes: scheduling data only
System: Scheduling system
data_flow: nightly file of patient summaries to Relay
data_classes: no personal data
System: Service desk tool
events_out: webhook, ticket created
failure_behaviour: delivers once, always fine
Hint
Check each row against the four checks Ruth runs: is there a named owner, does the limit match the vendor cap from the case facts, does the data label match what actually flows, and does the failure note say what happens on a missed delivery?
Reveal the four faults and fixes
- Missing owner: the EHR row names nobody. Fix: record it as an open gap with a person assigned to chase it, never a blank.
- Wrong cap: 6,000 calls per minute is ten times the real 600. Fix: correct it to 600, shared, and re-run the peak arithmetic.
- Mislabelled data: patient summaries are patient data, so 'no personal data' is wrong. Fix: mark the flow as patient data, which triggers Priya's review.
- Webhook with no retry noted: 'delivers once, always fine' hides the drop risk. Fix: record retry behaviour as unknown until the vendor confirms it, and design a polling fallback.
Part B: match systems to styles and constraints
Lab: A teammate hands you an extract from Northgate's integration inventory: twelve rows covering the EHR, scheduling, the service desk tool and the patient portal. This lab runs in your browser and needs JavaScript enabled.
Next: mix-ups and the quiz.
Mix-ups to avoid
- "Average load is what matters." No. Caps bite at peak minutes, and averages hide them.
- "A blank field means not applicable." No. Blank means unknown, and unknown means chase it.
- "The batch extract is legacy, so ignore it." No. For bulk reads it can be the safest route off a capped API.
- "Data labels are paperwork." No. A wrong label sends patient data past the review it needed.
Chapter quiz
Five questions in the exam's style. Score 70% or more to finish.
Review this chapter in 5 minutes
Watch the whole chapter recapped: the eight-field inventory, Northgate's four systems, peak-load maths against the 600 cap, and fixing a broken inventory.
- Eight fields per system: purpose, API style, auth, owner, rate limits, data classes, events out, failure behaviour.
- Northgate's four: EHR (vendor API, 600 per minute, nightly extracts), scheduling (clean REST), service desk (API plus webhooks), portal (260,000 messages a month).
- Peak maths: made-up surge assumptions turn 54 messages a minute into a worst minute of 162, and 4 calls each into 648 against a 600 cap.
- Gaps: unknown owner, unknown webhook retry. Both stay visible, owned and chased.
Decision rule: no design decision rests on an inventory field that is blank or guessed. Close the gap, or design so the gap cannot hurt you.
Independent exam preparation. Not affiliated with or endorsed by Anthropic.
Review
Glossary
- Integration inventory
- The per-system record of API, auth, owner, limits, data, events and failure behaviour. Example: the EHR row in this chapter's lab.
- Integration surface
- Every way systems connect to each other. Example: APIs, webhooks and batch extracts at Northgate.
- Rate limit
- A cap on calls in a time window. Example: 600 EHR calls per minute, shared.
- Data class
- A label for what kind of data flows. Example: patient data versus scheduling data.
- Webhook
- A message a system sends when something happens. Example: the service desk announcing a new ticket.
- Batch extract
- A scheduled bulk file from a system. Example: the EHR's nightly extract.
- Peak load
- The busiest short window, not the average. Example: the worst minute of the morning surge.
Next: "Design the MCP gateway: one front door for tools, auth and audit".