05 · Watch: a callout built end to end
Twenty minutes from a blank class to a tested, mocked, named-credential callout — narrated, mistakes left in.
REST, platform events and middleware — moving data without losing it.
Twenty minutes from a blank class to a tested, mocked, named-credential callout — narrated, mistakes left in.
Two systems talking directly is simple right up until it is three systems, then five. Where the line actually sits.
Nightly loads still run the world. Upsert on external IDs, order parents before children, and make reruns safe.
When the caller does not need an answer, publish an event and move on — decoupling, replay, and the delivery guarantees you actually get.
The synchronous callout, done properly: named credentials for auth, a timeout you chose on purpose, and a mock for the test.
Request-reply, events, batch, middleware — pick the integration pattern before the tool, and design for the failure first.