Skip to main content

Cross-Region AI Model Deployment for Resiliency and Compliance

Summary

  • Cross-region resilience: This video explains how enterprises can deploy AI models across multiple cloud regions to ensure resilience against outages and GPU shortages.
  • Compliance-driven architecture: Learn how geographic distribution of AI models helps organizations meet regulatory requirements and serve distinct user bases across regions.
  • Load balancing strategies: Discover how to implement load balancers to route user requests optimally across regional deployments for both availability and performance.

Cross-Region AI Model Deployment for Resiliency and Compliance

Watch: Cross-Region AI Model Deployment for Resiliency and Compliance
Talk by Greg Wood, Lead SSA, Databricks ; Tony Farias, Senior Solutions Architect, Databricks
AI for enterprises, particularly in the era of GenAI, requires rapid experimentation and the ability to productionize models and agents quickly and at scale. Compliance, resilience and commercial flexibility drive the need to serve models across regions. As cloud providers struggle with rising demand for GPUs in environments, VM shortages have become commonplace, and add to the pressure of general cloud outages. Enterprises that can quickly leverage GPU capacity in other cloud regions will be better equipped to capitalize on the promise of AI, while staying flexible to serve distinct user bases and complying with regulations. In this presentation we will show and discuss how to implement AI deployments across cloud regions, deploying a model across regions and using a load balancer to determine where to best route a user request.
Here’s more to explore:
Unified and open governance for data and AI: https://www.databricks.com/product/unity-catalog
See all the product announcements from Data + AI Summit: https://www.databricks.com/events/dataaisummit-2025-announcements

FAQs

Why should enterprises deploy AI models across multiple cloud regions?

Enterprises benefit from cross-region deployment to handle GPU shortages in specific regions, ensure resilience against cloud outages, and comply with data residency regulations that require serving users from specific geographic locations.

What challenges does this video address in cloud infrastructure?

This video covers VM shortages due to high GPU demand across cloud providers and the complexity of leveraging GPU capacity in different cloud regions to maintain business continuity and support diverse user bases.

How does load balancing work in cross-region AI deployment?

The video demonstrates using a load balancer to intelligently route user requests to the best available regional deployment, considering both region availability and optimal performance for each user's location.

What tools and platforms are discussed for implementing this architecture?

The video shows a practical implementation using Azure Databricks along with other cloud components to demonstrate how to set up and manage AI models across regions for production workloads.

Full transcript

Hey folks, welcome to the breakout room session led by and on cross region AI model deployment for resiliency and compliance. Without further ado, I'll give it up to them. Hi everyone, thanks for coming. I'm Fious and this is our talk on AI across your regions best optimized for where your users are for compliance for resiliency purposes. So first let's talk a little bit about why this talk is important and why uh you should set up your organization this way.
Yeah, thanks. Uh here's the obligatory forward-looking statement. If you've seen any data bricks uh presentations, you've probably seen this a bunch of time. I don't think it really applies to us, so I'll just keep going. And so what are we going to talk about today? Uh first a little bit about what is resiliency and redundancy really mean for AI models? Why would you want to do it? Probably you all sort of have a reason for being here.
So you you might understand all these things already. Uh but you know good to set some context. Uh then we'll talk about what does it look like on data bricks to set up those models to do geo distribution to do resiliency and we'll do a little example and demo of uh something that we set up uh using Azure data bricks and some other components. We'll talk through what those are and then we'll wrap up with some takeaways and such.
Uh so first off what is resiliency and redundancy really mean for AI models on data bricks and AI models in general? Um, you know, first off, there are a growing number of reasons and seems like, you know, new reasons every single day, uh, why you'd want to think about, you know, hey, I've got a model in this region, it's running great. Why do I need to think about something else? You know, first off, there's always new GPU models, new GPU GPU VMs coming out.
Some of them are going to be available only in certain regions. Some are only available in certain clouds, right? If you want the latest Nvidia uh chips, you may need to use certain uh regions or clouds to get those and you know having an edge on those things can actually make a big uh impact both on the model on the business outcomes of those models that are being driven and all sorts of other things. So you know latest and greatest SKUs on the clouds certainly one reason uh residency and compliance right we hear about this all the time uh as as sort of data bricks employees we're trying to solution this kind of thing and this is a again one of those things where it seems like every month every year certainly there's a new compliance depending on where you are and so being able to direct your users to the right model in the right region uh not only is that going to improve their uh sort of results of the model, but it might mean the difference between getting hit with a fine or not, right?
If you direct a uh UK user to a US model and you end up having some breach of data, that's not a good thing. So, regulatory compliance, data residency, huge concern. Uh user experience, again, uh being able to get to the model that's closest to you, uh is going to drive the best user experience. you know, if I'm sitting here in the west and I end up trying to access a model in Australia, it's probably not going to be as good as if I just hit something that's down the street in San Francisco.
And then finally, uh, you know, coming out more and more flexibility and lock in. It'd be really nice if I was able to deploy to not only multiple regions, but even multiple clouds. So you know if tomorrow Azure gets really expensive for some GPU or in some region I can switch to AWS I can switch to GCP or some other cloud that might come out tomorrow right so having the flexibility and not getting locked into a single cloud or a single region uh can be really impactful and just gives you peace of mind as you're developing these systems and integrating them into your business.
So, if this hasn't happened to you, you're really lucky. There's a ton of outages, a ton of new things happening that are really difficult to deal with, right? Uh even just this morning, there was a big chat GPTE and uh and OpenAI outage, right? So, being able to account for these things ahead of time, again, I'm sure everybody in this room has has dealt with this at some point. Uh but, you know, just to say, you don't know what's coming in the future.
So if this hasn't happened to you yet, it's probably going to happen to you like 10 times in the next month. So hope none of that happens, but if it does, we're here to help. So what is geo distribution and resiliency look like sort of at a very high level uh on the cloud and on data bricks, right? So first off, having a central repository definitely key. Having a single place to deploy from and a single source of truth for your code and your models is super important.
Deploying that into your code and IDE environment and having the data there to sort of train those models and get them deployed also super important. And then having some kind of catalog or registry for those models that you can then deploy a serving endpoint to. uh again sort of need to have that parallel infrastructure in both regions in this case could be multiple clouds uh and finally you know the user piece having a endpoint where I'm a user I just want to go to that endpoint I don't want to point to east I don't want to point to west just give me an endpoint I want to hit that and I want to be directed to the right place um so yeah this all sounds great unfortunately it is a little bit difficult and there are some you know if you've tried to build this out you probably have dealt with all this yourself.
Uh, first off, you know, having that centralized deployment isn't always the most straightforward thing. I'd say that's maybe the most straightforward piece on this slide, but it's not always easy in itself. Data again is is maybe always the biggest challenge. Moving data is slow uh and deploying it to multiple places at the same time is expensive. So having you know feeds into each region separately uh basically costs twice as much uh not just from the storage point but also from the processing point.
And then you know if you have differences between those two datas you're going to have differences between your models. So if you know region B is a day behind region A, your model might be different between those two, which again user experience not great. Uh and all kinds of other things that come with data drift. Uh governance, you know, having the serving endpoints, being able to serve to the right people, um you know, if there's classified data, if there's regulated data in those models and those endpoints, having governance on those is super important. as everybody knows getting more important by the day.
And finally, again, you know, enforcing that the right people go to the right place uh from the load balancer from the front end perspective gets pretty difficult too as you're building this out yourself. So, how do we build this on data bricks? You know, we obviously are a bit opinionated, but we think that there's some really good pieces that data bicks has built out to uh to deal with some of these challenges. And Tony's going to walk through what those look like.
Thanks. Yes. So part of the reason for this talk is now is a really good time to be thinking about implementing these not just because of the challenges uh mentioned the rapidly evolving landscape but because data bricks has come out with a number of tools out of the box that will help you solve this problem. So our goal is to show you an opinionated architecture that you could bring into your organization today. Um I'll list out some of the tools and then we'll go and show what that those look like in practice.
First we have the fact that data bricks workspaces and code have git repos uh built into the data bricks interface in workbooks in collaborative notebooks so that you can solve at the source layer for your code being available across environments. Then at the model layer uh we have the combination of Unity catalog and MLflow 3 that will allow within a region your models to be centrally registered, discoverable, permissioned and with the addition of MLflow 3, we have native model CI/CD deployment capabilities where whenever something changes with a model, you can start a workflow, a data bricks job that can then handle deployment across regions or across crowds as well as validation of your model.
AI gateway is another feature uh that helps with tracking which request went where. So we do that through inference tables. Every request made of a model is logged within its its table in the region. We can also have controls around performance and rate limiting uh at the level of each endpoint. And then also endpoint level controls. We have uh model serving which is scalable uh serverless per region. So saving you costs by being able to scale down or up when according to demand.
And also uh we have our agent framework which we'll talk about the special case of uh deploying agents across regions as well. And then finally we combine that with a single endpoint uh single point of contact and we can build a number of rules uh using a cloud CDN. So we'll show that. So, so solving for some of the challenges that mentioned, uh, we have controls at the workspace code level, controls for sharing at the model level, and controls for sharing at the endpoint level.
Uh, we'll talk about some of these slides when we go through the demo. So here's the uh the architecture of the demo we'll be showing. For the purposes of the demo, we'll only show three regions. Uh I'm sorry, two regions, but know this is extensible across a variety of different regions. Um and so we'll start with central US as the source of where I'm registering a model. Let's start with a very simple model. So without diving too much into the model being trained simple uh sklearn model but the key point I want to show is given mlflow 3 capabilities we can specify where we s this model in unity catalog and we register that to a particular unity catalog location.
In MLflow 3, models are uh native objects. It's the MLflow 3 interface is a lot more model ccentric. So whenever you save a model, it's now registered in Unity catalog. You'll see here I ran that code. It registered here in uh the central US environment. You can see that up top here. And I have a version of the code of the model that's been registered. I can see the endpoint active endpoint where it's been registered uh deployed to.
Uh so deployment uh as uh here in in a particular URL. So this is region specific. This is serving in in a central US endpoint. I've also set up a inference table uh where any request that comes to this central US region will log to this inference table. I can see the model name being served here and I can see latency characteristics that have been been sent to this endpoint here. Uh so how do we do cross region deployment?
Well, MLflow 3 provides this deployment job functionality. So if we see what a deployment job looks like, it links you can set a number of different tasks. Uh these could be validation of the notebook uh of the particular model. So does it conform to certain performance characteristics uh and also deployment to different regions. Let's have a look at the deployment task notebook. Okay. So here we're using API uh to deploy in our native region uh central US where it's running.
But then we can also leverage model sharing capabilities of delta sharing to copy the model over uh to another region. So I'm going to copy it to UK South region here. And you can do this per per region. And then I can also deploy remotely from central US using the UK South uh URL and then whatever authentication method I choose to then set this up in UK South region. So every time that I make a change to this model, uh it will register it will kick off the deployment job for the model and rerun that task.
So the latest version of the model is passed through to the UK south region and I could have it with multiple regions as well. Now this is a uh that was a simple genai model. Some of you might be deploying agents and might be looking at uh agent deploy. Agent deploy has a few key characteristics on what it deploys for you. It creates model serving endpoints for your agents. There could be multiple LLMs registered to that single agent endpoint.
It'll provision some short-lived service principle credentials. So allowing you pass through authentication from your model to your tools. That's going to be important if you're calling different agent tools uh and giving you those same credentials that you've set up in one region to the other. It'll enable inference tables if you tell it to. It will give you live monitoring metrics of the agent. So agent deploy doesn't just deploy a single model endpoint for servicing the request but also a feedback model endpoint for uh monitoring of that quality of that agent.
Uh and then um finally any metrics around that agent are also deployed as part of agents. deploy. So agents. deploy will be uh luckily works in a very similar interface. Let's pull that up so so we can look at it. Okay. So I've created a separate Genai model here. So we have a uh agent being deployed. I can register a number of tools in Unity catalog tools and that copying must be registered separately. But thanks to capabilities like uh git, you know, your functions you define in one region, you can then run that same notebook in another region to define all of your UC tools.
Uh and so I've I have a agent here that's going to answer questions about uh data bricks documentation. So it uses a set of tools to answer questions about data bricks documentation. Uh very similar to the other flow but instead of just calling to register to a particular endpoint my deployment job can set um we can call agents. deploy deploy in the source region. And then in our deployment task that's registered to this job, we can call agents. deploy.
Uh we can do the same uh set of capabilities here. Call agents. deploy in the region we're running from. Share the model via delta sharing. Register it in the remote workspace. And then agents. deploy deploy luckily works with uh setting environment variables as well. So we tested this in Azure workspaces, we tested this crosscloud as well, Azure to AWS. If you set the data bricks host and the data bricks token, you also have to set a an experiment.
Uh but it you can register it across using one line of code agents. you can deploy in your current workspace as well as AC across region. Uh and so you have model endpoints now across the regions as as mentioned. Here's an example of deployed agent uh with a where the requests are taken but also the feedback model deployed and uh it registered in central US and also here in UK South region. So now we have our our agent across regions.
I am in I've using VPM here to pretend I'm a user in the UK and we can use tools like Azure Front Door which is a a CDN that Azure provides uh to uh register both our workspaces into groups. So we have our central U or UK workspace in a group and our US workspace in a group. We can also have default groups. So here's where you can start to register more and more workspaces for central uh for centralized location. And then Azure uh front door is going to register a number of different rule sets that you can configure.
Here we're doing geo matched rules. So if I if Azure front door URL gets a request from a user in the UK, it'll route to our UK origin group from the US uh to our US origin group. And so this way we can through a single URL when we call uh the Azure front door URL we can register the call any query passed out to a uh to the relevant endpoint here. So uh I ask what is MLflow and we'll receive the result of the agent hitting the UK endpoint uh which you'll see gets logged as a a table uh an entry in the table in the UK and also all of the performance metrics of that particular uh call to the UK get registered in the UK workspace.
So a setup that uses native data bricks tooling out of the box using data bricks jobs uh to register the model across regions and then here uh we use the cloud CDN to route to the different regions but each region will keep its set of metrics and its set of questions asked for better compliance across uh being able to see which questions were asked in UK, which questions were asked in the US and so on. I just want to point out too um part of the whole point of this specific setup was just how simple that is, right?
Like this takes 10 minutes to set up that front door profile. Um there's a lot more you can do with that with AWS CloudFront with GCP's version of CDN. Um even out of the box you get like roundroin uh priority based routing, you get failover from uh you know waiting and different things like that. So it is uh a very simple setup and that's kind of the point. You can do a lot more if you need to do things like uh SQL warehouses behind a a a front door CDN.
You can do that. If you want to add more specific rules, if I have certain VPN gateway ciders that I know are within a, you know, west, central, and east, I can break those regions down further. Um, but part of the reason here we wanted to show it like this was it's really simple to set up. Uh, and it uses pretty much everything out of the box without any custom coding. So, just wanted to point that out. You know, these tools are are pretty robust and they can meet a whole bunch of different use cases and different requirements.
Um, this one just, you know, happens to be something that is really relevant. you know uh uh data residency and uh geoloccation is super important and it also happens to be super easy. Okay, so that was our demo. Now I I do you know probably pretty obvious this is pretty uh manual a lot of it it's not necessarily production but it's not that far to get to production which is actually pretty cool. uh and that's part of the great part about using out of the box uh functionality and these cloud provider tools, right?
So if I did want to say bring this into a production framework, uh first off, you know, we talked about centralized deployment a little bit, definitely would want to uh bring those code and models and those notebooks that we saw into a centralized place so that if say east or central does go down and now I need to move things to west, it's a lot easier to just switch my front door and then switch my sort of development pipelines over to a functional region.
Um, now I do want to point out because I'm a DR guy, this is not really DR. This is resiliency and availability. Uh, DR is a whole different thing, but sort of the point of this is this is not DR. This is really easy and it's pretty cheap compared to setting up a whole DR system. So, um, just wanted to point that out. Uh, region scale out. Another thing, right? Obviously, another great part about this is if I have that front door, that CDN set up, um, my users don't need to know where they're going necessarily.
So, if I want to fan out to a whole bunch of more regions, I just add those to my origin group. And that's what I would do, you know, going to production. Uh, devstage prod obviously well-known pattern. Everybody probably knows that. We'd want to do that. Bring that into this. again very easy to do with those tools that we have uh within data bricks because it's all integrated with git and it's all integrated with um you know those pipelines that we can set up uh governance and security right again every company's going to be a little bit different on this uh we didn't show things extensively like the AI gateway like Aback um that all comes into play here and then uh for agents there's a lot more considerations which knows a lot better than I do Yeah.
Uh so tools weren't covered as part of this MVP. Uh you certainly can deploy your UC tools uh not via delta sharing but you register and run the code across the regions and you can do that via remote execution as well. Uh just to point out as well we used all serverless products here which is where the governance and security also comes in depending on what your enterprise policies are. So just to uh recap this a little bit and some takeaways.
Um first off, you know, business obviously drives everything. Um I mentioned DR that might be necessary. You might need to set up a completely separate region with its own self-functioning uh processes that don't rely on delta sharing from another region uh or that can deploy their full workflows. Uh, so you know, first off, before you do anything, figure out what you actually need. Figure out your SLAs's. Um, if if West goes down completely and it's going to be down for a week, then where are you going to be and what sort of business needs are driven by that?
Yeah, you might have when it comes to the uh load balancing aspect as well, maybe it's it's about compliance across regions. So, you need to think about how to set that up strictly. Maybe it's about performance and latency and uh front door has capabilities on that as well. Routing to the lowest latency region. Yeah. Uh designing with redundancy, right? I think that's always a good idea, especially in this day and age.
You know, a lot of people ask uh when I talk to them, hey, can I just use a load balancer? Do I really need a CDN? Uh well, unfortunately, most of the cloudnative load balancers are regional. So if your load balancer is regional and your region goes out doesn't really help you. So you know things like that just things that you need to think about as you're designing these systems. How do I share things across region?
Do I need my full data sets in all my regions? Can I just do delta sharing? Uh these are all things that you need to sort of think about with redundancy in mind. further consideration uh it's you have to think about how to validate uh you the performance of your models luckily MLflow 3 provides a lot of those capabilities of being able to see performance per region and that's all logged out so you can design uh logic as to you know when you see performance degrade in a certain region what's going to be uh the action of your your rule set um if you have faulty infrastructure then uh you you know design exception handling to catch that and remove something from rotation.
A lot of that built into these uh native CDNs as well. What we really want to emphasize is uh we're hoping to package this together and release it out to the wider group. Using as much out of the box tooling is going to mean you don't have to reinvent the wheel. Uh so here we aim really to think about data bricks native components and how you can use that to make this process less painful uh and design with whatever objectives you have in mind.
Yeah. And again to emphasize you know things like availability SLAs's DR all play into this uh they're related. Um you know talk to me about that if you want to talk about DR I'll talk to you about that for as long as you want. Uh we will put together sort of a blog post on all this have some source code to share uh some Terraform templates all that kind of stuff um following you know once we have some time to put it all together but um you know again this took maybe a day to set up.
It's not like it took us weeks and weeks to put together. So it is really designed to be pretty simple and out of the box use as much as possible. All right, thank you so much. We'll take questions.

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.