When One Org Fails, and Getting It Back
Esta página aún no está disponible en tu idioma.
Module 4 of 5 in the chapter Multi-Org and Distributed Architecture, chapter 21 of the Integration Architect course. Each module stands on its own. Previous: Owners, Keys and Staying Consistent Across Orgs · Next: Joining and Splitting Orgs
The question this module answers: What happens to the integrations between orgs when one org is down, slow or restored from a backup, and when is a second org the recovery plan itself?
Every Org Fails on Its Own
Section titled “Every Org Fails on Its Own”Two orgs don’t fail together. Each has its own maintenance windows, its own release weekends, its own API allocation running out on its own busy day, and its own incidents. So every org-to-org arrow has to survive the other side being unavailable for a while.
You know the tools from Part 2. Retry with backoff and stop when the other side is clearly down (chapter 14 module 4). Keep a receipt, so you know what arrived (chapter 14 module 5). And know your replay window. In my 2024 class a student asked the question everyone eventually meets: what if the listener is off over a long weekend, and you go past the 72 hours events are kept? You miss data. The answer is layers: a receipt on your side, and a catch-up from the source by last modified date when the window is gone (chapter 11 module 4).
Between orgs, add two habits.
- Know each org’s release dates. Check each org’s upgrade date for every release. If the two differ, an integration can meet the new release on one side before the other, so test it in both orgs’ preview sandboxes (chapter 14 module 9).
- Watch both orgs’ allocations. A busy day in one org can use up the other’s API calls, as chapter 19 module 3 showed for the cross-org adapter.
How Much Can You Lose, and How Long Can You Wait?
Section titled “How Much Can You Lose, and How Long Can You Wait?”Recovery is two numbers, and the business sets them, not IT.
- RPO, the recovery point objective: how much data you can afford to lose. Five minutes of orders? A day?
- RTO, the recovery time objective: how long you can be without the system before it’s back.
Salesforce’s Well-Architected guidance lists, as an anti-pattern, “RTO/RPO defined by IT team without business stakeholder input” (Reliability - Disaster Recovery Patterns (opens in a new tab), Salesforce Architects, checked 2026-11-21). Ask the business for each capability, not for “the system”.
Here’s the part an integration architect will recognize. The same guidance ties each RPO to an integration mechanism you already know:
| How much you can lose | How Salesforce suggests copying the data elsewhere |
|---|---|
| Near zero | “Asynchronous event streaming via Platform Events on every record save (seconds of propagation lag, at-least-once delivery)” |
| Minutes | “Change Data Capture async replication” |
| Hours | “Scheduled batch API extract” |
| Days | “Manual backup on fixed schedule” |
Recovery, in other words, is an integration: a copy of the data kept somewhere else, by the same events, change capture and bulk extracts Part 2 taught.
When a Second Org Is the Recovery Plan
Section titled “When a Second Org Is the Recovery Plan”Usually, recovering means getting the same org back. The platform handles failover inside its region. Recovery to another region is a separate offering on Hyperforce, which the Data Architect course covers (One Org Is One Region).
But for some capabilities, the business needs better than that, and then a second org becomes the plan. Salesforce is clear that this is the exception: “Multi-org justified only when business requires RPO/RTO beyond platform capabilities,” and “Solution can only provide RTO better than platform baseline with multi-org architecture.” It names two shapes:
- Active-passive: “primary org serves all traffic, secondary org synchronized but idle, failover during primary region outage.”
- Active-active: “both orgs serve production traffic continuously, users allocated by geography or business unit.” And then, of course: a “Conflict resolution strategy defined for active-active when same record modified in both orgs”, which is module 3.
Both are integrations that run all the time, so they fail the way integrations fail. Salesforce lists one I’d underline: a “Secondary org in active-passive architecture not receiving replication updates but health checks not configured.” The standby org is quietly weeks behind, and nobody knows until the day it’s needed. Monitor the replication like any other arrow.
And don’t forget what the orgs depend on. Another anti-pattern on the same page: an “RTO assumes Salesforce org restoration only but solution depends on external identity provider also unavailable.” If people can’t sign in, a restored org doesn’t help. Put the identity provider, the middleware and the shared systems in the recovery plan too.
The Restore That Changes Every ID
Section titled “The Restore That Changes Every ID”Now the trap I most want integration architects to know.
When records are restored from a backup rather than undeleted from the recycle bin, they come back as new records. Salesforce says it directly: “All recreated records will receive a new unique record ID at the time they are recreated” (Recover records and data in Salesforce (opens in a new tab), Salesforce Help, published 2026-07-03, checked 2026-11-21).
Think about what that does to integrations. Every other system that stored the old Salesforce ID now points at nothing. Every other org that matched on it can’t find the record. And the restore itself is a wave of new records, so every trigger, flow and change event fires as if they were brand new: the integrations can send them all out again, to every org and system, as new customers and new orders.
Three defences, and you put them in place before you ever need them.
- Match on External IDs, never on Salesforce IDs, across orgs and systems. Then a restored record, with its old External ID, is found and updated, not duplicated. This is why module 3 and the Data Architect course insist on keys: keys make recovery possible.
- Make the receivers safe to send twice. An upsert by External ID turns a repeated “new” record into an update (chapter 14 module 4).
- Have a switch for restores. Pause or mark the outbound integrations while a large restore runs, then reconcile (module 3).
Practise It
Section titled “Practise It”Salesforce’s backup product today is Backup & Recover, “formerly Own Recover” (Backup & Recover (opens in a new tab), Salesforce, checked 2026-11-21), and other backup products exist. Whichever you use, the Well-Architected checklist says what good looks like: “Quarterly restore drills to Full Sandbox or Developer environments,” “Complex field types and lookup relationships documented and tested in the restore sequence,” and “Data loss measured during recovery tests.”
For an integration architect, add one line to every drill: run the integrations during the restore, in the sandbox, and watch what they send. That’s where you’ll find the duplicates before production does.
Test knowledge. Know RPO and RTO and that the business sets them. Know that restored records get new Salesforce IDs, so integrations should match on External IDs. Know active-passive and active-active multi-org patterns, and that a second org for recovery is justified only when the business needs more than the platform provides. Know that a replay window is limited, and that a fallback from the source (by last modified date, through the Bulk API) covers longer outages.
What an Architect Decides Here
Section titled “What an Architect Decides Here”- How each org-to-org arrow survives the other side being down, and for how long, with a catch-up beyond the replay window.
- The RPO and RTO for each capability, set by the business.
- Which mechanism keeps the recovery copy, matched to the RPO: events, change capture, batch or backup.
- Whether a second org is justified, active-passive or active-active, and how its replication is monitored.
- The restore defences: External IDs everywhere, safe-to-repeat receivers, and a switch for restores.
- The drill, with the integrations running.
Explore
Section titled “Explore”- Reliability - Disaster Recovery Patterns (opens in a new tab), Salesforce Architects (checked 2026-11-26): the tiers, the patterns and the anti-patterns.
- Recover records and data in Salesforce (opens in a new tab), Salesforce Help (checked 2026-11-26): what a restore does to IDs.
- Backup & Recover (opens in a new tab), Salesforce (checked 2026-11-26): Salesforce’s own backup product.
- Replay, Retention, Order: chapter 11, the replay window.
