> ## Content Index
> Fetch the complete content index at: https://www.namastesalesforce.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Integration Patterns
- URL: https://www.namastesalesforce.com/training/integration-patterns/
- Published: 2025-11-14T09:00:00.000Z
- Updated: 2025-11-14T09:00:00.000Z
- Description: Request-reply, events, batch, middleware — pick the integration pattern before the tool, and design for the failure first.
- Author: Swarnil Singhai
- Tags: Integration Patterns, #module, #Import 2026-09-03 19:13

Request-reply, events, batch, middleware — pick the integration pattern before the tool, and design for the failure first.

## What you'll learn

The four patterns that cover nearly every Salesforce integration: synchronous request-reply behind named credentials, fire-and-forget with platform events, nightly batch sync on external IDs, and when the middleware question actually becomes a middleware answer.

## Prerequisites

Comfortable Apex (the Apex Triggers module or equivalent) and a basic grasp of REST. The video section builds a callout live if you have never written one.

## How the sections chain

Four written sections plus a build-along video: synchronous first because it is the default everyone reaches for, then events for when the caller should not wait, then batch for when nobody is waiting at all — closing with the architecture question that decides how the next integration gets built.

## What you'll be able to do

- Stand up a named-credential callout with a tested mock
- Design idempotent subscribers for at-least-once delivery
- Build reruns-are-safe batch loads on external IDs
- Argue middleware vs point-to-point with edge counts
- Choose a pattern from latency and ownership, not fashion