โ10-06-2026 09:47 PM
I am currently designing a Disaster Recovery (DR) strategy for our Databricks workspace to recover from system failures and human errors. Our main requirement is to restore both the data and the pipelines reliably if a workspace goes down or gets corrupted.
Initially, I expected that enabling Databricks Managed Disaster Recovery would be a simple and straightforward solution. However, our architecture heavily relies on Spark Declarative Pipelines within a Serverless environment, utilizing Streaming Tables (ST) and Materialized Views (MV).
Iโve realized there are significant limitations with this setup: STs and MVs are not fully supported by Managed DR replication, and the CLONE command does not work for them. Most importantly, because we are on Serverless, we do not have direct access to the pipelineโs state and checkpoints, making it extremely difficult to safely migrate or replicate them to a secondary workspace/region for recovery.
Given these constraints, Iโd love to get some advice from anyone who has tackled similar challenges:
DR Architecture: Are there any recommended architectural patterns or workarounds for safely backing up and recovering STs and MVs (including their states and checkpoints) in a Serverless environment?
State Management: How do you handle DLT/Declarative pipeline checkpoints and state management during a DR Failover?
Active-Active vs. Active-Passive: To guarantee exactly-once processing in streaming, is a fully Active-Active architecture strictly required? Or is there a viable Active-Passive strategy that works well here?
Reverting to Classic Delta: If we were to abandon Spark Declarative Pipelines and revert to standard Delta Tables (using classic Structured Streaming / Jobs), would that allow us to simply and reliably use Databricks Managed DR for backups and restores?
Any insights, tips, or reference architectures would be highly appreciated. Thank you!
โ10-08-2026 01:23 AM
Thanks for the detailed explanation everyone. The Active-Passive + replay/rebuild approach makes sense given that Serverless manages the checkpoint state internally.
One aspect Iโm curious about is how this pattern should be designed when the source data volume is large and the DR requirement has a strict RPO/RTO (Recovery point and Recovery time objective). If the secondary environment needs to rebuild Streaming Tables from retained source data rather than restore the original checkpoint, the recovery time may depend heavily on how much data needs to be replayed or processed.
Would it be a good approach to maintain a separate, continuously replicated source layer specifically for DR, so that the failover environment only needs to replay data from a defined recovery point rather than rebuilding the entire Streaming Table history?
Also, for teams using CDC sources, would the recommendation be to keep the CDC/change history for at least the maximum expected failover window to make this replay-based Active-Passive strategy reliable?
Interested to hear how others are balancing RPO/RTO requirements with the rebuild-and-replay model.
โ10-07-2026 03:21 AM
Hello @kohei-matsumura
Yes, your understanding is correct! Databricks Managed Disaster Recovery currently does not provide end-to-end recovery for architectures using Serverless Declarative Pipelines, Streaming Tables (ST), and Materialized Views (MV).
Limitations:
CLONE.Doc Links: Managed Disaster Recovery , CLONE limitations and Pipeline checkpoint recovery
For the current architecture, an Active-Passive DR strategy would be good:
For Streaming Tables, recovery may require a full refresh and creation of new checkpoint state.
Doc: Full refresh for Streaming Tables
Active-Active is not required for exactly-once processing. Active-Passive is a valid and simpler DR model, provided only one environment is consuming/writing at a time and the source data can be replayed. Doc: Databricks Disaster Recovery guidance
If recovering from the same cross-region checkpoint is a strict requirement, classic Structured Streaming provides more control because checkpoints can be stored in customer-managed storage and replicated separately.
Doc: Structured Streaming checkpoints
Therefore, i dont think it is recommended to move away from Declarative Pipelines solely for Managed DR. The main deciding factor should be whether direct ownership and cross-region recovery of streaming checkpoints is a hard requirement.
In summary, the recommended pattern is:
Active-Passive DR + durable/replicated source data + source-controlled pipeline definitions + single-writer control + replay/rebuild of STs and MVs during failover.
โ10-07-2026 04:26 AM
For regional DR, It's better to lean toward active-passive with replicated/replayable data, rather than trying to copy Lakeflow checkpoint state between regions.
So the safer model sounds like active-passive + replicated data + sufficient source retention, with checkpoint recovery handled through supported pipeline mechanisms rather than cloning checkpoint directories directly.
If portable checkpoints are an explicit requirement, classic Structured Streaming gives more control because you own the checkpoint location, but even there have to validate failover carefully rather than assuming a storage copy alone guarantees a clean resume.
โ10-07-2026 04:40 AM
Managed DR isn't the right tool for the streaming layer here, so don't try to make it one. Design the pipelines to be rebuildable rather than replicated, and use Managed DR (or a DIY equivalent) only for what it handles well.
The core idea
Treat the state and checkpoints of Streaming Tables as disposable. You can't reach them on Serverless, and a copied checkpoint is fragile anyway, because it's tied to source offsets and pipeline internals. Replicate the things you can control:
Raw/source data, which must be replayable.
Pipeline code and config, deployed through Git and Databricks Asset Bundles (DABs).
Table data, which you either replicate or recompute.
1. DR architecture for STs and MVs
Materialized Views: don't replicate them at all. They're derived data, so in the secondary region you deploy the pipeline and let it recompute. The only cost is the compute time for the first refresh, so factor that into your RTO.
Streaming Tables: split them into two kinds.
Rebuildable from source. Examples are Auto Loader over files in replicated storage, or Kafka with enough retention. Deploy the same pipeline in the secondary and run a full refresh from the replicated source. Auto Loader in the secondary starts with fresh file-discovery state and re-ingests everything, which is safe only if the downstream logic is idempotent (see section 3).
Not rebuildable. The source is gone or short-lived, or the ST holds data that only exists there, such as CDC history (SCD2). These need a data backup, described next.
Backing up ST data, since CLONE doesn't work on STs: you can still read an ST as a normal table. Run a scheduled job that copies each critical ST into a regular Delta table in a DR catalog or storage account. That table can then be deep-cloned or replicated by any normal mechanism. This gives you the data but not the state.
Restoring ST data in the secondary: create the ST and backfill it from the snapshot table using a one-time append flow (append_flow with once=True), then attach the live source flow. Test the seam between the backfill and the live flow carefully, because that's where duplicates or gaps appear. Bound it by a timestamp or offset and dedupe on a business key.
Human error (separate from regional outage):
ST time travel works, but MV time travel doesn't, so for STs you can use RESTORE and time travel. This is documented.
Use UNDROP for accidentally dropped UC managed tables.
Keep pipeline definitions only in Git and DABs, so a corrupted workspace is just a redeploy.
Keep the snapshot copies in a separate storage account with soft delete or immutability, ideally under different credentials.
2. Checkpoints and state during failover
Don't migrate them. The failover procedure for an SDP pipeline is:
Deploy (or un-pause) the pipeline in the secondary via DAB.
For rebuildable STs, run a full refresh from replicated sources.
For non-rebuildable STs, restore from the snapshot table as above, then start the live flow.
Re-point sources and consumers. Stable URLs help if you're using Managed DR.
The one place you'll genuinely fight offsets is Kafka. Offsets in a mirrored cluster don't match the original, so start from a timestamp (with a small overlap) and rely on idempotent writes.
3. Active-active vs active-passive
Active-active is not required. End-to-end exactly-once in practice means replayable source plus idempotent sink:
Make writes idempotent. Use AUTO CDC (or MERGE keyed on a business key) for anything that matters. Then reprocessing an overlap window after failover is harmless.
Use active-passive. A warm standby (pipeline deployed but paused, replicated raw data, snapshots current) gives you minutes to hours depending on refresh sizes. A cold standby is cheaper and slower.
Active-active would mean two live pipelines writing to separate stores and reconciling them, which adds cost and conflict handling. It's usually justified only by near-zero RTO.
4. Would reverting to classic Delta make Managed DR simple?
Partly, but it wouldn't remove the hard part, and I wouldn't abandon SDP just for this.
Managed DR replicates Unity Catalog managed Delta tables with data. Per the docs, external tables and volumes get metadata only, and it can also replicate workspace assets like notebooks, jobs and ACLs. It's also gated, so Databricks enables it only after your account is accepted.
Classic Structured Streaming checkpoints live in storage you control, so they're reachable, but they're still tied to source offsets. Databricks' own DR guidance points to dual writes or checkpoint replication for this, so you'd still design a streaming failover plan.
Replication is continuous but asynchronous, so expect a nonzero RPO.
A better path is a hybrid. Keep SDP for the MV and derived layers, which recompute. For anything that is a hard system of record, use plain Delta tables (written by Jobs or a sink) that Managed DR or deep clone can handle, and treat it as the source for downstream SDP layers.
โ10-07-2026 06:20 AM
Short answer: don't try to back up or migrate ST/MV state and checkpoints at all. On Serverless you can't reach them, and they aren't designed to be portable. Design for rebuild and replay instead: pipeline definitions in Git, replayable sources replicated, and an independent pipeline (with its own checkpoints) in the secondary workspace. As you noticed, CLONE isn't an option for these objects [2].
Split your estate by whether the data can be recomputed:
Pipelines and their concepts (flows, STs, MVs) are described here [1].
Don't carry checkpoints across. Streaming checkpoints track offsets, and for Delta sources, table versions. After you replicate a table to another region, its versions and file layout no longer line up with the primary's, so a copied checkpoint can't be trusted. The safe model is:
You don't need a full active-active setup. Exactly-once in streaming is a property of one pipeline, one checkpoint, one target. Two independent pipelines, each with its own checkpoint and its own target, are each exactly-once relative to their own output. What you must avoid is two regions writing to the same target, or trying to share a checkpoint.
Practical active-passive variants:
| Mode | How it works | Trade-off |
|---|---|---|
| Warm standby | Same pipeline deployed in the secondary and run on a schedule or triggered, ingesting from replicated sources | Higher cost, low RTO |
| Cold standby | Deploy on failover, then backfill from replicated sources | Cheap, but RTO scales with data volume |
Keep in mind that outputs in the two regions won't be byte-identical (file layout, versions, ordering of micro-batches), so pick one region as the writer of record at any time.
It makes the data side simpler, since Delta tables support deep clone [2] and the usual replication tooling. But it isn't a free lunch:
foreachBatch with MERGE on a business key, or a dedup step.Before I'd abandon pipelines over this, I'd check the current Managed DR supported-object list for your cloud, since coverage changes. The hybrid pattern above (plain Delta for the irreplaceable raw layer, pipelines for everything downstream) gets you most of the DR benefit without giving up declarative pipelines.
[1] Spark Declarative Pipelines | Databricks on AWS โ https://docs.databricks.com/aws/en/ldp
[2] CREATE TABLE CLONE | Databricks on AWS โ https://docs.databricks.com/aws/en/sql/language-manual/delta-clone
โ10-07-2026 05:28 PM
If possible, could you also share your insights on another issue I am currently considering? The details are a bit lengthy, so I have outlined them below:
โ10-07-2026 05:22 PM
Thank you for the explanation. Based on the previous answers, I understand that restoring data for Streaming Tables (ST) and Materialized Views (MV) typically involves rerunning the pipeline using the original source data.
This approach seems perfectly fine when the data volume is small. However, if a system has been in operation for several years, I have a few concerns. Over years of operation, the volume of historical source data becomes massive, and there is a high probability that schema changes have occurred over time.
Therefore, I am concerned that executing a full recovery from the original raw sources would incur tremendous compute costs and time, and might not even guarantee a 100% accurate data restoration due to historical schema drift.
Considering this, I was wondering if a better approach would be to periodically create a "latest snapshot" source file/table based on the Silver layer data, and use that snapshot to rebuild the pipeline data when recovery is needed, rather than reading years of raw data from the beginning.
I would highly appreciate any advice, insights, or best practices regarding this backup/recovery architecture in production.
โ10-08-2026 02:30 AM
Short answer: yes, a periodic Silver snapshot is the right instinct, and it's how I'd design it. Treat raw replay as the break-glass option, not the routine recovery path. There's one catch: you can't snapshot an ST or MV with CLONE [1][2], so the snapshot has to be a plain Delta table that your job writes.
1. Mirror Silver into plain Delta tables. Use a scheduled job, separate from the pipeline, that writes to a backup schema.
Full copy, fine for small and medium tables:
CREATE OR REPLACE TABLE dr_backup.silver.orders AS
SELECT * FROM prod.silver.orders;
Incremental, if the ST is append-only and has a monotonic ingestion column:
INSERT INTO dr_backup.silver.orders
SELECT * FROM prod.silver.orders
WHERE _ingested_at > (
SELECT coalesce(max(_ingested_at), TIMESTAMP '1970-01-01')
FROM dr_backup.silver.orders
);
If the ST gets updates or deletes (for example from CDC), an append-only mirror will drift from it. Use a MERGE, or a periodic full rewrite.
2. Get the mirror to the secondary region. These are now ordinary Delta tables, so the normal tools apply:
Deep clone can be re-run to sync incrementally, and Databricks explicitly positions it for DR archiving [1]:
CREATE OR REPLACE TABLE dr_catalog.silver.orders CLONE dr_backup.silver.orders;
If you get access to Managed DR, plain UC managed Delta tables are within what it replicates [3]. That's a good reason to keep the backup layer as plain managed tables. Note that Managed DR is gated and has prerequisites such as Enterprise plan, Mission Critical add-on, and serverless on both sides [3].
3. Record a manifest per snapshot. For each table, store the snapshot timestamp, the high-water mark (max ingestion time, or Kafka offsets and file modification time), and the Git tag or commit of the pipeline code that produced it. The manifest tells you where to resume replay, and which code version matches the snapshot's schema. Snapshot all tables in one run, or at least record each one's mark, so your restore point is coherent across tables.
4. Don't snapshot MVs. They're derived, so a pipeline update recomputes them from the restored Silver. The exception is an MV that's very expensive to rebuild. In that case, mirror it too.
[1] Clone a table on Databricks | Databricks on AWS โ https://docs.databricks.com/aws/en/tables/operations/clone
[2] CREATE TABLE CLONE | Databricks on AWS โ https://docs.databricks.com/aws/en/sql/language-manual/delta-clone
[3] Managed disaster recovery | Databricks on AWS โ https://docs.databricks.com/aws/en/admin/managed-disaster-recovery
โ10-08-2026 05:30 AM
I did a small serverless validation of the main recovery scenarios using a Lakeflow Declarative Pipeline with a Delta source, a stateless Streaming Table, a stateful deduplicating Streaming Table, and a Materialized View. The results support a production DR model based on active-passive + warm replicated data + synchronized schema/code + explicit recovery boundaries, rather than replaying years of raw history or trying to copy checkpoints.
CREATE OR REPLACE TABLE dr_catalog.schema.orders
DEEP CLONE prod_catalog.schema.orders;โ
Subsequent clone operations can be incremental, so Databricks only copies the changes since the previous clone rather than doing a full historical copy every time.
The goal is to recover from baseline + delta, not from several years of historical raw data.
spark.readStream
.option("startingVersion", recovery_version)
.table("bronze.orders")โFor production, can keep those boundaries in a control table rather than hardcode them like:
flow_name source_table baseline_version
orders_flow bronze.orders 12500
customers_flow bronze.customers 8420databricks api post /api/2.0/pipelines/<pipeline-id>/updates
-p default
--json "@reset-request.json"โFor ST recovery, I have used a raw pipeline update request with reset_checkpoint_selection + refresh_selection, for the MV we used an explicit MV-only refresh.
Summary: For production Iโd aim for active-passive + warm replicated data + synchronized schema/code + explicit per-stream recovery boundaries, with a different recovery strategy for stateful flows. That avoids both extremes: copying opaque checkpoint state blindly or replaying years of history every time DR is invoked.
โ10-08-2026 01:23 AM
Thanks for the detailed explanation everyone. The Active-Passive + replay/rebuild approach makes sense given that Serverless manages the checkpoint state internally.
One aspect Iโm curious about is how this pattern should be designed when the source data volume is large and the DR requirement has a strict RPO/RTO (Recovery point and Recovery time objective). If the secondary environment needs to rebuild Streaming Tables from retained source data rather than restore the original checkpoint, the recovery time may depend heavily on how much data needs to be replayed or processed.
Would it be a good approach to maintain a separate, continuously replicated source layer specifically for DR, so that the failover environment only needs to replay data from a defined recovery point rather than rebuilding the entire Streaming Table history?
Also, for teams using CDC sources, would the recommendation be to keep the CDC/change history for at least the maximum expected failover window to make this replay-based Active-Passive strategy reliable?
Interested to hear how others are balancing RPO/RTO requirements with the rebuild-and-replay model.