# What are the functional trade-offs between data virtualization via Salesforce Connect and traditional ETL data replication?

**Topic:** Integration · **Difficulty:** Medium · **Tags:** Integration, Data Virtualization, Salesforce Connect Trade-offs

Read it on the site: https://www.forcechallenges.com/interview-questions/what-are-the-functional-trade-offs-between-data-virtualization-via-salesforce-connect-and-traditional-etl

## Answer

**Basics:** ETL replication copies data from the source system into Salesforce on a schedule or stream. Virtualization leaves the data where it is and fetches rows on demand through an adapter (OData 2.0/4.0, Cross-Org, or a custom Apex adapter using `DataSource.Provider` and `DataSource.Connection`). Users see external records in page layouts, related lists, lookups, SOQL and the REST API as if they were local.

**How it works:**
1. Define an External Data Source (type, URL, authentication via Named Credential).
2. Validate and Sync, which creates external objects and fields.
3. Add tabs, layouts and permissions; create external lookups or indirect lookups to link them to local records.
4. Each view or SOQL query turns into a live callout; Salesforce can cache results for short periods.

**Advanced / deep dive:** Choose by requirement:
- Virtualization wins when data is large, changes constantly, must be the single source of truth, is rarely referenced, or has residency constraints.
- Replication wins when you need reporting, automation, indexing, sharing rules, history tracking, offline use, or the source can be slow or down.
External objects have limits: relationships are restricted to lookup variants, reports and list views are limited, no sharing rules or field history, no formulas or roll-ups across them, searching requires enabling search on the data source (and queries fall to the remote system's performance), and triggers/flows are limited (write-enabled objects aside; verify support). Query performance depends entirely on the remote service and Salesforce still counts callouts and other limits. Licensing is separate (Salesforce Connect add-on; verify pricing/edition). Hybrid pattern: replicate a "header" subset (key, status) and virtualize the rest. Newer options such as Data Cloud zero-copy federation (Data Cloud was rebranded Data 360; verify) also virtualize warehouse data.

**Code / config example:**
```sql
-- SOQL against an external object: runs as a live remote query
SELECT ExternalId, OrderNumber__c, Status__c
FROM ERP_Order__x
WHERE Customer_Ref__c = 'C-1001'
LIMIT 50
```

**Hidden gotchas & must-remember points:**
- If the external system is down, the page or query fails.
- Rows are not stored in Salesforce, so no history, no dashboards on aggregates you would expect.
- Always filter and limit; unbounded queries are slow.
- External Id and Display URL fields are standard; pick the unique key carefully.
- Salesforce Connect is licensed per org, so evaluate cost versus ETL.

**Best practice:** Virtualize low-volume, low-frequency reference lookups; replicate anything you must report on, automate or secure with sharing.

---
Source: ForceChallenges · last updated 2026-11-02
