Bỏ qua để đến nội dung

Copy, Virtualize or Federate

Nội dung này hiện chưa có sẵn bằng ngôn ngữ của bạn.

The question this module answers: Should this data be copied into Salesforce at all?

Here’s a question I asked a room of architects once, about a company that sold equipment to hospitals. They had years of orders in their order system: more than 10 million orders, and by the time you added the line items, somewhere between 50 and 100 million rows. The salespeople wanted to open a hospital’s account in Salesforce and see what it had bought. So, do you load 100 million line items into Salesforce?

The answer is you don’t.

But that doesn’t mean the answer is “copy nothing,” either. This module is about the decision that comes before any object or field gets designed: should this data be copied into Salesforce at all? And if not all of it, which part?

When data lives somewhere else and Salesforce needs it, I see three choices. They can look the same to a user. Architecturally, they’re very different.

Copy it. Move the data into Salesforce and keep it in step. Now it’s a record like any other: page layouts, sharing, reports, flows, search, and the AI features built on the data model. It’s fast, and it’s there when the other system is down. What you’ve accepted is another copy, and every copy brings responsibility: synchronization, reconciliation, storage, a decision about which system is authoritative, and what happens when the source changes and your copy doesn’t. Chapter 9 was about moving it well.

Virtualize it. Leave the data where it lives and fetch it when someone looks. Salesforce calls this data virtualization: its Data Integration with Salesforce (opens in a new tab) decision guide says “Unless the data absolutely needs to reside in Salesforce, consider data virtualization with Salesforce Connect instead,” and the exam guide asks when to use “virtualized data” (both checked 2026-11-28). That’s Salesforce Connect and its external objects, which chapter 3 introduced, or a custom component that calls the other system and throws the answer away when the page closes. You avoided a copy. You accepted a dependency: every read is now a trip to the other system.

Federate it. Let a data platform query the data where it lives, without first loading it into its own storage. In the Salesforce world that’s Data 360’s zero copy federation with warehouses and lakehouses. Salesforce’s Data 360 Interoperability (opens in a new tab) decision guide (checked 2026-11-28) describes three ways it works: live query, “for interactive analysis and real-time data dashboards”; an accelerated query, a cache “for frequent data queries that don’t change often”, refreshed at intervals from 15 minutes to 7 days; and file federation, “for large-scale batch processing and AI model training” on the data in a data lake. Chapter 15 takes Data 360 itself. Here, it’s the third choice on the table.

Copy, virtualize or federate Three columns: copy, virtualize and federate. Copy: the data moves into Salesforce and is kept in step, through integration and data loads; you gain every platform feature, speed, and an answer when the source is down; you accept another copy to keep in step, storage, and a decision about who is authoritative. Virtualize: the data stays where it lives and Salesforce fetches it when someone looks, through Salesforce Connect or a custom component; you gain current data with no copy to keep in step; you accept that every read waits on the other system and fewer platform features. Federate: a data platform queries the data where it lives, through Data 360 zero copy (live, accelerated or file); you gain one view across platforms with no load first; you accept that queries cost credits and the source still does the work. Underneath: they can look the same to a user; architecturally they're three different decisions. {"author": "Steve Simpson", "blueprint": "1.0.0", "builder": "standard 1.52.0", "built": "2026-10-29", "id": "DGM-DA-VZ-10", "rights": "\u00a9 2026 Twinshark LLC. All rights reserved.", "template": "comparison 0.5.0", "theme": "stevetecharc 1.4.0"} Copy the data moves into Salesforce HOW Integration and data loads, kept in step YOU GAIN Every platform feature Speed An answer when the source is down YOU ACCEPT Another copy to keep in step Storage Deciding who is authoritative Virtualize fetched when someone looks HOW Salesforce Connect, or a custom component YOU GAIN Current data No copy to keep in step YOU ACCEPT Every read waits on the other system Fewer platform features Federate a data platform queries it in place HOW Data 360 zero copy: live, accelerated or file YOU GAIN One view across platforms No load first YOU ACCEPT Queries cost credits The source still does the work They can look the same to a user. Architecturally, they're three different decisions. © 2026 Twinshark LLC · stevetecharc.com
Click to enlarge

None of these is the modern one, or the right one. In class I tell people what I’m looking for when I virtualize instead of copy: you have a large amount of data you don’t want to copy in, you need small amounts of it at a time, and you want real time access to it. When those three are true, virtualizing looks good. When they aren’t, keep asking.

When I’m deciding whether to copy or leave data where it lives, I come back to four questions: size, change rate, complexity and action. Let’s take each one on Steve Trucking.

Since Checkpoint 2, a completed delivery stays in the org for 13 months and then leaves for one archive in Snowflake, by the partner key, beside RouteDesk’s 4.8 million older deliveries and the status history. That’s the right home for it. Now Redrock’s auditors write in: they’re questioning last year’s delivery counts for one of their distribution centers, and they want the deliveries behind the invoice. Those deliveries aren’t in Salesforce any more. So what do we do?

1. Size. How much data is there, and how much does Salesforce need? The archive grows by millions of deliveries a year. The coordinator answering the auditors needs a few hundred of them, once. Notice the question isn’t “how much data exists?” It’s “how much of it do we need here?” The bigger the gap between those two numbers, the stronger my reason has to be for keeping a complete copy. Here, there’s no reason at all to bring the archive back in.

2. Change rate. How often does it change at the source? Archived deliveries never change, which means a copy wouldn’t go stale. That’s a point for copying, so size has to carry this one. Now look at a truck’s position in FleetLink. It changes every few seconds, and chapter 9’s contract C8 already made the call: Salesforce takes only the latest position, not the 73 million readings a year. When the question is “where is the truck right now?”, a copy refreshed every few minutes is a slightly old answer to a question another system already knows. The faster data changes at the source, the harder it is to keep a copy honest.

3. Complexity. Is the source a domain of its own? I once worked with a satellite company where we tracked the status of beams. The system behind that had satellites, beams, coverage, telemetry and engineering detail, a whole world. The salesperson needed to know whether a customer’s beam was healthy. Do I rebuild that world in Salesforce for one answer? No. I show the part Salesforce needs and leave the domain with the system built to own it. Steve Trucking’s version is smaller: the archive has its own shape, keyed by partner, built for history, not for today’s work.

4. Action. This is the question that pushes me back toward copying. Does Salesforce need to respond to and act on the data? Looking at data is one thing. Driving a process from it is another. Back to the hospital equipment: the line items stayed in the external database, and Salesforce reached them through Salesforce Connect. But the orders themselves came into Salesforce as a custom object, kept in step by a sync, and here’s why. An external object isn’t stored in Salesforce. Nothing in the org sees it change, so the business got no flows, no automation and no notifications from it. They needed all three on orders. On line items, they didn’t.

Four questions: size, change rate, complexity, action Four questions, each with what it points toward. Size: how much of it do we need here, not how much exists; points to leaving it where it lives when the gap is large; Steve Trucking: a few hundred archived deliveries out of millions. Change rate: how often does it change at the source; points to live access when it changes fast; Steve Trucking: a truck's position, so Salesforce keeps only the latest. Complexity: is the source a domain of its own; points to showing the part Salesforce needs; the satellite beams, one answer from a whole world. Action: does Salesforce need to respond to and act on it; points to copying the part it acts on; Steve Trucking: the dispute Case, with keys, dates and counts. Underneath: no single question decides; the answer is often a mix. {"author": "Steve Simpson", "blueprint": "1.0.0", "builder": "standard 1.52.0", "built": "2026-10-29", "id": "DGM-DA-VZ-11", "rights": "\u00a9 2026 Twinshark LLC. All rights reserved.", "template": "comparison 0.5.0", "theme": "stevetecharc 1.4.0"} Size ASK How much of it do we need here, not how much exists? POINTS TO Leave it where it lives when the gap is large STEVE TRUCKING A few hundred archived deliveries out of millions Change rate ASK How often does it change at the source? POINTS TO Live access when it changes fast STEVE TRUCKING A truck's position: Salesforce keeps only the latest Complexity ASK Is the source a domain of its own? POINTS TO Show the part Salesforce needs EXAMPLE Satellite beams: one answer from a whole world Action ASK Does Salesforce need to respond to and act on it? POINTS TO Copy the part it acts on STEVE TRUCKING The dispute Case: keys, dates, counts No single question decides. The answer is often a mix. © 2026 Twinshark LLC · stevetecharc.com
Click to enlarge

My class line about external objects was “you don’t get flows, you don’t get triggers.” That was true in 2024 for anything that reacts to a change, and it’s mostly still true, but Salesforce has added two things, so here’s the current picture. A flow can read and write external objects; Salesforce asks that you commit your own records first and reach the external system in a separate transaction, and approval processes and workflow rules aren’t supported (Salesforce Connect Support for Flows and Processes (opens in a new tab), checked 2026-11-28). And External Change Data Capture, for the OData 4.0 and 4.01 adapters, “polls the external system at configurable intervals (5–30 minutes) for tracked changes” and publishes a change event you can subscribe to, or handle with an Apex trigger. That trigger “runs after an event occurs”, receives the change event, “not the object that caused the change”, and runs in a transaction separate from the original change (Use External Change Data Capture (opens in a new tab) and its considerations (opens in a new tab), checked 2026-11-28). So Salesforce can now hear about an external change, within minutes. What it still can’t do is act inside the moment the data changes, the way a record-triggered flow does on a record you own. If the process has to react at once, or has to hold the data when the source is gone, copy the part it acts on.

Look at what those four questions did. Not one of them said “copy everything” or “copy nothing.” That’s the pattern I want you to remember: leave the large or specialized domain where it belongs, and copy the small part Salesforce has to act on.

Back to Redrock’s auditors. The coordinator opens the distribution center’s account, under Redrock, and sees its archived deliveries, fetched from Snowflake by the partner key, read-only, through Salesforce Connect’s SQL adapter for Snowflake (chapter 7 showed that adapter). No copy. Then the coordinator opens a dispute Case, because now there’s work: an owner, a deadline, a response to Redrock. The Case does need some data in Salesforce, so it gets a copy of only what the dispute acts on: the partner keys of the questioned deliveries, their dates and the counts. The archive stays where it is. The Case carries the key back to it.

Copy the part you need Steve Trucking, one audit question, in two places. In Salesforce: the distribution center's account under Redrock, where the coordinator starts; the archived deliveries, an external object, read-only, fetched when someone looks; the dispute Case, highlighted, with an owner, a deadline and a reply to Redrock, holding a copy of only what it acts on; and the truck's latest position, the only part of FleetLink that's copied. Outside Salesforce: the Snowflake archive, millions of deliveries by partner key, which stays where it is; and FleetLink, 73 million readings a year, which stay. The account scopes the list of archived deliveries; they're fetched from Snowflake through Salesforce Connect, by the partner key; the Case copies the keys, dates and counts; FleetLink gives the latest position only. Underneath: leave the large domain where it belongs; copy the small part Salesforce acts on. {"author": "Steve Simpson", "blueprint": "1.0.0", "builder": "standard 1.52.0", "built": "2026-10-29", "id": "DGM-DA-VZ-12", "rights": "\u00a9 2026 Twinshark LLC. All rights reserved.", "template": "cells 0.4.0", "theme": "stevetecharc 1.4.0"} IN SALESFORCE OUTSIDE SALESFORCE The distribution center's account under Redrock; where the coordinator starts Archived deliveries an external object: read-only, fetched when someone looks The dispute Case an owner, a deadline, a reply to Redrock; a copy of only what it acts on The truck's latest position the only part of FleetLink that's copied The Snowflake archive millions of deliveries by partner key; stays where it is FleetLink 73 million readings a year; they stay scopes the list Salesforce Connect copies keys, dates, counts latest only Leave the large domain where it belongs. Copy the small part Salesforce acts on. HOW TO READ IT where the work happens, with the small copy it needs © 2026 Twinshark LLC · stevetecharc.com
Click to enlarge

Notice two more habits in that design. First, the virtual data is scoped to a parent. In my experience Salesforce Connect works well when an account, or another parent, narrows the list: “this distribution center’s deliveries from last year,” not “every delivery in the archive.” The parent narrows the query, limits what crosses the boundary, and matches what the user is actually doing. Even then, be ready for some delay. Module 2 shows how those relationships work.

Second, it uses more than one method. I say this in every integration class: sometimes you don’t just use one integration method. Virtualize the archive, a small copy for the Case, the latest value from FleetLink. Each piece of data got the method that fits its job.

When someone tells me “we need the data in Salesforce,” I ask what they mean, because it can mean very different things:

  • Users need to see it.
  • Salesforce needs to store it.
  • Salesforce needs to report across it.
  • Salesforce needs to act when it changes.
  • Users need to change it.
  • Salesforce needs it when the source is down.
  • An agent needs to search it, many times a minute.

Seeing points toward virtualizing. Acting, reporting at scale and surviving an outage point toward copying. “Need the data” isn’t a requirement yet. Ask what Salesforce has to do with it, then choose.

People sometimes say “let’s virtualize it so we don’t have to integrate it.” Be careful. You still integrated the two systems. You changed when the integration happens: instead of moving data ahead of time, you make the call at the moment the user asks. If the source answers in half a second, nobody notices. If it takes thirty, you have a problem. If it’s down, the page has a hole in it.

Salesforce says the same about mashups in Best Practices for Deployments with Large Data Volumes (opens in a new tab) (Winter ‘27, checked 2026-11-28). Keeping a large data set in another application and showing it in Salesforce reduces the data in the org, and its first advantage is “Data is never stale.” Then the disadvantages: “Accessing data takes more time,” and “reporting and workflow do not work on the external data.” And: “mashups are limited to short interactions and small amounts of data.” That’s the trade in Salesforce’s own words. Fresh, and lighter on the org, but slower, with fewer features, for small amounts at a time.

Test knowledge. Know when to virtualize, and the trade-off Salesforce states for mashups in large data volumes: “Data is never stale”, but “Accessing data takes more time”, “reporting and workflow do not work on the external data”, and mashups “are limited to short interactions and small amounts of data.” Know the questions that point toward copying instead: the data is used constantly, must be reported on or automated, or must be there when the source isn’t.

So freshness and availability pull in different directions. A copy is there when the source is down, but it ages. A live read is current, but only when the source answers. What does the business actually value? If yesterday’s value is unacceptable, a nightly copy is wrong. If the work must continue when the source is down, a pure live read is wrong. Salesforce’s Reliability (opens in a new tab) guidance (Well-Architected, checked 2026-11-28) gives you the middle ground: keep calls to a user waiting at “5–10 seconds maximum to maintain responsive UI as users tend not to wait longer”; “Pre-populate the cache during successful operations”, because “The cache provides stale but available data, which is better than complete failure for many use cases”; and use a circuit breaker so that, when a system keeps failing, “requests fail immediately without attempting external calls.” For Redrock’s auditors, a slow archive is fine. For a care agent checking a truck’s position while a customer waits, design what the page says when FleetLink doesn’t answer.

Here’s a fact that changed since I first taught Salesforce Connect. For the OData 2.0, 4.0 and 4.01 adapters, Salesforce says there are no callout limits: “However, the external system may have its own limits on how much traffic it can accept.” For the Amazon DynamoDB, GraphQL and SQL adapters (Amazon Athena and Snowflake), also no callout limits, “However, callouts can incur charges from the hosting provider of the external data source.” And for the cross-org adapter, “Each callout counts towards the API usage limits of the provider org” (General Limits for Salesforce Connect (opens in a new tab), checked 2026-11-28).

Read that carefully. Salesforce no longer stops you, so the limit moved to the system on the other side: its capacity, its bill, or its API allowance. Every time a Steve Trucking coordinator opens a distribution center’s archived deliveries, Snowflake runs a query, and Snowflake charges for the work. That’s fine for a few hundred audit questions a year. Now let’s add something that asks far more often.

For the cross-org adapter, the allowance it spends is the one every org shows on Company Information in Setup: API Requests, Last 24 Hours. The maximum is set by the org’s edition and licenses, so the number below is this org’s, not yours.

Setup, Company Information, the usage rows: Used Data Space 338 KB; Used File Space 0 B; API Requests, Last 24 Hours: 107 (50,000 max); Streaming API Events, Last 24 Hours: 0 (50,000 max); Restricted Logins, Current Month: 0; the Salesforce.com Organization ID greyed out; Organization Edition: Partner Developer Edition; Instance USA842.

Where an org’s API allowance shows: Company Information. The 50,000 is a Partner Developer Edition’s (Salesforce, Setup in a Partner Developer Edition org, screenshot, November 2026). Full size

A care agent opens an account, looks at five invoices, clicks one. No problem. Now give an AI agent the same virtual source. It may look up twenty customers, then their invoices, then the related deliveries, compare dates, try another query, refine its answer, all in a few seconds. That’s useful, and it’s a completely different load.

I’m careful about letting agents loose on virtualized data. Even if it’s fine for a human user, an agent can hit it much harder: it can strain the source, run up its costs, and burn credits. A source that performs well for people proves nothing about how it performs as an agent’s retrieval source. So for an agent I ask: does it need the live value, how often will it ask, how much can it pull back, and would a fast copy, or a narrow action that returns only the answer, be safer? I’d rather give agents data that’s built to perform, or a copy. That’s also why, at Checkpoint 2, I recommended that no agent reads the Snowflake archive: no agent’s job at Steve Trucking needs it.

Federation has the same shape, with a price on each question. The Data 360 decision guide prices one example both ways: about 4,200 credits a month for live queries against about 600 with acceleration, because the data changes less often than it’s read (Data 360 Interoperability (opens in a new tab), an example, not a price list). Its rule: “when data is accessed frequently but changes infrequently, Accelerated Query is typically more cost-effective,” and “when data changes frequently (relative to access frequency), Live Query or ingestion is more appropriate.” Agents ask often. Count their questions before you decide.

Chapter 12 asked: what is this agent allowed to know and do? Now add: how hard is it allowed to hit the source while doing it?

I don’t get extra points for copying zero bytes. And I don’t get extra points for putting everything in Salesforce, either.

Both sides have a fair case, and Salesforce makes both. The Agentic Enterprise (opens in a new tab) (Well-Architected, checked 2026-11-28): “Federated access lets agents reason across data wherever it lives. It reduces duplication for connected sources and presents a unified view.” Resource and Cost Optimization (opens in a new tab) (checked 2026-11-28): “External storage keeps data queryable through Salesforce Connect while reducing org volume.” And the Data 360 decision guide on the other side: “Use ingestion when full control, auditing, and traceability are required.”

So if federating something gives you a slow page, a dependency the business can’t live with, a bill nobody predicted or an agent that can’t answer, zero copy was the wrong call for that data. And if you copy data that already has a good authoritative home, only to keep it in step forever, that was the wrong call too. Put each piece where it best serves the work.

Salesforce Connect, Federation or Integration?

Section titled “Salesforce Connect, Federation or Integration?”

Once you’ve decided Salesforce needs data from somewhere else, there’s still a choice of mechanism. They overlap, but they aren’t interchangeable. Here’s how I’d draw the line today:

Integration (copy)Salesforce Connect (virtualize)Data 360 federation
Best whenSalesforce acts on it, or needs it when the source is downUsers see a small part, on a record, nowAnalysis, segments, unified profiles and agents’ grounding across platforms
FreshnessAs fresh as the syncLive on every readLive, or cached (15 minutes to 7 days), or file
Volume in SalesforceEverything you copyNone; small amounts per readNone in the CRM; the source does the work
AutomationFull: flows, triggers, approvalsFlows in a separate transaction; changes heard within 5–30 minutes (OData 4.0, 4.01)In Data 360’s own processes
ReportingFullWith limits; slower; a subset of large sourcesIn Data 360 and its analytics
Source downThe copy still answersThe page has a gapThe query fails
CostStorage and the integrationA license per connection; the source’s capacity or billCredits per query, or per refresh
Who must keep it in stepYouThe sourceThe source
Salesforce Connect, federation or integration? A comparison of three mechanisms. Integration, a copy: best when Salesforce acts on it or needs it when the source is down; as fresh as the sync; full automation and reporting; when the source is down the copy still answers; costs storage and the integration. Salesforce Connect, virtualized: best when users see a small part, on a record, now; live on every read; flows in a separate transaction, changes heard within 5 to 30 minutes, reports with limits; when the source is down the page has a gap; costs a license per connection and the source's capacity. Data 360 federation, queried in place: best for analysis, segments and grounding across platforms; live, cached for 15 minutes to 7 days, or file; automation and reports in Data 360's own processes and analytics; when the source is down the query fails; costs credits per query or per refresh. Underneath: choose by the job, then check the cost of every read. {"author": "Steve Simpson", "blueprint": "1.0.0", "builder": "standard 1.52.0", "built": "2026-10-29", "id": "DGM-DA-VZ-13", "rights": "\u00a9 2026 Twinshark LLC. All rights reserved.", "template": "comparison 0.5.0", "theme": "stevetecharc 1.4.0"} Integration a copy BEST WHEN Salesforce acts on it, or needs it when the source is down FRESHNESS As fresh as the sync AUTOMATION AND REPORTS Full SOURCE DOWN The copy still answers COST Storage and the integration Salesforce Connect virtualized BEST WHEN Users see a small part, on a record, now FRESHNESS Live on every read AUTOMATION AND REPORTS Flows in a separate transaction; changes heard in 5–30 minutes; reports with limits SOURCE DOWN The page has a gap COST A license per connection; the source's capacity Data 360 federation queried in place BEST WHEN Analysis, segments and grounding across platforms FRESHNESS Live, cached (15 minutes to 7 days) or file AUTOMATION AND REPORTS In Data 360's own processes and analytics SOURCE DOWN The query fails COST Credits per query, or per refresh Choose by the job. Then check the cost of every read. © 2026 Twinshark LLC · stevetecharc.com
Click to enlarge

Don’t make this decision from a diagram alone. Test the actual workload: how long the external query takes, how many rows come back, how many calls one page makes, what happens at peak, what happens when the source is down, and what happens when an agent uses it. Then decide.

  • Whether each piece of data is copied, virtualized or federated, using size, change rate, complexity and action.
  • Which small part to copy when Salesforce must act on data that otherwise stays where it lives.
  • What “we need the data” means: see, store, report, act, change, survive an outage, or feed an agent.
  • What the user sees when the source is slow or down: timeouts, a cache, a message.
  • Where the limit moved: the source’s capacity, its charges, or another org’s API allowance.
  • How often agents may query a virtual or federated source, and whether they get a copy or a narrow action instead.
  • Which mechanism carries it: integration, Salesforce Connect or Data 360 federation.

Beyond the exam: “zero copy” is a capability you’ll hear a lot about. The exam asks when to use virtualized data; the job asks what each read costs, who answers when the source can’t, and how many times an agent will ask. Every choice in this module is a trade, and the trade is yours to state.