Deployed Lab

Module 2 · Integration · Chapter 3 · Free

Map the integration surface: APIs, events and MCP servers before you build

16 min1 clickable picture1 hands-on lab1 break-it lab1 predict, 2 quick quizzes, final quiz5-min video review
In 30 seconds

The picture: a surveyor mapping every road and bridge before anyone designs the new building.

Exam objective: Integration

Domain: Integration (21 percent of the exam, the heaviest domain). You should be able to:

The problem Week two at Northgate Health, a made-up regional health system. Ruth, the lead architect, asks a simple question in the design review: who owns the EHR interface, and what happens when it slows down? The fix is not a better guess. It is an inventory, built before the design hardens.
The plan for this chapter
  1. What an integration inventory records, field by field.
  2. The message flow across Northgate's four systems.
  3. Peak-load arithmetic against the 600 calls per minute EHR cap.
  4. 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:

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.

Message flow from portal to EHR and scheduling A patient message enters the portal, Relay triages it, Atlas carries the tool calls, and the calls land on the EHR or the scheduling system. Portalmessage in Relaytriage, draft AtlasMCP gateway EHR600/min cap Schedulingclean REST
  1. A patient writes in. The portal is the source system, and its volume drives every number later.
  2. Relay reads the message and decides what it needs: a summary, an appointment, an escalation.
  3. Relay never calls systems directly. Atlas is the one front door, checked in Chapter 4.
  4. Patient summaries live here. Every call counts against 600 per minute, shared with other users.
  5. Appointments live in the scheduling system, on a clean REST API with no EHR cap involved.

Where the picture breaks down:

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:

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

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

Field note, November 2026 In production integration work, the inventory is usually built from vendor docs, a traffic sample and three awkward phone calls, in that order of reliability. The phone calls win: rate limits and failure behaviour are the fields docs most often describe optimistically.

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.

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".