OBLYTECH Logo
OBLYTECH Logo

Avoiding Unnecessary Data Replication: A Review Checklist

Avoiding unnecessary data replication in a Salesforce integration comes down to one test. A copy of Salesforce data is worth creating only when the target system cannot do its job by reading the data at its source. Before approving a new feed, ask whether the data must reside outside Salesforce, whether the external system can call Salesforce APIs instead, and whether data virtualization covers the need.

Why extra copies cost more than they appear to

A copy looks inexpensive when it is first built. The cost arrives later. Storage grows, each sync needs monitoring, and a change to a field in one system has to be reflected in every other system that holds a copy. More data in the organization means larger data volumes, and those volumes can adversely affect the org and add technical debt. Treat a new copy as a standing commitment rather than a one-time build.

Start with the question of where the data must live

Each review should begin with one question: does this data need to reside in Salesforce? Some data has a clear reason to live there, such as records that sales or service processes create and edit. Other data is read by Salesforce users but owned by a system that already holds the authoritative record. When the data can stay where it is, the rest of the design gets simpler.

The reverse case needs the same discipline. When the data already lives in Salesforce and an external system needs it, the starting position is that the external system reads the records through the Salesforce APIs. A copy in the external system then becomes a decision you have to justify, not the default.

Work through the checklist in order

Use these questions in sequence. A clear answer to the first two often settles the design before any field mapping starts.

  1. Does Salesforce need to store this data? If the Salesforce process does not create, change or report on the data, a copy may serve no purpose inside the org.
  2. Can the consuming system read the data at its source? If it can call the Salesforce APIs with the access it is granted, a copy adds maintenance without adding capability.
  3. Does the consumer need a local copy for speed or resilience? Name the reason. A copy kept only for convenience tends to drift first.
  4. Which system is the source of truth? If two systems both hold a field, decide which value wins before any sync is designed.
  5. Who maintains the copy after launch? A feed without a named owner tends to fail quietly.

Map the data flow before the design review

A replication decision is easier to make when the data flow is written down. Record the direction of travel, the source, the target and the timing. Then note whether a user waits for the result, because that decides whether a live call fits.

Check whether your landscape already has an enterprise service bus or an extract, transform and load tool. If one exists, reusing it keeps governance and monitoring in one place, which matters when the same data feeds several targets.

  1. Name the direction: Salesforce to an external system, an external system to Salesforce, or one Salesforce org to another.
  2. Name the source record and the target location for each field.
  3. Note whether the data moves synchronously, asynchronously or on a schedule.
  4. Note who sees the outcome and what they do when the write fails.
  5. Note how tightly the two systems must stay coupled, since tight coupling raises the cost of every later change.

Compare data virtualization with replication

Data virtualization reads records from an external source when a user or process asks for them, rather than storing a second set of records in Salesforce. Salesforce Connect provides this pattern, and it is the option to test first when the data does not need to reside in Salesforce. Consider it before committing to a sync, especially for data that changes often at the source.

Virtualization is not a drop-in replacement for a local copy. Reports, list views and automation that depend on local records may behave differently when they run against external data. Test those needs with real use cases before choosing virtualization, and record any gap the business has to accept.

Replication still has a place. A local copy can make sense when the consuming process needs the data at high speed, when it must keep working while the source is unavailable, or when a downstream system needs a fixed snapshot. In those cases the reason belongs in the design document, so the copy is reviewed like any other dependency.

Choose how external systems get the data

The access pattern decides how much copying a design needs. Reads that happen on demand can usually go through the Salesforce APIs. Bulk movements, such as a nightly load into an analytics store, are a different case and may justify a scheduled copy, provided the owner accepts the cost of keeping it current.

Live calls or scheduled copies

A live call returns the value that exists at the moment of the request. A scheduled or batched copy fits when the consumer does not need the result immediately, but each batch leaves a window in which the copy is out of date. Write that window down as an accepted staleness figure, so nobody assumes the copy is live.

Exception handling belongs in the same decision. Decide whether a failed record is retried, reported to an owner or stops the whole run. The answer differs for a single record update and for a bulk load, and the design should name the choice for each.

Keep each approved copy small

A copy that passes review should carry no more than the consumer needs. Copy only the fields the consuming process reads, filter records to the population that process uses, and set a retention rule for records that leave the active set. A copy of all fields on all records is usually the costliest form of replication and the hardest to justify later.

Volume needs its own plan. When a copy covers millions of records, query time, batch size and API consumption shape the design as much as the field list does. Confirm the current limits for your org before setting a schedule, since published limits can change over time. Runtime limits are covered in Salesforce governor limits for admins, which is worth reading before you choose batch sizes.

Assign ownership for the source record and the integration user

A copy needs a clear owner for the source record. Write down which system wins when two values disagree, who may change the field in each system, and how conflicts get resolved. Without those answers, a sync job can overwrite good data on its next run.

The integration account needs the same discipline. Give each integration its own dedicated integration user with API-only access. Grant that user access to the objects and fields the integration needs, review the grant whenever the scope of the copy changes, and keep people from signing in with the integration account. Access design for small teams is covered in permission set design for small teams.

Review checks before you approve a new copy

Bring this list to the design review. Each item should have a written answer in the design document before build starts.

  • Name the source of truth for each field being copied.
  • List each consumer that reads the copy and confirm that it still needs the copy.
  • Record the expected sync timing and the staleness the business accepts.
  • Confirm how failures are handled: retry, notify an owner or stop the run.
  • Estimate the record volume at launch and again after a year of growth.
  • Plan the initial bulk load as a separate job from the ongoing sync.
  • Test how changes to validation rules affect the feed, because a rule can reject records that the integration writes. The approach is covered in validation rules without breaking integrations.

For help planning this work, see Salesforce implementation.

Test environments hold copies too

Test environments accumulate copies of data alongside integrations. Plan their refresh so that each environment holds the data its tests need and no more. Timing and scope are covered in sandbox refresh planning.

Retire a copy as deliberately as you create it

When an integration is retired, the copy often outlives its purpose. Start by listing the consumers that still read it, then stop the feed before deleting the stored data. Check the reports and processes that used the copy, because a report can fail without an obvious error when its source disappears. Remove the stored data on a documented schedule rather than leaving it for later.

Questions about keeping Salesforce data at its source

What if two systems both need to edit the same field?

Pick one system to write the field and have the other read it or receive changes from it. If both systems must write, record the conflict rule in the design before build.

How do I decide how stale a copy can be?

Ask the consuming process what a wrong value costs and how long that cost can wait. Set the sync interval against that answer, then compare a sample of copied records with the source after a full cycle to confirm the result holds.

Can a copy ever make a report faster?

It can, when the report needs to scan more records than a live query can serve comfortably. Test the live query on realistic volume first, because a summary or a copy is a larger commitment than a query change.

What should happen to the copy when the feed is switched off?

Decide whether the stored data is deleted or kept for a defined period, record that decision, and confirm that no remaining process still reads it. Keep the record of the decision with the integration design.