Skip to main content

Cross-Cloud Data Mesh with Delta Sharing and UniForm in Mercedes-Benz

Summary

  • Cross-Cloud Data Sharing: Mercedes-Benz achieved unified data sharing across AWS and Azure using Delta Sharing and Cloud Tokens, eliminating cloud vendor constraints.
  • Unified Developer Experience: The integration enables engineers across clouds to enroll in data products through self-service, receiving unified access regardless of cloud origin.
  • Cost and Governance Automation: Monitoring cloud egress costs and tracking data products through unified systems prevents cost overruns and maintains visibility in multi-cloud environments.

Cross-Cloud Data Mesh with Delta Sharing and UniForm in Mercedes-Benz

Watch: Cross-Cloud Data Mesh with Delta Sharing and UniForm in Mercedes-Benz
Talk by Aleksandar Dragojevic, Sr. Resident Solutions Architect, Databricks ; Alexander Summa, Lead Architect, Mercedes-Benz Group AG
In this presentation, we'll show how we achieved a unified development experience for teams working on Mercedes-Benz Data Platforms in AWS and Azure. We will demonstrate how we implemented Azure to AWS and AWS to Azure data product sharing (using Delta Sharing and Cloud Tokens), integration with AWS Glue Iceberg tables through UniForm and automation to drive everything using Azure DevOps Pipelines and DABs. We will also show how to monitor and track cloud egress costs and how we present a consolidated view of all the data products and relevant cost information. The end goal is to show how customers can offer the same user experience to their engineers and not have to worry about which cloud or region the Data Product lives in. Instead, they can enroll in the data product through self-service and have it available to them in minutes, regardless of where it originates.
Here’s more to explore:
Open data sharing for data, analytics, and AI: https://www.databricks.com/product/delta-sharing
A new approach to data sharing: https://www.databricks.com/resources/ebook/a-new-approach-to-data-sharing
See all the product announcements from Data + AI Summit: https://www.databricks.com/events/dataaisummit-2025-announcements

Chapters

FAQs

Why does Mercedes-Benz use multiple cloud providers?

Mercedes-Benz uses AWS, Azure, and GCP strategically based on cost and technology factors. For example, moving workloads between hyperscalers based on pricing, or using specialized services only available from specific providers. Multi-cloud is pragmatic but requires unified data management.

How does Delta Sharing enable cross-cloud data sharing?

Delta Sharing provides a protocol for secure data sharing across organizations and cloud providers without copying data. Combined with Cloud Tokens, it enables Mercedes-Benz to share data products between AWS and Azure securely while maintaining a single source of truth.

What is UniForm and why is it important?

UniForm (Unified Format) enables AWS Glue Iceberg tables to work seamlessly with Databricks Delta tables, creating compatibility between different table formats. This enables cross-cloud environments to standardize on compatible technologies despite different cloud-specific tools.

How does cost tracking prevent cloud egress overruns?

Monitoring and tracking cloud egress costs across data product sharing helps Mercedes-Benz anticipate billing and optimize data movement. Understanding cost patterns enables informed decisions about data placement and sharing strategies in multi-cloud environments.

Full transcript

0:00 Introduction and context

All right, I think I'm audible, right? Perfect. So, thanks for joining this talk even during lunchtime. And I see that some of you brought your lunch boxes with you. This was a great decision. I think we have to share this forward-looking statement but probably you know that by heart when you visited several breakout sessions and we don't have to say too much to that. So let's come to the more exciting content of this session and we would like to share with you some details about cross cloud data sharing at Mercedes-Benz and we would like to share our journey with you also the challenges we had in the past year to establish that and when I say we we have two Alexanders on stage for you one from data bricks and another one from a cited this and from data bricks will introduce himself shortly.
Thank you. So hi everyone nice to meet you. Thank you all for coming. Feel free to call me but to avoid the confusion. So let's keep it like this. Uh so I am I am a senior resident solutions architect with our professional services team in Switzerland. So bit far away from here and I've been working on projects like this with Peris for quite a while now. Um my background in general is in software engineering and data engineering and these days I mostly do like platform architecture and platform development so to cover topics like platform deployment engineering data sharing etc.
Thank you. Thank you. And I'm the second. Um I'm working at and I'm there responsible for the central data product marketplace and in my team we are also owning the company by data brick setup for. All right. I think nowadays we still see a trend towards multicloud setups especially in larger companies and this is also reflected by the setup that we have at Mercedes-Benz and if we take a look at that we for sure have setups at AWS we are using Azure and also for some special purpose services we are also using GCP and in the center of that we have um an an in-house developed data marketplace which is of course also leveraging data bricks and data sharing.

1:58 Data sharing challenges

Now I think there are two main reasons why we are having this multi cloud setup. The first one is cost efficiency. So it's not uncommon that we are moving workloads from one hyperscaler to the other due to um cost reasons and the other main reason is technology. So often we find special features only uh provided by one hyperscaler and then it's not very uncommon that we have applications that make use of different services from different hyperscalers at the same time.
Now you could say okay everything is fine what is the problem now? Yeah why are there challenges regarding data sharing and especially you can say hey we have data bricks data bricks is a multicloud tool. Yeah, there is Unity catalog, there's data sharing. What is not working easily or where are we having issues? And I mean if you take a look at this um picture, let's just imagine that on the left hand side we have two business units using AWS.
On the right hand side we have maybe business business unit number three uh which is using Azure. Then we have Unity catalog established on both sides. data sharing is working and even if we have setups where datab bricks is not at the center of the architecture you can still use the open um data sharing protocol to get access to the data. So everything looks fine, right? But let's maybe now make a reality check of this let's say pure data mesh paradigm and I would like to show you now one concrete example from Mercedes-Benz and this example is connected to the advanced advanced quality analysis.

4:24 Case study and requirements

So this is let's say a big system we are having in after sales because we are very interested in the performance of our cars and especially how the customers are perceiving them. And what we are doing there is we are collecting data from the cars and in the system we roughly have 60 million vehicles. We are talking about 4 um six billion events and we are collecting the data on the one hand side from workshop visits and on the other hand side we're getting data over the air directly from every vehicle and this amounts up to roughly 600 terabytes at the moment.
This is completely processed and hosted on AWS and native AWS tools are used there. So everything is more or less an iceberg format. Then a certain subset of the data is also very important for other use cases let it be predictive maintenance or other things. But these use cases in these projects they are making use of Azure. So we have to make at least a subset of this data accessible also on Azure side. So far so good.
And if we take a look at this, okay, this is the situation. We have the analytic the um the advanced quality analysis data on AWS and it needs to be consumed on Azure side. But there are two topics we also have to consider here. And the first one is what about egress costs? Yeah, when terabytes of data are leaving AWS, this can get quite expensive over time. And another topic is also data formats. Yeah, of course, iceberg is nice on AWS side, but what about all the data consumers sitting on Azure side that are very used to Delta and of course they don't want to leave their uh roads.
Yeah, they want to stay with Delta, of course. So, what what can we do here? And if we take even a closer look at let's say the cost efficiency topic, let's just make a small example here. Yeah, let's assume and this is roughly the situation at that we have 50 use cases on Azure side that need to consume roughly 25 terabytes each per month. Yeah. And when you gen let's say uh do a rough calculation this amounts to $60,000 per month regarding equest costs.
Yeah. And this increases over the year over time. So this pure data mesh paradigm of following just let's say normal data sharing here um is causing lots of costs and this means also that this direct data access is by far too expensive especially for this very popular and large data set. So to sum it up until now we saw two challenges uh one year ago when we started a project together with data rigs and these two challenges were on the one hand side minimizing the egress costs.
So we need to have a mechanism that we can bring these equest costs down and we also need to have a flexible mechanism. Yeah. That we can decide maybe we need to sync a certain data set or maybe we just allow the direct data access. And in addition we also want to have a proper monitoring and cost tracking more or less um in time. Yeah. and life that we also can easily identify if some costs are running away. And the second requirement that uh we were having is the data format compatibility.
Yeah, as mentioned in that example and we have also other cases in the other way here the data is stored in the iceberg format. many data consumers are sitting uh on Azure side and they are expecting delta normally and we have to make sure that we somehow um satisfy their needs and also let's say um provide the data in a compatible format and with that I hand over to who will describe a little bit more how we tackled these two challenges thank you very much So going to some technical details how we actually implemented this.

9:09 Data mesh design strategy

Um so let me just quickly jump into the entire concept of data mesh. So for those who are running into this like for the first time or haven't really implemented it before. So in general what data mesh means is that have you have typically multiple what we call data domains. Uh so different business units or different sub parts of your company generate various data products. So it's usually multiple business units. They create data products and those data products usually need to be shared with either with other external units with other customers etc.
And in our case um that has to be done across cloud boundaries right so if you're typically within one region that's fine you know you can just leverage Unity catalog natively for all the sharing functionality that works wonderful. Um but if you need to share across the cloud boundary or across even a region boundary then it gets a bit more complex and usually a lot more expensive. Uh so what we do and how we implemented this is actually what said uh we leverage delta sharing meaning that we use this as mostly I would call it a highway to move the data from point A to point B.
However, uh you can imagine like in a typical distributed data mesh scenario, you have different uh let's say consumers and producer patterns. For example, you can have five different producers and 10 different consumers all sitting in a different regions. And if we were to allow those data to be queried live, that can be really expensive because at the end of the day, you need to move each pieces of data to 10 different environments.
And for each of those, you have an egress cost. And those $62,000 that were mentioned just now, that's only for 10 data products, right? Tomorrow or in two years, you have hundreds of them. And that number can spike high to the point that it's most of your cost. So instead of paying for compute for storage, you're mostly paying for eager's cost. And just as a point of reference, how much money that is quite accidentally the 62,000 is roughly the price of the new AMG C43.
You can go and buy and go to Vegas and back for the same amount of money, right? instead of you know just sending bunch of the same data every time. Um yeah so there is a very important concept when we try to access the data remotely or through data sharing it's called data freshness and data latency. So what data freshness means is basically how old is the data you're trying to access with regards to the source system.
So if you would typically use delta sharing as you would normally do that means you just access the source data directly freshness is what we would call very recent meaning that you always access the data as it's being published by your data product producer of course in that case if your data source is in US and you're cuisine from Europe you have some latency like basically network latency you can't really go around that and for a lot of data that can pile up meaning that there's always that trade-off.
You have to pick and choose like which one that you want at the end of the day. So how we actually went around this um instead of moving terabytes of data every day now you have few options to do. So if you remember we already set up this delta sharing between these cloud regions. So we already have a travel we can pull the data. Now the question is how do we make sure we are not always pulling the same data or we're not doing that twice.

12:38 Technical implementation

So here what we did is basically we're making this what we called local replicas of all the data products. So the moment the data product is needed in another cloud we go ahead and synchronize it from data product like provider A to consumer B and that is typically a mesh let's say just for the sake of example it's only two workspaces or two regions you just move uh data from point A to point B. Now to make sure again you're not spending money few ways of doing this.
Uh simplest approach that people usually take is just take the copy of everything move it once a day. But again we're here talking about hundreds of terabytes of data. So back to the square one. Um there we came up with an idea or let's call it a solution to leverage something called a deep clone in delta. So it is an operation and if you never used it, it does very one very specific thing. It clones the tables. However, it only clones the differences.
So anytime something changes uh and when you run your deep clone operation, it will only transfer the delta of those changes. So it doesn't move the entire 100 terabyte table, only moves the data that was added or just propagates any deletes and any updates. meaning that uh you kind of get the best of both worlds. Like sure there is some latency involved to the point of low data freshness depending on how often do we run these sync jobs but at the end of the day you're only moving the chunks that changed and not everything.
So um how this looks like in our case so let's say in a very simple scenario we have this provider metas store in Azure and recipient meta store in AWS. It doesn't really matter but the important part is there are two distinct uh environments right so what we do in our case the data product on the source side is just a catalog right so however we call it and we create through delta sharing a data catalog on the recipient side as well so that gives you direct access to the data from a consumer like to the data product however on top of that we also spin up what we call a sync job so it's basically a tool that we developed that can actually take some configuration and do this replication for you.
So I will go into it uh into detail on next slides but the important thing is you can give it tables to sync schemas to sync some configuration option how often do you want it to run once that gets deployed it will continuously cycle and replicate all the changes for you. So what you end up with is having two let's call it data sources one which is your source data through delta sharing and the other one is clone. So you can see it here on the slide.
It's two orange boxes. Um now problem is like how do you decide which data to use? So what we decided is basically to leave that decision to the consumers right. So it's up to them if they need the freshest data they can always query the source but they will pay the cost of figures obviously or if they take the clone or the local replica obviously the access is now more or less free right. Of course, uh since we're mostly talking about time series data and those typically tend to have hard cutoff points, uh you can mix and match.
You can take like past three months of the clone data and last 24 hours of the precious data that just gets fetched over delta sharing. Now you have both. You can create a view on top of it or you can just write your job to do that for you. So in general uh it tends to work quite nicely uh with these with these type of use cases. Another thing that happens is that we also run a vacuum operation uh as an option to this deep uh after this deep clone is run.
So reason being that again we don't really need to keep the history in the clone we are always referring to the source of truth that's shared through delta sharing and another one sometimes some data really needs to be removed or revoked due to GDPR reasons for example we need to remove a certain car from the data set so once the data source actually removes that vehicle information delta clone deep clone will actually pick it up sync it and when after that we just run a vacuum to cleaned up.
There's no really need to keep the history around and uh we always keep the latest date anyway. So we kind of hit that point with the regulatory issues as well. So um we mentioned costs quite a few times. Uh but the important thing is unless you track them, you don't really know what's going on. So that being said, how we built this sync job is does it very two very important things. First obviously is syncing the data across the column boundaries.

17:24 Cost tracking and monitoring

Second one is it can actually track uh the amount of data that's being moved across cloud boundaries and we actually keep a record. So we have a two specific tables here. So every time the sync job runs it will write the statistics information. So how much data was moved and we use that afterwards to aggregate and actually attribute the costs. So on top of these every time the sync job is created we actually tag it. So we tag it with the data product name uh the name of the job the name of the data domain.
So for each of these runs once they run and they are configurable. So some of these can run once a day some of them run every few hours. Uh but after they run they get written to this statistics table and what we do we actually have a dashboard that aggregates all these costs for each data product on the same view. So with these tags that we actually propagate to the underlying jobs into the sync, we track both the cost of serverless we actually use to run them the cost of egress and even optionally you could use the same tags on a data source to get like complete breakdown of the cost.
So like how long like what's the price of creating the data set what's the price of running the sync jobs and what's the price for actually doing the egress here. So you kind of have this consolidated uh TCO on everything and you can always drill down into it. So you can see it per data product or even per table. So we also uh give the breakdown on the table level meaning that at some point if it happens that there is a huge spike in cost for one of the data products we can actually figure out why and when it happened.
So here on the top diagram you can actually see it. So there are a few spikes and usually what it means it's either a first sync or the data producer just decided to repartition everything for whatever reason it happens. So there is a significant data movement at that point. Uh but the rest of them are really really small. I don't know if you can see them through here hopefully but dayto day it's only like really minuscule amount of data being moved.
So you effectively amortize the cost of this transfer over the upcoming days. And I would say for most of the data products you basically just a few spikes until the initial uh data transfer completes and after that you're just free to just moves incremental updates over time. Obviously here just using system billing table uh from data to track everything. So for serverless costs it's written there and for actual cost of figures we do it through our own table.
But at the end of the day everything is aggregated at one place. So uh how this looks in practice actually so previously let's say we were moving like 60 terabytes of data weekly for this 10 data products and now only significant data movement happens uh when there are major source updates so something's added like huge amount of data added huge amount of data removed or we provision a new data product right so I would say very rare And on eager's costs from 5,000 weekly we basically come down to 150.

20:18 Performance results

So that's a significant improvement. And now you can imagine uh this is for 10 data products if you have 200 of them. Uh again more expensive but still it wouldn't be 50k per week. It's let's call it 500 right. So basically everything is pretty much advertised and uh we run everything on serverless. Uh the reason for that being so these sim jobs uh there's a lot of them because we set up one between every pair of regions uh to keep and maintain the state.
So two things to keep in mind we don't have to worry about the cluster provisioning cluster setup. So these jobs right now they run in a few minutes, right? One or two minutes each. Uh they're very efficient, they're very fast, they only move the changes and also by that definition since you're not really wasting time on waiting for the cluster to start up and start processing, start working, it just drops down the price considerably.
So right now it's about 20 $20 per week to run everything. And most of these run uh I would say daily. So as that changes the price will probably go up but definitely not uh overdo it right. So um now a very important part is how do you actually implement this in production like as I said you can have five or 10 different providers 20 or 30 different consumers you need to be moving the data around all the time and obviously if you try doing that manually uh it will probably fall apart you will make mistakes.

22:02 Automation and orchestration

So that part we automated to the extent that it was possible with a different tooling that already existed and that we also built um in general. So I will go into it a bit later. So there is a very important piece of product in which is called dynamic data exchange or DDX. So it's the data marketplace source that we use to register data products and that's the place you can actually consume the data products from and it also takes care of setting this up.
So, I will go into that a bit later, but important part is that's your like go-to place to see what data products do you have and pick ones that you want and if you're approved, it just lands in a workspace. Uh, but for the actual sync job that does the data movement, um, it's actually just a Python, let's call it Python app, Python wheel app, uh, that we developed and it's, uh, works mostly on a configuration. So you give it basically source and target schema, source and target tables, uh some other options like should it vacuum afterwards or how long it runs.
Uh so we developed that and basically we just orchestrated through data access bundles and push configuration there. So here we are mostly let's call it declarative. So you don't have to go and for these through these jobs just write each specifically. So we leverage uh Asia DevOps pipelines quite a bit here for orchestrating everything. So what happens is that we have a let's call it a templating mechanism. Um just it's a normal Asia DevOps template.
I don't know if you use it if not it's very similar to GitHub actions. I think most of them got expire inspired from let's call it inspired uh from one another. Um and taking that basically what it means that we have this template in Asia DevOps and it takes care of like deploying this data asset bundle and asset bundle itself just basically spins up a job that does the replication through serverless. It loads the artifact this Python wheel for it and on top of that it just supplies the configuration.
So I will show you how it looks like roughly. Uh but the important part is um it looks kind of like this. So the moment you actually want to set up the replication between regions uh it ends up just being created as a one file that gets checked into GitHub. You give it some configuration like uh target workspace some human readable names. Obviously you give it schedule like for example this one runs every day at 2 in the morning. uh give it some tags uh so you can track it and do a cost attribution and give it actual data to be synced for example here we are syncing the entire schema from source to target and tell it to vacuum but obviously if you need just a subset or some tables that's also pretty like pretty easy to define just list everything that you need and once you check it this in and it gets to like your normal PR review process as pipeline picks it up and uses these variables to fill the template and just deploys the job through dab to databicks workspace that's actually a target for this data product.
So we made everything pretty much declarative. So it's also pretty easy to work with. So anyone can just come in contribute hey I have a new data product needs to be synced create some configuration through it and it just starts working basically gets deployed. So uh how this ecosystem looks like. So I mentioned the DDX quite quite a while and quite a few times and now this is the a very important piece and uh very important place to actually continue working and what we are doing.

25:53 Ecosystem and future outlook

So DDS itself it's sort of a meta catalog meaning that uh right now we do data bricks but obviously you have data bricks deployment data bricks meta store. So you see metas store in the US, you see meta store in Europe and meaning that you have to coordinate both of them somehow. Obviously there are some changes in the product coming that's going to make that easier but right now we we do it through DDX. So both of them registered and how this works is that you as a data product owner can just go and register your data product in DDX.
So basically you give it a name, give it a type, is it like a unity catalog or is it uniform? like if it's iceberg or if it's ADLS or S3 like direct parket files from a data lakeink. So you just register a data product give it a description and from that point on you own it and whoever needs to consume it will basically have like a browsable interface and you can find the data product, see the information, see some sample data, see the schema and the most important part is that you can access or request access to the data product.
So you know it normally goes like a normal review process someone gets a notification um they approve it obviously give you a go go go ahead what happens afterwards just automated process kicks in a bit so in case like if it's data bricks to data bricks catalog would be created for you you would get access rights and you would be able actually to consume the consume this product from that point on so in general we tried making this as self-service as possible.
Uh to the extent that obviously you will have hundreds of the data products going and at the end of the day the platform team shouldn't really be responsible to the point of who uses what but just enable producers and consumers to actually work together because at the end of the day uh the goal is to really make this as straightforward as possible, as efficient as possible. um just to at the end of the day just remove any roadblocks and uh like work allow people to work with the data they need and where irrespective of wherever it is.
Uh now we come with a this design kind of comes with a few bonus points. One of them being the disaster recovery and that's kind of a twofold. So first one being since you're already actually physically replicating the data from point A for point B and also true DDX replicating the metadata it means that you have your data on two different sites right so there's nothing really saying hey you have to replicate between Asia and AWS you can also set up replication between Asia West Europe and Asia East Europe right so it's let's call it a two-folded uh effort to make things as resilient as possible and also for the entire I think um configuration wise right if for whatever reason this uh replication goes down since we keep everything configuration driven and declarative you can just spin up the existing Asia DevOps pipeline and it will redeploy everything could be the same workspace could be a different workspace meaning that you just trigger it kicks it off and recreates pretty much everything so all the jobs get recreated um sync gets kicked up uh cost tracking gets updated um so it uh we kind of tried making it as uh as lean as possible I think for the for the end user so um now for the future and where do we want to go after this uh so for hopefully most of you have seen the keynote announcement today so there are some let's call it the big changes to iceberg support in UTL coming along so most of it will be announced tomorrow but uh suffice it to say it's going to be a lot more easier to natively run iceberg as data products in unity catalog right so it's something alongside unifor you will see tomorrow not allowed to say too much uh but as said a lot of the data products that we currently have reside in iceberg so basically they're output of glue some of them write iceberg some of them write delta so right now what we have is a certain process that takes the existing iceberg data products and turns them into delta and that's basically what we use for u for sharing as a data product.

29:43 Conclusion and Q&A

So that's something that we want to improve. Um so just allow basically iceberg and all those glue based data products to work natively alongside everything else that you have on top that obviously uh delta sharing etc everything as I said uh tomorrow's keynote uh don't miss it um the other part is right so the orchestration is currently as I said it's run through configuration obviously that's not the only way to do it uh you can also write the app you can write create an API to manage these.
So for now, we decided to keep this for like reproducibility reasons. So we can easily review what's going on, what's being changed, uh so you can have some traceability. Obviously, that's not the only way to do it. Um you can make a choice to have this API driven like you have a process to configure all these replication things through the API and that's something that will probably be implemented at some point as the number of these data products grows. uh just to keep it easier to implement it like integrate it with the rest of the DDX ecosystem.
So at some point when you have to set up this collection for the first time like when you spin up a new site or a new workspace or a new region there has to be some sort of uh infrastructure setup. So you need to create storage accounts delta sharing recipient provider. So that's currently done manually. uh but that's something that will probably be improved at some point once uh once we as we continue developing uh developing the tooling.
So at the end of the day um you know the point here is first to be efficient obviously no point in wasting money on if all that you're doing is quering data somewhere else. But if your queries return 98% of the data being the same or the actual bytes being the same don't do that. Go around that. And yeah, we tried also making it very much cost aware like you've seen the dashboards uh and as this scales to 200 data products it will be more and more important and obviously you know attributing these costs uh through different cloud providers.
So we have Asia, AWS, GCP um and after that even cross billing them to the data providers. So you know right now they have a dashboard to have a look but maybe some point in the future there will be report that they can consume and just get on a monthly level hey this is the amount of money that was spent on egress cost for your data product we should settle it internally like depending on the actual process. So, and yeah, last but not least, fast.
As I said, uh most of these run in minutes, right? So, typically when you go and replicate 20 terabytes of data, it takes hours. When you do it through deep clone, it only takes hours the first time you do it and the rest it only takes minutes. So just you have at the end of the day you just have a lot of very very small very efficient and very cost- effective jobs to move move your data around instead of just moving landslide of data every time that you need to make an update.
Um I think also very important point is here this is um as we try making it as resilient as possible we also try making it as hands off as possible. So the moment you set this up, it's expected it's going to work and it's going to selfheal in case of any issues. So we did run into some issues like on the let's call it storage configuration a few times. Uh but the end of the day uh any issues uh that happen like uh replication broke half the way for whatever reason like network connectivity the next time the job runs or actually we have the auto run like uh retries already set it'll just go and correct any changes because at the end of the day what deep chrome does it just tries to makes the source and target as well 100% consistent uh between them.
Cool. So uh with that's the end of the session. Uh if you have any questions feel free to yell. It's a big big audience. 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.