Salesforce Integration Patterns: Choosing the Right One
Six core Salesforce integration patterns explained: when to use each, how Platform Events fit, and the design rules that keep integrations reliable at scale.

Most Salesforce integrations are chosen by habit: someone builds a REST callout because it is familiar, and two years later nobody can say why nightly syncs collide with live updates. The better route is to pick the pattern first. Salesforce's own guide defines six integration patterns, and each one answers a different question about timing, volume and who owns the data. Get that match right and the build is simple. Get it wrong and you pay for it in retries, duplicates and governor limit errors.
This guide is written for the people who commission the work: enterprise teams, SMB owners, startups, agencies, e-commerce operators and professional services firms. It explains each pattern in plain terms, shows how Platform Events fit, and ends with the design rules we apply when we build integrations like these at LogicBranch.
TL;DR
- Salesforce defines six core patterns: Request and Reply, Fire and Forget, Batch Data Synchronization, Remote Call-In, UI Update Based on Data Changes, and Data Virtualization.
- Choose by two questions: what are you integrating (a process, data, or virtual access) and does the caller need to wait (synchronous) or not (asynchronous)?
- Platform Events suit near-real-time, high-volume, loosely coupled flows. They are not for cases where a person needs an immediate answer.
- Avoid copying data you do not need to own: virtual access often beats replication.
- Design for failure from day one: acknowledgments, retries, idempotent consumers and a dedicated integration user.
Table of Contents
- The two questions that choose the pattern
- The six patterns in plain language
- Platform Events and event-driven integration
- Latency, volume and coupling compared
- Design rules that prevent most integration failures
- Choosing for an Australian organization
- Perspective
- Where LogicBranch fits
- FAQ
- Sources
The two questions that choose the pattern
Salesforce's selection guidance sorts every integration by type and timing. Type is what moves: a business process, a set of data, or a virtual view of someone else's data. Timing is whether the caller blocks until the answer comes back (synchronous) or carries on (asynchronous).
The resulting map is short:
| Direction | What you need | Pattern |
|---|---|---|
| Salesforce to another system | Process or data, caller waits | Request and Reply |
| Salesforce to another system | Process, caller does not wait | Fire and Forget |
| Salesforce to another system | Look at external data live, no copy | Data Virtualization |
| Another system to Salesforce | Process or live data access | Remote Call-In |
| Another system to Salesforce | Bulk data, no one waiting | Batch Data Synchronization |
Salesforce's Data 360 guidance adds a useful framing: synchronous suits user-driven steps and validation, while asynchronous suits scale, long-running work, retries and high volumes. It also notes that some scenarios need middleware or an enterprise service bus (a central hub that routes and transforms messages between systems).
The six patterns in plain language
Request and Reply
Salesforce calls an external system, waits, and uses the answer. The standard example is creating an order in a remote system and storing the returned order number on the Salesforce record. In Salesforce's layered-approach module, a button click or Lightning Web Component triggers an Apex callout, the remote system replies synchronously, and Apex processes the response and redraws the page.
Use it for small, real-time transactions where the user needs the result now: a credit check, a price lookup, an address validation. The cost is coupling. If the remote system is slow or down, your user is stuck, and Salesforce's governor limits (hard platform caps on calls and records per transaction) apply.

Fire and Forget
Salesforce hands a message to a remote system, gets an acknowledgment, and moves on. Salesforce's example is creating a billing account. The remote system does the work in its own time.
Use it when the user does not need the outcome immediately: provisioning, notifications, downstream records. It removes the waiting, but you must decide how the outcome comes back, usually through a later callback or event.
Batch Data Synchronization
Data is created or refreshed in bulk, in either direction, on a schedule. Think of a nightly load of product catalogue changes or an hourly export of closed deals to a finance system.
Use it for large volumes where minutes or hours of delay are acceptable. Hard limits such as record counts per transaction cannot be extended, as the Trailhead layered-approach module notes, whereas API allocations can be purchased. Batch jobs need to be sized around the first.
Remote Call-In
The other system reaches into Salesforce to create, read, update or delete records. A warehouse system updating stock levels on a product record is typical.
This pattern is only as safe as the identity it uses. Salesforce's data integration guidance recommends a dedicated Integration user license with an API Only profile, paired with External Client Applications rather than older connected apps or SOAP login, as the permissioned approach for all integrations.
UI Update Based on Data Changes
The Salesforce screen refreshes by itself when data changes, using platform events. A support agent sees a case status change without reloading. The limits matter: Salesforce states that delivery and order of these notifications are not guaranteed, and changes made through Bulk API do not generate them. Use it for convenience, never as the only record of a change.
Data Virtualization
Salesforce reads external data in real time without storing or reconciling it. Every access is a live call to the other system. Salesforce's data integration guide advises avoiding unnecessary replication: use Salesforce Connect virtualization unless the data must live in Salesforce. Fewer copies means fewer reconciliation problems, and for regulated records it can mean fewer places to secure.
Two more patterns appear in Salesforce's Trailhead module on integration designs: High-Frequency Data Replication, for asynchronous near-real-time copying at scale, and Publish/Subscribe, where Salesforce publishes an event without knowing who listens and any number of subscribers process it.
Platform Events and event-driven integration
Platform Events are the backbone of the publish/subscribe approach. Salesforce describes them as secure, scalable messages carrying custom event data. Its Event-Driven Architecture guide prefers Platform Events and Change Data Capture for publishing record and field changes, and recommends the Pub/Sub API for new publish/subscribe work.
The guide says event-driven designs fit near-real-time notifications, parallel processing of high-volume or complex messages, IoT and offline mobile scenarios. They do not fit situations where a person needs a synchronous answer, or where changes are so infrequent that a batch job is enough.
A few facts worth knowing before you commit:
- Platform Events carry a structured payload independent of any Salesforce object, and durable topics keep a 72-hour replay window, so an offline consumer can catch up when it reconnects.
- The Pub/Sub API uses gRPC with bidirectional streaming, returns publish acknowledgments you can use for error handling and retries, and lets subscribers pull at their own pace so spikes do not overwhelm them.
- Salesforce can publish and subscribe to Platform Events in AWS, where an event such as a new opportunity can trigger a Lambda function and the result returns as another event.
Event-driven thinking is not limited to CRM plumbing. A white-label AI CRM for insurance agencies is one example of a product category where lead and policy activity needs to reach other tools quickly, which is exactly the kind of flow events handle well.
If your team is weighing how to publish events reliably from your own databases, two LogicBranch guides go deeper: the outbox pattern for publishing events without losing data, and change data capture for turning database changes into a stream. For systems that need a full history of state changes, see our explanation of the event sourcing pattern.
Latency, volume and coupling compared
The patterns trade off in predictable ways. Using Salesforce's layered-approach description as the base:
| Pattern | Timing | Volume | Coupling | Main risk |
|---|---|---|---|---|
| Request and Reply | Synchronous | Small transactions | Tight | Slow or failed remote system blocks the user |
| Fire and Forget | Asynchronous | Low to medium | Looser | Outcome must be returned separately |
| Batch Data Synchronization | Asynchronous | Bulk | Loose | Staleness between runs, limit sizing |
| Data Virtualization | Synchronous | Per lookup | Tight | Every view depends on the live system |
| Publish/Subscribe | Asynchronous | High | Loose | Schema changes and subscriber visibility |
Salesforce Architects are clear that event-driven design is a tool, not a mandate. Loose coupling scales and survives failures, but message structures become harder to change (versioned endpoints or schema registries help), publishers cannot see whether subscribers are healthy (replay or redundant subscribers help), and the event bus itself can bottleneck at scale (more resources, or several buses in parallel, help).
On the Australian side, practitioner measurements put point-to-point REST calls at roughly 50 to 300 ms round trip within the Sydney AWS region, as reported in the research behind the Salesforce layered-approach module comparison. Treat such numbers as a starting point and measure your own path, since they depend on payload size, region and the remote system.
Design rules that prevent most integration failures
Salesforce's Event-Driven Architecture guide lists anti-patterns that cause real outages. Translated for business owners:
- Do not publish an event from a trigger on the same event object. It creates an infinite loop.
- Do not publish before the transaction completes. Events set to publish immediately are not rolled back, so downstream systems can act on data that never saved.
- Do not orchestrate automation with Flow events. Use subflows or Flow Orchestrator.
- Keep payloads small and subscribers selective. Large messages and handlers that react to everything waste capacity.
Beyond those, build every integration on four habits:
- Acknowledge and retry. Treat the publish acknowledgment as the final result, and retry on failure with a limit.
- Make consumers idempotent. A message may arrive twice. Processing it twice should change nothing, for example by keying writes on a unique external ID.
- Separate identity. Use the dedicated integration user and API Only profile described above, with the least access the job needs.
- Own the source of truth. Decide which system wins for each field before you write a line of code. Most duplicate and overwrite bugs trace back to skipping this decision.
The cost of skipping design is documented. An IDC white paper from May 2023 found that 92% of surveyed organizations said a single cloud-to-SaaS integration takes three months or more to build and deploy, and 52% said manually built integrations take significant effort to maintain. The lesson is to standardize patterns so each new integration reuses the last one's thinking.
Choosing for an Australian organization
Salesforce Architects say there is no prescriptive answer to every integration challenge. The choice depends on your existing middleware, regulatory requirements, data timing and direction, source of truth, exception handling, coupling tolerance, data volume and maintainability. Where you already run an ESB or ETL tool, they recommend reusing it for governance.
A practical shortlist by situation:
- Enterprise with compliance obligations. Prefer virtualization and event-driven flows that avoid extra copies of sensitive data, and keep audit trails on every hop. Salesforce says Hyperforce supports Australian data residency, keeping customer data at rest in Australia, so confirm where your connected systems store data too.
- SMB or professional services firm. Start with Request and Reply for the one or two lookups staff actually wait on, and Batch Data Synchronization for the rest. Accounting practices in particular gain from standardizing readiness before automating, as we explain in our guide to accounting workflow automation.
- E-commerce. Stock and order updates suit events or frequent batches. Customer-facing steps such as shipping quotes suit Request and Reply.
- Startup or agency. Begin with one clean pattern per flow and a thin event layer you can extend, rather than a hub you will outgrow in a year.
On security, Salesforce's Dreamforce Decoded document for Australian and New Zealand IT leaders describes a shared responsibility model: Salesforce runs automated protections on its infrastructure, and the customer enables controls such as multi-factor authentication and IP allow listing and watches the Health Check score. Your integration code sits on the customer side of that line.
Perspective
Integration is where good Salesforce projects quietly fail. The platform is rarely the problem. The problem is that nobody decided what each system owns, so every connection becomes a negotiation.
Our approach is to treat integrations as software, not glue. That means modular, domain-driven architecture so each integration has a clear boundary, zero-trust security so every call proves who it is, and transparent communication so you know what is being built and why. We would rather give you three well-chosen patterns than a dozen clever ones.
AI runs through our delivery process, and it is increasingly the consumer of these integrations: agents that read a record, act, and write back. That raises the bar on audit trails and clean event design, which is the same discipline we apply in our own document and e-signature product, ksign.co.
Josh
Where LogicBranch fits
We build custom software, AI agent solutions, system integrations and cloud architecture for enterprises, Australian SMBs, startups, agencies, e-commerce businesses and professional services firms. For integration work that means choosing the pattern with you, designing the event and API layer, and building it to your compliance and scale requirements. You can see the full range on our services page, or start from LogicBranch to talk through the systems you need to connect.

FAQ
What are the main Salesforce integration patterns?
Salesforce's guide names six: Request and Reply, Fire and Forget, Batch Data Synchronization, Remote Call-In, UI Update Based on Data Changes, and Data Virtualization. Trailhead's wider list adds High-Frequency Data Replication and Publish/Subscribe. Each is defined by whether the data moves, who initiates it, and whether the caller waits.
When should I use Platform Events instead of a REST callout?
Use Platform Events when many systems need to react to a change, volumes are high, or the receiver can process later. Use a REST callout in a Request and Reply pattern when a person needs the answer on screen immediately. Salesforce advises against event-driven designs for synchronous human responses.
How do I stop duplicate messages causing bad data?
Assume duplicates will happen and make the receiving side idempotent, so processing the same message twice changes nothing. Key writes on a unique external ID, use publish acknowledgments to drive limited retries, and use the 72-hour replay window to recover a consumer that went offline.
Do I need middleware for Salesforce integration?
Not always. Simple, low-volume flows can run directly between Salesforce and one system. Salesforce notes some scenarios need an ESB or middleware, particularly with many systems, transformation needs or existing governance. If you already run one, reusing it is usually the sound choice.
Sources
- Integration Patterns, Salesforce Architects
- Integration Patterns selection guide, Salesforce Architects
- Data 360 Integration Patterns, Salesforce Architects
- Event-Driven Architecture decision guide, Salesforce Architects
- Data Integration decision guide, Salesforce Architects
- Learn About Integration Patterns and Designs, Trailhead
- Improve Application Integration with Layered Approach, Trailhead
- Optimizing Salesforce Integration Patterns, Trailhead
- Build Controllable and Scalable Integrations with Pub/Sub API
- Salesforce and AWS Expand Global Strategic Alliance
- The Power of Cloud and SaaS, IDC white paper (May 2023)
- Dreamforce Decoded for IT Leaders, Salesforce Australia
- What Does Salesforce Do?, Salesforce Australia
Recommended

B2B SaaS Pricing Models: How to Choose and Build the Right One
Flat-rate, per-user, tiered, usage-based and hybrid B2B SaaS pricing models compared, with Australian examples in AUD, GST notes and how pricing shapes your build.

Contract Testing for Microservices: A Practical Guide
How contract testing works in microservices: consumer-driven contracts, Pact, CI/CD setup and the mistakes that make contract tests brittle.