Choose a synchronous integration when a user or process must wait for the answer and the payload is small enough to return within that wait. Choose batch when nobody waits on each record, the volume is large, or the target takes changes in scheduled runs. Many projects need both, split by process step.
Start with whether someone is waiting on the result
The first question concerns the person at the screen. If a sales rep saves an opportunity and cannot continue until the ERP returns an order number, that call has to run synchronously and hand back a response. If the ERP only needs the closed deal by the next morning, the same data can travel later in a batch, and the rep never sees the gap.
Ask the question per step rather than per project. A single order flow often has a synchronous step, such as checking stock before the cart confirms, an asynchronous step, such as sending the order to fulfillment once payment clears, and a batch step, such as sending the day’s closed orders to finance. Listing those steps before anyone chooses a tool usually shows that the project is three decisions rather than one.
A quick test is to ask the person what they would do if the answer took several minutes. If they would sit and wait, the step is synchronous. If they would move on to another record, the step can go to a queue or a batch.
Size the data before choosing a pattern
Volume changes the answer more than teams often expect. A synchronous call that updates one account is comfortable at the desk. The same call inside a loop over a large file import is not. Count the records in a typical run, then count the worst run, which is often the first load after go-live or a bulk correction from a source system. Ask the business owner for that worst-case figure rather than estimating it, because the owner knows about the month-end or quarter-end peak. Then ask how often records change in bulk, and what a single-record update does to the rest of the org when it fires repeatedly in the same hour.
The one-time initial load is a different job from the ongoing feed, and it should usually not run through the same path. For the first load of existing records, start with the page on data migration and integration, then design the steady-state pattern separately.
Match candidate tools to synchronous or asynchronous calls
Salesforce integration tools fall into two timing classes: request and reply, which is synchronous, and fire and forget, which is asynchronous. A few support both. These are the options that often come up in a sync or batch discussion, with the timing class for each.
- External Services is synchronous. Use it when a flow or Apex process calls an external API described with an OpenAPI specification, and the next step needs the answer.
- Salesforce Connect and external objects is synchronous. Records appear in the Salesforce interface while the data stays in the external system.
- Change Data Capture is asynchronous. It sends a notice for each record change and suits a downstream system that needs to hear about the change without a tailored message body.
- OmniStudio Integration Procedure is a server-side option for transformation work that runs with nobody at a screen. Confirm in your release whether a given procedure is called synchronously, asynchronously, or both.
- Outbound Messaging is an older fire-and-forget option. Treat it as a legacy path and check its status for your release before using it in new work.
Check support status for your release before committing. Behavior can differ between releases, so confirm it on your own instance.
Plan batch runs around reconciliation, not only the schedule
A batch is simple to start and easy to get wrong later. The schedule opens a window where the two systems disagree, and the design has to decide which side wins inside that window. Name the source of truth for each field before the first run. Then decide how the batch finds the rows it did not finish, and how it records the rows it rejected. Schedule the run for a period when people are not editing the same records, so the batch and the users do not contend for the same rows.
In Salesforce, the Bulk API handles large import and export jobs. The Salesforce command-line tool has data commands for bulk jobs, and simple create, read, update and delete work on single records through the REST API. Data Loader and Dataloader.io suit data stewardship better than a standing integration, so keep them for corrections and recovery.
If your landscape already includes an ESB or ETL platform, check whether it can run the batch before adding another tool. Those platforms are built for transformation and for reusing one integration across several systems, and they centralize how integrations are managed.
Decide failure handling before the build starts
Each design needs an answer to one question: when a call or a row fails, does the system retry, notify someone, or stop? A synchronous failure lands on the user, who can act on it, so the message has to make sense to a person in the middle of a task. Set the retry window, the owner who receives the notice, and the state the record is left in. Without those three decisions, a failed row tends to sit unnoticed until someone asks why two systems disagree.
Authentication belongs on the same checklist. Run the integration as a dedicated integration user with API-only access, and avoid username-and-password SOAP login. Confirm which authentication method your release recommends before the build starts.
Count the calls too. Inbound calls that reach Salesforce through its API draw on the org’s API request allocation, while outbound callouts count against per-transaction callout limits instead. Multiply the calls one user action triggers by the number of users who act in a peak hour. The API call budget checklist sets out how to count that before the build. If the other end is ServiceNow, settle which platform owns each step first, and see Salesforce and ServiceNow integration boundaries for that split.
Walk the decision path in order
- List each step in the flow and mark whether a person or process waits for its result.
- Count the records per run, then count the worst run, such as a first load or a bulk correction.
- Name the source of truth for each field the step writes.
- Choose synchronous where someone waits, and batch where nobody waits and the volume is high. Asynchronous often fits the steps in between.
- Pick a tool whose timing class matches, and confirm support for your release.
- Write the retry, notification and record-state rules before the build starts.
For help planning this work, see Salesforce implementation. For wider context, the Salesforce services overview is the place to start.
Questions about choosing between synchronous and batch
Can a batch job pick up rows that failed on an earlier run?
Yes, if each record carries a status that the job updates after every attempt. The next run then selects rows in an unfinished or failed state. Without that status, a rerun can repeat work that already succeeded and create duplicate records in the receiving system.
What should a user see when a synchronous call times out?
Show a message that says the save is incomplete rather than failed or successful, because the outcome is unknown. Before the user retries, check whether the external system received the request. Otherwise a retry can create the same order twice. Decide ahead of time whether the local change rolls back or stays in a pending state.
Does moving a step from synchronous to asynchronous reduce the load?
Not by itself. It moves the work to a later point, and the total still has to fit within the system’s limits. Check the peak per hour and the queue depth as well as the average. A queue that fills faster than it drains delays the feed and can hide a problem until the next day.
Who should see errors from a nightly batch run?
The owner of the affected field should see the errors that touch it, and the integration owner should see the rest. Route them to a named mailbox or a task queue, not a log file on a server. A rep should see a status on the record only when the rep has to act on it.
Should a first integration start with batch to limit risk?
Batch is often the safer first step for a feed where the business can tolerate delay, because a bad run is contained and can be replayed. It is not the safer choice for a step where a person is waiting. Start with the lowest-risk step in the path, measure a real run, then move on to the next step.