Sub topic 13
Cost, skills, and who runs it
This chapter compares the cost, skills, and operational ownership of native Salesforce integrations and a middleware platform such as MuleSoft. It assumes you know Salesforce objects, records, and APIs, and that you understand REST and JSON. It also assumes you have seen the native options (Flow, Apex callouts, Named Credentials, Platform Events) and the reasons middleware is sometimes chosen. The goal is to help you put a realistic price on each approach and defend it.
Why cost is more than a license line
Teams often compare a middleware subscription with "free" native features. That comparison is misleading in both directions. Native tools are included in your Salesforce licenses, but they still consume developer time, API calls, and support effort. Middleware has a visible price, but it can lower the cost of the second, third, and tenth integration.
Think of total cost of ownership (TCO) as five parts:
- Licensing and infrastructure.
- Build effort.
- Run effort (monitoring, incident response, upgrades).
- Change effort (new fields, new systems, new versions of an API).
- Cost of failure (lost data, outages, audit findings).
The sections below cover each part.
Licensing and infrastructure
Native integration has little separate licensing cost. Flow, Apex, Named Credentials, Platform Events, and the standard APIs come with your edition. Some limits, such as daily API request allocations and Platform Event delivery allocations, depend on edition and purchased add-ons. If your volume exceeds the allocation, you may need to buy more capacity. Check current numbers in Salesforce documentation and your contract, because they change.
Middleware adds a separate platform charge. MuleSoft's Anypoint Platform is typically priced by the compute capacity you reserve (for example, units of processing capacity called vCores) and by the feature tier you buy. You also pay for the environments you need: development, test, and production. Other middleware products use different models, such as per-connector, per-message, or per-hour pricing. Ask a vendor for a quote based on your expected number of integrations and message volume, and do not rely on list prices.
Middleware also changes where integration code runs. Native logic runs inside Salesforce, so you do not manage servers. Middleware runs in the vendor's cloud or in your own infrastructure. If you choose a self-hosted option, you also take on servers, patching, and capacity planning.
| Cost item | Native Salesforce | Middleware (for example MuleSoft) |
|---|---|---|
| Software license | Included in edition, with limits | Separate subscription |
| Runtime environment | Salesforce platform | Vendor cloud or your infrastructure |
| Extra environments | Sandboxes (often already owned) | Separate dev, test, and production environments |
| Scaling cost | Higher API or event allocations | More compute capacity |
| Tooling | Setup, Developer Console, VS Code | IDE, API management, monitoring consoles |
Build effort
For a single simple integration, native is usually cheaper to build. A request-reply call to one REST endpoint takes a few lines of Apex or a Flow with an HTTP callout action:
HttpRequest req = new HttpRequest();
req.setEndpoint('callout:ERP_Credential/orders/' + orderId);
req.setMethod('GET');
HttpResponse res = new Http().send(req);
if (res.getStatusCode() == 200) {
Map<String, Object> order = (Map<String, Object>) JSON.deserializeUntyped(res.getBody());
System.debug(order.get('status'));
}The Named Credential keeps the endpoint and authentication outside the code. One developer can finish and test this in a day or two, including a test class with a mock callout.
The balance shifts as the number of connected systems grows. With native point-to-point links, every new system needs its own callouts, its own mappings, and its own error handling. The work repeats. Middleware tries to build shared pieces once: a connector to the ERP, a reusable mapping, a standard retry policy. The first integration on a middleware platform is usually more expensive than the native version because you pay for setup, standards, and learning. Later integrations that reuse those pieces cost less.
A rough way to see this is to compare two cost curves.
The numbers are illustrative, not measured. The shape is the point: the crossover depends on how many systems you connect, how much each differs, and how often they change. Your own estimate should replace these values.
Skills and team structure
The two approaches draw on different skills.
Native integration relies on people who already work in Salesforce:
- Administrators who build Flows and manage Named Credentials.
- Apex developers who write callouts, triggers, and tests.
- Architects who watch governor limits and API usage.
Middleware adds skills that a Salesforce team may not have:
- Integration developers who know the middleware tooling. For MuleSoft this means Anypoint Studio, Mule flows, and DataWeave.
- API designers who define contracts, for example with RAML or OpenAPI.
- Operations staff who manage deployments, alerts, and runtime capacity.
- Knowledge of the other systems, such as ERP, databases, and message queues.
Here is a transformation in DataWeave, the language MuleSoft uses for mapping. A Salesforce developer can learn it, but it is a separate language with its own tooling and testing practices:
%dw 2.0
output application/json
---
payload map (customer) -> {
Name: customer.company_name,
BillingCity: customer.address.city,
External_Id__c: customer.id
}Hiring and training are real costs. Certified MuleSoft developers are fewer than Salesforce developers in most markets, and they are often paid at a different rate. If you rely on a systems integrator, you also pay day rates and must plan for knowledge transfer. A common failure is a partner building a platform that the company cannot maintain after the project ends.
Who runs it
Ownership is where many decisions are won or lost. Ask three questions for every integration: who gets the alert, who can change it, and who answers when the business is blocked.
With native integration, the Salesforce team usually owns everything. This is simple and fast. It also means the Salesforce team becomes responsible for the behavior of other systems as seen from Salesforce, such as a slow ERP or a changing API.
With middleware, ownership splits across layers:
- A central integration team or center of excellence (CoE) runs the platform, sets standards, and manages runtime capacity.
- Project teams build and own the APIs and flows they deliver.
- Salesforce owners handle objects, fields, and automation.
- Security and governance teams review access and policies.
This split gives consistency, but it adds handoffs. A field change in Salesforce may now require a ticket to the integration team. A clear operating model should state who approves changes, who has on-call duty, and what the service levels are.
Run and change effort
After go-live, work continues. Estimate these recurring items:
- Monitoring and alerting. Native options include debug logs, Apex exception emails, Event Monitoring, and custom error objects. Middleware platforms provide dashboards, message tracing, and alerts, but someone has to configure and watch them.
- Upgrades. Salesforce releases three times a year and retires old API versions over time. Middleware runtimes, connectors, and policies have their own upgrade cycles. You can end up tracking two sets of release notes.
- Credential rotation. Named Credentials centralize secrets inside Salesforce. Middleware has its own secrets store and must be kept in sync.
- Testing. Apex requires test classes and mocked callouts. Middleware flows need their own unit tests, test environments, and deployment pipelines.
Middleware's operational tooling can save time during incidents, because you can trace one message across systems. In a native design with five point-to-point links, you may need to read logs in each system and join them by hand.
Hidden costs on both sides
Native approach:
- Limit-driven redesign when volume grows, for example moving synchronous callouts to queued or asynchronous processing.
- Duplicated mapping and retry logic across Apex classes and Flows.
- Knowledge held by one or two developers.
Middleware approach:
- Platform sprawl, where many small flows are built without standards.
- Paying for capacity that sits idle in non-production environments.
- An extra network hop that adds latency and another failure point.
- Skills concentration in a small integration team that becomes a bottleneck.
Putting numbers on a decision
Use a simple worksheet over a three-year horizon:
- List the integrations you expect, including likely ones, not only the current project.
- Estimate build days for native and for middleware, including setup for the first one.
- Estimate yearly run effort: support hours, upgrades, monitoring.
- Add license and infrastructure costs, including extra environments.
- Add training or hiring costs.
- Assign a cost to failure for each integration, such as the revenue at risk per hour of downtime.
Then run the numbers with a pessimistic and an optimistic case. If the middleware option wins only in the optimistic case, the evidence for it is weak. If it wins in both, you have a defensible argument.
Summary of the trade-off
| Factor | Favors native | Favors middleware |
|---|---|---|
| Number of systems | One or two | Many, or growing |
| Team skills | Strong Salesforce team, no integration team | Existing integration team or CoE |
| Change rate | Stable interfaces | Frequent changes across systems |
| Operational visibility | Salesforce logs are enough | End-to-end tracing needed |
| Budget shape | Small, project-based | Platform investment spread across many projects |
Exercise
A company plans to connect Salesforce to one billing system with a single request-reply call. They have two Salesforce developers and no integration team. A vendor proposes a middleware platform. List two cost items and one ownership question that argue for the native approach, then name one future change that would make you revisit the decision.
Show answer
Cost items: no separate license or extra environments are needed, and the build is small (one Named Credential and one callout, with a test class) so the setup cost of a middleware platform would not be recovered. The Salesforce developers can build and support it with skills they already have, so there is no hiring or training cost. Ownership question: who is on call for a failure? With native, the Salesforce team already owns it, while middleware would require a platform team that does not exist. Revisit the decision if the company plans to connect several more systems, if volume grows past Salesforce limits, or if the billing API starts changing often and several teams need shared mappings and tracing.
Exercise
Your three-year worksheet shows middleware is cheaper only if you add six or more integrations. The business has confirmed two. What should you do before recommending middleware?
Show answer
Test the assumption. Ask whether the other four integrations are planned or only possible, and run both an optimistic and a pessimistic case. If the pessimistic case favors native, recommend native for now, keep integration logic behind Named Credentials and clear interfaces so a later move is easier, and set a trigger (for example, the fourth integration) for reviewing the decision.