Skip to main content

How to Run a Multi-Cloud Lakehouse Across 100+ Regions with Declarative Deployment

Summary

  • Infrastructure as code: Multi-cloud and multi-region deployment requires code with a single source of truth and continuous drift remediation across all environments.
  • Workspace unification: Using the Databricks Terraform provider and SDK, hundreds of workspaces behave consistently with one shared deployment system for jobs, pipelines, apps and Genie spaces.
  • Bundles and compute placement: Bringing code to the data instead of moving data ensures compute runs where data lives, keeping networking costs and latency low across multiple clouds and regions.

How to Run a Multi-Cloud Lakehouse Across 100+ Regions with Declarative Deployment

Watch: How to Run a Multi-Cloud Lakehouse Across 100+ Regions with Declarative Deployment
Talk by Clara MacAvoy, Sr. Software Engineer, Databricks; Peng Chen, Sr. Manager, Engineering, Databricks
Running a multi-cloud, multi-region lakehouse as a single platform rests on three practices: define everything as code, declare the desired state of every workspace, and continuously remediate configuration drift. This video shows how the Databricks Data Platform team runs Databricks internally across AWS, Azure and GCP and more than 100 regions, covering workspace unification, deployment with the Databricks Terraform provider and SDK, one deployment system for jobs, pipelines, apps and Genie spaces, and why they bring code to the data instead of moving data.
Peng Chen describes why complexity compounds with every new cloud and region, and why every AI agent is also a workload that multiplies the problem. Clara MacAvoy then walks through the architecture: a single source of truth in code, a flywheel that keeps systems unified, and workspace unification using the Databricks Terraform provider and SDK so hundreds of workspaces behave the same. She explains one shared deployment system for jobs, pipelines, apps and Genie spaces, with quick rollouts, independent failures and centralized monitoring. The team brings the code to the data, deploying with Databricks bundles, so compute runs where the data lives and networking cost and latency stay low.

Chapters

FAQs

Why does multi-cloud and multi-region deployment increase complexity?

Every new cloud and region adds different configurations and security controls, turning simple workload management into managing multiple environments. This complexity compounds because every AI agent or workload becomes multiplied across all clouds and regions, requiring centralized governance and deployment.

What is workspace unification and why is it important?

Workspace unification ensures that hundreds of workspaces across multiple clouds and regions behave consistently using the Databricks Terraform provider and SDK. This prevents configuration drift and allows teams to maintain one set of policies and practices across all environments.

How do Databricks bundles help with multi-cloud deployment?

Databricks bundles provide one shared deployment system for jobs, pipelines, apps and Genie spaces across all clouds and regions. They enable bringing code to the data instead of moving data, ensuring compute runs where data lives to minimize networking costs and latency.

What benefits does configuration-as-code provide for multi-region management?

Defining everything as code creates a single source of truth for your platform's desired state. A continuous flywheel then automatically remediates any configuration drift, ensuring all workspaces and environments stay aligned without manual intervention.

Full transcript

00:00 Introduction

! Morning everyone! Before we start, I'd like to do a quick show of hands. There we go. How many of you have relied on data in your work? Great, that should be everyone. Okay, now how many of you have worked with data across different environments? maybe staging, production, maybe different regions, or different clouds. Oh, awesome! So it looks like many of you have had to deal with more than one environment. For those of you who have not dealt with it, I'd actually consider you lucky.
Not because multi-region or multi-cloud is a bad idea. In fact, there are many good reasons why people do it. Maybe you have your customers distributed globally, so you want to bring your data and service close to them in order to reduce latency, or you have compliance and security requirements, so you have to keep your data to specific regions. All these are valid business reasons. The problem is Every region cloud adds more complexity.

01:17 Why multi-cloud and multi-region complexity compounds

And in our experience, complexity starts small. You have one data workload, maybe a Python notebook, maybe a regular job running in one environment, maybe Databricks workspace. Everything works. Life is easy. Now you add one more region, one more cloud, things look different, different configurations, different security controls. And this is when the complexity starts to become more. The problem has turned from managing a simple workload to managing so many different environments and workloads.
And it starts to hit all of your teams. Your data engineering and product team may spend more time managing those environments and workloads than building actual products. What used to be a simple governance policy change now becomes an expensive platform-wide project. If any of this sounds familiar to you, you are not alone. My name is Pan. I've spent my past decade working on data platforms, first at Meta, and then Pinterest, and now Databricks.

02:44 The real challenge: managing workloads as environments change

I've seen the same story repeat itself again and again. So what is the fundamental challenge here? At the beginning, I thought it's a workload deployment problem, how to deploy the same workload across different places. Later, I realized workload is only half of the story. The other half is the environment around this workload. And the fundamental challenge is how to manage those workloads and environments as you make changes.
For example, you may have a workload that runs perfectly fine yesterday, and you changed the access control in your environment, and suddenly the job fails because it loses access to the data it needs. Or you changed the environment policy in one place but forgot about other places. Now the same job behaves differently depends on where it runs. Now you are at Data and AI Summit, and you might be wondering, AI can help solve this problem for me.
Unfortunately, AI is making this problem even bigger because every AI agent requires its own identity, its own access to data, and its own environment to run. In other words, every AI agent is also a workload. And now you can imagine what it looks like if you multiply the same problem with thousands of AI agents. At Databricks, we also started with one workload running one environment. But today, we operate millions of workloads across tens of thousands of environments, which led us to a simple question.
How can we make the experience of managing so many feels like one? In the rest of the presentation, I have Clara to talk about the architectural decisions we have made to answer this question, as well as how we build on top of Databricks, so can you. With that, please join me in welcoming my co-speaker, Clara. She's a senior engineer on Databricks Data Platform team. She has been working on this hard problem for the past four years.
Over to you, Clara. Thanks for the introduction. As Peng said, I'm Clara, and I'm going to spend the rest of today's talk leading you through the journey we've been on for the last several years, our journey from complexity to unity, how we got multi-cloud right. Because when you can get multi-cloud or multi-region right, it is so high leverage. It can unlock so many potentials for your team. But when you get it wrong, it can become something that holds your team back and become onerous to manage.
I'm hoping that I can share some of the lessons we've learned along the way, how we got multi-cloud right, so that you can get your multi-region or multi-cloud deployment right sooner. So, how do we get into this better state? Well, we started with one simple principle, we built everything from there. Everything lives in code. This is critical. You need to have a single source of truth that tells you what you expect your platform to look like.

05:49 Everything in code: a single source of truth for your platform

You need to get away from a system where you have admins going in and manually provisioning infrastructure, manually turning on settings, setting up a new identity. It doesn't scale as you grow your organization. It's not going to scale with agents, and it's prone to error, prone to being forgotten, or having a system be reset by accident and losing those manually setup settings. So, that's our starting point. Everything lives in code.
What does this actually look like in practice? How do we implement this? Well, we started with something very simple. The user declares what they want, and they let the platform handle the rest. The declaration is the goal state. It's what our user expects, and sometimes we're the user. It always lives in code, and we use templating languages, like JSON. This allows us to not have to worry about how the user wants to do it.
They can use Scala, or R, or Python, or any other language. It's all going to go to the end into our clear template language to tell us what their goal state is, and that's it for the user. They then hand it to us as the platform and we deploy it. That's our job. We're always compliant with internal company policies so we can make sure that we have control over what's in the system. This is our simple system. We have everything in code and then it's our job as a platform to deploy the goal state.
So that's the users. They're done. But our work has just begun. How do we keep our promise to the users to deploy what they wanted? Well, we created our flywheel to keep systems unified. This flywheel ensures our systems stay the same today, tomorrow, and every day. It's our continuous development system. It starts with that definition, what the goal state is, and then it goes into deployment and remediation. And we're deploying at least every single day.

07:10 The flywheel: remediating configuration drift automatically

So at any point someone's manually turned on a setting just to see what it looks like or they updated a query because they wanted to see what the data was on the dashboard, that's okay because as soon as our next deployment system happens it's going to remediate back to what our goal state is. This ensures that it's not just the definition that's in code. The entire system deploying it also lives there. We're always going back to our goal state.
So that's how we unified our systems and got multi-cloud and multi-region right. And I'm going to spend the next 10 minutes talking to you about how we actually did this using Databricks. So let's get into our first part, per workspace unification. I cannot understate the importance of getting your workspaces into a uniform experience. Your workspace is the foundation of everything you do when you're using Databricks.

08:07 Workspace unification across hundreds of regions

And if you get into a state where you have a shaky foundation, you're never going to be able to build a strong house, a strong data platform on top of it. But how do we even end up with a shaky foundation? Workspaces are simple, right? Well, let's go back in time. We started over 10 years ago as our scrappy little Databricks data platform with one workspace. and everything was going well. We were just in US East 1, we're plodding along.
Our data analysts can deploy their pipeline and it works well and they show their insights to execs and then something kind of funny happens. The execs use those insights and they're able to grow the business. And suddenly, we're in hundreds of regions and we have hundreds of workspaces. And now, when that data analyst goes to deploy their pipeline or set up that dashboard to surface insights to execs, it doesn't always work.
Sometimes it works just fine. Sometimes the pipeline is missing data. Sometimes the dashboard feature they want isn't enabled. And that's because it isn't just hundreds of workspaces we end up with. It's hundreds of differences. Some workspaces have serverless enabled. Others don't. Some have one name for their default catalog. Others have a different. And that's because we built out our hundreds of different environments across clouds and regions and deployment systems over 10 plus years.
That's a lot of time for differences to accumulate. Sometimes a new feature was rolled out and you would just forget to enable it onto a workspace. So we needed to resolve the system. We need to get to that goal state that Peng was mentioning, making sure that we had one experience for every single workspace. And we now know how we want to do it, by getting that clear declaration and by building our flywheel. So we were unable to unlock uniformity with that single source of truth.
As I said, we started with everything living in code, using a single template to define, here's exactly what my workspace should look like. Then we deployed it programmatically. We used the Databricks Terraform provider as well as the Databricks SDK. This gives us one uniform surface to work with our workspace that always acts the same regardless what cloud you're working in or what region you're working in. All of our settings are always being deployed this way.

10:13 Deploying workspaces with the Databricks Terraform provider and SDK

You can now even enable previews using the Databricks Terraform provider or the Databricks SDK. No more need to go in and manually toggle that switch. So, what does this actually look like? We start with a template that can be as basic as this for a starter workspace. All it's saying in JSON-et is here's what I want. As a platform team, our job is then to translate this into Terraform. We use the Databricks provider and say, here's the workspace I want.
This Terraform, we can then deploy every single day. And of course, as Terraform does, it's always bringing it back to that remediated state. It's always making sure it matches the goal. And I want to point something out really important about this slide. We're using the Databricks Terraform provider, not the AWS one. And that's because of something that's really important about workspaces and environments. Databricks unifies the clouds.
With Databricks, we can easily work across clouds and regions and abstract away many of the differences, especially for our users, but also for our admins. regardless of your scenario, Databricks will make it easier. For example, with multi-cloud, you might need to think about what format for my files do I want in each cloud? How am I going to provision identities to access those files? If I want to give access to a teammate, do I need to set up a UDSAS token?
Do I need to change the network configuration for that storage account? Well, now we just have UC. You have your data, you don't have to think about the file format, and if you want to give access to a co-worker, you just do it there with a single click of the button, or in our case, by putting into code that you want that co-worker to have access. We also have things like Genie to dig in and get insights from your data to serve the models you need, which would be much harder and would require a lot more work if you were doing it three different ways for each of the clouds you're working in.
We have AI-BI dashboards to surface those insights to our users, and of course workflows for coordinating our networking, our compute, and our storage all together. So we're doing this all, and with one uniform API, regardless of the cloud or region that we're working in. Now, let's look at our experience before was so disjointed. Well, it's one experience regardless of who you are. For our users, there's no more surprises.
Every workspace is the same. They can deploy into one workspace and be confident it'll work in other systems as well. Also, they're only ever interacting with Databricks, no longer the cloud. They don't need to keep track of the context of three different cloud systems. They just use Databricks. Likewise, it's also win-win for the admins. They have fast updates and enablements. Everything is in code. They don't have to remember, did we forget to turn on this setting or did we turn it off for a reason?
They can just look in the code base. Also, they can only provision identities for Databricks. They don't have to manage IAM roles for three separate systems. They can just focus on one set of rules and have it be applied everywhere. So, this gave us our uniform experience. Our workspaces, our foundation, were now in a strong state. So we could now confidently build that house. But the final piece of our puzzle was the most important.
And that gets us into per workload unification. Workload here, I'm referring to anything you might create within a workspace. That could be a traditional workload, like a job or a pipeline. But it could also be something like an app or a genie space. It's anything you're putting into your workspace. We were in a situation where every team was just doing their own thing. Not only that, many teams had multiple systems.

13:42 One deployment system for jobs, pipelines, apps and Genie spaces

Because a team 10 years ago had built something for creating a job, and then five years ago, maybe wanted to support Spark declarative pipelines. And so they built a new system. But now, maybe they're all heads down on their work. They don't have time to build a third system for deploying apps. And so they were in a situation where often each team had their own thing, each system only worked for certain scenarios, and often they were built to work with one workspace.
And then now that we had hundreds, they just deployed to 100 workspaces in serial. This wasn't scaling. As we grew, and as Peng said, as we had more and more AI agents entering into the mix, having every team manage their own deployment system wasn't going to work. And it wasn't creating that uniform experience. This was trickier to get right. But the payoff was worth it. We did two crucial things. The first was building one shared deployment system.
This is the power of a platform. When you can get everyone using your system, they're freed up from having to build it themselves to work on their own work. We need to be able to deploy within minutes and consistently to get the trust of our users and to give them that value add. So we started by having quick rollouts and quick rollbacks. We needed a way to get the code into the system within minutes, not hours. Next, we built independent failures.
This is really important, especially using multi-region or multi-cloud for something like disaster recovery. It's not true disaster recovery if one region going down blocks your deployments for every other region. With independent failures, we can ensure that issues stay contained to the place where they're currently occurring. And finally, centralized monitoring. With one deployment platform, we can then surface insights about the health of the entire system to our users and to our executive sponsors.
We can give them confidence our deployment system is working as we intend, and we can tell users what's going wrong If they're picking a feature or a DBR version that's no longer available Before every team was managing this themselves When we as a platform invested in creating one system for supporting everyone, everyone got their leverage unlocked Next though, now we had our deployment system We had to figure out what were we actually going to deploy?

15:57 Bring the code to the data instead of moving data

That first part of that earlier system I showed you declarations to deployments. And that gets in to perhaps a more interesting decision we made. Bring the code to the data. This is really critical. No more moving data unless you have a really good reason for it. And the platform figures it out for the user. This has several benefits. First, the compute is running where the data is. This means you don't have to pay either in actual networking costs or in latency for moving data between different geographic regions.
You always know where your compute is, where the data is going to be. We also have a controlled place for our sharing to happen. We use delta sharing, but our boundary is always clear. We're only going to move data when we need to. We can also make sure it's in alignment with company policies to reassure our finance team, for example, that we're not just moving data for the heck of it and paying the networking cost as a result.
And finally, it's always available when you need the data. Because the platform team is figuring out where to place workloads, they can reassure the user your data will be available. No more deploying a pipeline, having it get 90% done, and then failing at the last step because it's trying to do a join to a data set that isn't even there. What does this really look like to bring the code to the data? I'm going to show you an example that I think will clear things up a lot.
It starts with that declaration. This is all the user has to do. They say, here's my project and here's my input data set. Here's what I'm going to be processing. In this case, they're going to be processing this main enterprise log v2. We as a platform are then maintaining a metadata system of all the data in the system. And we can do this because everyone's using that shared deployment system. So we know what everyone is deploying and using as inputs and outputs.
So we take this input and we look up in our metadata system and see where the code needs to go to get to the data. In this case, we see that these logs are deployed in a US East One workspace and a West US workspace. So we're going to deploy this workload to those workspaces. We're bringing the code to where the data already is. Then we're able to do this using unified deployments with Databricks bundles. This is critical.

18:09 Unified deployments with Databricks bundles

The user is never saying, I want to go to West US or I want to go to US East One. They're just saying, here's the input data I need to process, and the platform figures it out for them. So that's what we did. We built one uniform deployment system, and we brought the code to the data. And this was easy to implement because once again, Databricks is the key. We have declarative automation bundles. We have Genie to dig in and get insights.
We have AI BI dashboards to surface health to our users and to our execs. And we have jobs and Spark declarative pipelines. All of these ensure that you're getting the code when you need it. You no longer need to worry about inputs not working. Your compute is handled for you. And you can get all the insights that a platform team should be able to surface. So now that we have all of our workloads running, what are we actually unlocking?
Everyone's leverage is multiplied. And this is the power a data platform team brings when you get multi-region or multi-cloud right. For the user, they're focused on their work. They're not thinking about how to deploy this pipeline again or I have this marketing project, but I'm not sure where the data is. So now let me go dig through five different workspaces for an hour and figure it out. No, the platform owns it for them.

19:28 What uniform workloads unlock: compliance and identity

For the admins, it's much easier because they have complete control over the system. We have easy cost and security governance because we know every single workload that's being deployed and where it's deploying. When a new policy comes along, We can easily ensure we're in compliance with it. We also have control over who's doing what. With identities, it's a single source of truth for everywhere. So, that's it. We had our uniform workloads, and they're built on top of our uniform workspaces.
So, we were operating the same across clouds. Let's return now back to Pong's earlier example. Everyone having to do their own thing, every move incurring a cost. It looks a little different now. Now, everything is easy. Whether you're doing one workload or many workspaces across many clouds, it's all easy, and it's all in one JSON file, because the source of truth is always living in the code. And of course, the platform is handling everything.
That is the power of a platform team. They unlock the leverage of every other team to do their work, and they make it look easy along the way. We've been there. Now you can build on Databricks. Thank you.

Learn more about the Databricks Data and AI platform.

The information provided herein is for general informational purposes only and may not reflect the most current product capabilities or configurations.