Integration Middleware vs Point-to-Point APIs

Direct API connections are quick to build and hard to live with at scale. Middleware adds a platform to run. Here is how to tell which one your landscape needs.

Type
Decision guide
Topic
Comparison
Reading time
5 min
Updated
Author
GeekMidst Team
Reviewed by
Site owner
Banner for the GeekMidst decision guide “Integration Middleware vs Point-to-Point APIs”, covering Point-to-point integrations and Middleware

Every Salesforce integration starts as a single connection, and a direct API call is usually the quickest way to build it. The difficulty appears with the fifth or tenth connection, when the same customer data is transformed in four places and nobody can say which integration failed overnight. Middleware solves that, at the cost of another platform to license, learn and operate.

Comparison of point-to-point integrations and middleware across scale, time to first integration, transformation, error handling, monitoring and cost
Point-to-point suits a small, stable landscape; middleware earns its cost once several systems share core data or need central monitoring. View full size

Point-to-point integrations

A point-to-point integration connects two systems directly. Common Salesforce examples:

  • Apex callouts or External Services calling an ERP or payment API, authenticated through Named Credentials.
  • An external application calling the Salesforce REST or Bulk API to create or update records.
  • A subscriber listening to Platform Events or Change Data Capture to react to changes in Salesforce.

Strengths: few moving parts, low cost, fast to deliver, and simple to reason about when only a couple of systems are involved.

Weaknesses: the number of connections grows quickly as systems are added, transformation logic gets duplicated, monitoring is spread across systems, and a change in one API can ripple into several others.

Middleware

Middleware (an integration platform such as MuleSoft, Boomi or a cloud provider's integration services) sits between systems. It handles transformation, routing, retries, queuing and monitoring in one place, and often exposes reusable APIs that several consumers share.

Strengths: central visibility, consistent error handling, reuse, and the ability to change one system without rewriting every consumer.

Weaknesses: licence and infrastructure cost, specialist skills, another layer that can fail, and extra latency. It can also become a bottleneck if one small team must approve every change.

At a glance

Point-to-pointMiddleware
Best scaleTwo to a few systemsMany systems and consumers
Time to first integrationShortLonger, platform set-up first
Transformation logicIn each connectionCentralised and reusable
Error handling and retriesBuilt per connectionCommon patterns and tooling
MonitoringSpread across systemsOne place to look
Cost profileLow entry, grows with maintenanceHigher entry, flatter growth
SkillsSalesforce and source-system developersIntegration platform specialists
Main riskTangled dependencies over timeOverhead and bottlenecks

Decision criteria

  • Number of systems and consumers. Two systems with one data flow rarely justify middleware. Several systems sharing customer, product and order data usually do.
  • Rate of change. If source systems are being replaced or upgraded, an abstraction layer protects Salesforce from those changes.
  • Error handling and audit needs. Regulated processes, financial data and order flows need dependable retries, dead-letter handling and traceability. Building that well into every point-to-point connection is expensive.
  • Volume and latency. High-volume batch loads and near-real-time events both work either way, but the patterns differ. Check current API limits for your org in Salesforce Help before designing.
  • Team and ownership. Middleware without an owning team degrades fast. If nobody will run it, a small number of well-built direct integrations is safer.
  • Budget horizon. Compare the cost of maintaining many direct connections over several years, not just the cost of building the next one.

Whichever you choose, standardise the message

A consistent event or message structure makes both patterns easier to monitor and easier to migrate later. A correlation ID that travels with every message is the single most useful habit for diagnosing failures. An event ID lets the receiving system ignore duplicates, which matters because retries, whether from middleware or from your own code, will eventually deliver the same message twice. Agree field names, date formats and currency handling once, and publish them where every integration developer can find them.

json
{
  "eventType": "OrderCreated",
  "eventId": "9f1c2e7a-0000-4000-8000-000000000001",
  "occurredAt": "2026-10-18T09:30:00Z",
  "source": "erp",
  "correlationId": "ord-100045",
  "payload": {
    "orderNumber": "100045",
    "customerExternalId": "CUST-2231",
    "currency": "INR",
    "totalAmount": 4599.00
  }
}
Illustrative event envelope with an ID for idempotency and a correlation ID for tracing

Moving from point-to-point to middleware gradually

  1. 01

    Map what exists

    List every integration with its systems, direction, frequency, owner, authentication and failure handling. Most teams find connections nobody remembered.

  2. 02

    Find the shared data

    Identify the entities several integrations touch, typically customer, product and order. These are the first candidates for reusable APIs.

  3. 03

    Agree conventions first

    Define the message structure, error codes, retry policy, logging and correlation IDs before building anything new.

  4. 04

    Route new integrations through the platform

    Avoid a big-bang rewrite. New work uses middleware; existing connections move when they need significant change anyway.

  5. 05

    Retire direct connections deliberately

    Run old and new in parallel with reconciliation, then switch off the direct path and remove its credentials.

Our view: it depends on how many systems you will connect

For a small landscape with stable systems, well-built point-to-point integrations using Named Credentials, Platform Events and proper error handling are often the right answer. Once you expect several systems to share core data, or you need central monitoring and audit, middleware usually earns its cost. Many organisations sit in the middle: a handful of direct, event-driven integrations today, with a plan to introduce middleware when the landscape grows. Our integration error handling checklist applies to both.

Questions we hear

Is middleware always needed with Salesforce?
No. Many organisations run well with a few direct integrations. Middleware becomes worthwhile as the number of systems, shared entities and audit requirements grows.
Are Platform Events a form of middleware?
They provide decoupled, event-driven messaging within and out of Salesforce, which reduces some point-to-point coupling. They do not replace transformation, routing and monitoring across many systems.
How do we secure point-to-point integrations?
Use Named Credentials and External Credentials, dedicated integration users with least-privilege permissions, and no credentials in code. Our guide to securing Salesforce API integrations covers the detail.
What should we monitor regardless of pattern?
Failed and retried messages, queue backlogs, API consumption against limits, and latency between source event and Salesforce update.
Does middleware slow integrations down?
It adds a hop, which matters for some real-time use cases. For most business processes the reliability and visibility gained outweigh the small added latency.

Review your integration landscape

We can map your current integrations, highlight the fragile ones and recommend whether direct APIs or middleware fit your next phase. See our integration services.

Discuss your integrations →

Tell us what you are trying to fix.

Share your Salesforce setup, goals and constraints. A practitioner reads every message and replies with questions, first thoughts or an honest view of whether you need outside help at all.

Talk to a Salesforce Expert
Book a Consultation