Delta Sharing in Action: Architecture and Best Practices
Summary
- Open data-sharing protocol: Delta Sharing revolutionizes enterprise collaboration as the industry's first open protocol enabling secure, no-copy sharing across platforms and clouds.
- Expanded asset support: Share beyond tables to include dynamic views, materialized views, federated tables, read clones, and unstructured volumes for comprehensive data collaboration.
- Enterprise governance: Implement managed network configurations, OIDC identity federation, and cost-optimization strategies to future-proof your data-sharing architecture.
Delta Sharing in Action: Architecture and Best Practices

Talk by Darshana Sivakumar, Product Management, Databricks ; Mengxi Chen, Engineering Manager, Databricks
Delta Sharing is revolutionizing how enterprises share live data and AI assets securely, openly and at scale. As the industry’s first open data-sharing protocol, it empowers organizations to collaborate seamlessly across platforms and with any partner, whether inside or outside the Databricks ecosystem. In this deep-dive session, you’ll learn best practices and real-world use cases that show how Delta Sharing helps accelerate collaboration and fuel AI-driven innovation. We’ll also unveil the latest advancements, including: Managed network configurations for easier, secure setup OIDC identity federation for trusted, open sharing Expanded asset types including dynamic views, materialized views, federated tables, read clones and more Whether you’re a data engineer, architect, or data leader, you’ll leave with practical strategies to future-proof your data-sharing architecture. Don’t miss the live demos, expert guidance and an exclusive look at what’s next in data collaboration.
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
0:00Introduction1:08Data sharing challenges2:11Delta sharing solutions3:12Delta sharing benefits4:15Use cases4:59HP case study5:49Ecosystem growth6:15Investment themes7:20Lakehouse federation8:10View and table sharing9:03Data filtering11:21ABAC policy13:40Governance demo17:16Open sharing workflow18:35OIDC token federation20:06OIDC token demo23:02Iceberg interoperability24:12Iceberg sharing demo27:47Networking friction28:58Network gateway29:43SAP partnership31:33Best practices32:59Query optimization33:57Cloud token direct access37:07System tables case study39:35System table scaling41:00Connector selection41:29Egress cost management43:38Session wrap-up
FAQs
What is Delta Sharing and how does it differ from traditional data sharing?
Delta Sharing is an open protocol enabling no-copy, secure sharing of live data across platforms and clouds without vendor lock-in, preventing costly data duplication and staleness.
What types of assets can be shared with Delta Sharing?
Beyond tables, you can share structured assets like dynamic views, materialized views, and federated tables, plus unstructured content including volumes with PDFs, images, and models.
How does OIDC identity federation improve data sharing?
OIDC token federation enables trusted, open sharing workflows where identity providers issue tokens, allowing seamless authentication without sharing credentials directly.
How can organizations optimize egress costs with Delta Sharing?
The video covers best practices including system table analysis, connector selection strategies, and direct cloud token access to minimize egress expenses while maintaining security.
Full transcript
0:00 Introduction
Good afternoon. Welcome to this session on delta sharing in action architecture and best practices. I am Dashana, a product manager on the delta sharing and collaboration team here at datab bricks and my co-presenter is, senior engineering manager on the team. Before we get started, we must show you this very important slide, our forward-looking statement. Here is our agenda for the session. This is going to be a deep dive session on delta sharing and we'll be sprinkling in some awesome demos for all of you to see.
We'll talk about what delta sharing is, how customers are using delta sharing today. We'll discuss themes of investment and what's new with delta sharing. We'll talk about a very exciting new partnership with SAP, the integration which is powered by Delta Sharing. And then we'll top the session off with best practices so you can gain the most out of Delta Sharing. Secure, flexible, and open sharing propels innovation in organizations.
1:08 Data sharing challenges
It helps elevate customer experience, improve business outcomes, provide a competitive advantage. However, data sharing is complex and expensive today. Why? Firstly, most sharing protocols are proprietary and they result in vendor lockin. Other methods like SFTP are manual and quite errorprone. These methods don't allow seamless sharing of data across platforms and clouds. Second, most sharing methods result in data duplication.
This means you're dealing with multiple copies of the same data, copies sometimes going stale, and the operational overhead and the cost associated with all of that. And finally, most sharing methods are not built for today's age of AI. That's why we built Delta sharing. First, it's an open sharing protocol. You don't need to be on data bricks to use it. Even if you are on datab bricks, you can share with recipients outside datab bricks.
2:11 Delta sharing solutions
So truly, you can collaborate across platforms and clouds seamlessly. Second, with delta sharing, it isn't a protocol which copies data. It's a nocopy sharing protocol. So, you're not dealing with multiple copies of the same data, copies going stale, and the cost associated with all of that. And finally and very importantly when you use datab bricks managed delta sharing you can share more than just structured tables with it you can share unstructured arbitrary files.
We call these volumes. These can be PDFs, images, video files. You can also share AI models and notebooks. When you use delta sharing on data bricks, you get unity catalog under the hood for governance as well. So let's double click on what open sharing and no copy sharing means a little bit more. As a data provider, you don't need to be on datab bricks to use delta sharing. You can spin up your own delta sharing server and start collaborating.
3:12 Delta sharing benefits
Even if you are on datab bricks, you can share to recipients outside datab bricks. We have connectors to many popular tools like PowerBI, Tableau, Spark, Java and so on. And in fact about 40% of shares that go from datab bricks today go to recipients outside datab bricks. So what does no copy sharing mean? As a provider when you make an asset available to a recipient basic metadata is exchanged between provider and recipient but there isn't any copy of that data that's made.
It's only when the recipient runs analytics on their side that data movement happens from provider to recipient. the recipient always has access to live fresh data from the provider. So that's why we say it's a no copy sharing protocol. Customers are using delta sharing today for a wide variety of use cases. Of course, lots of customers are doing internal sharing across business units. Customers are also breaking down organizational silos and sharing data using delta sharing with their vendors and partners.
4:15 Use cases
Third party data providers like IQVR Faxet they are distributing license data using delta sharing and SAS partners partners like SAP, Oracle, Twilio, Atlassian they are allowing customers to bring SAS data from their platforms into data bricks and even vice versa in some cases using delta sharing. So let's talk about how one specific customer is using delta sharing. Today HP is revolutionizing their 3D printer business using delta sharing.
4:59 HP case study
Previously they had all this fragmented 3D printer telemetry data that they weren't able to share seamlessly with their customers. Enter data bricks managed delta sharing. They're able to share this 3D printer telemetry data seamlessly in near real time and their customers are able to do predictive maintenance on top of this data. Overall, this has enhanced efficiency, reduced downtime and truly boosted customer experience.
HP actually did a deep dive session on this use case on delta sharing yesterday at summit. So in case you missed that session, feel free to take a look at the recording which will be available online soon. So since making delta sharing generally available about three years back, we've seen skyrocketed adoption, there's an over 300% year-over-year growth in Delta shares. And as I mentioned previously, the value prop of the fact that you can share with recipients outside data bricks has really excited customers.
5:49 Ecosystem growth
Over 40% of shares that originate on data bricks go to recipients outside datab bricks. We've been working very hard on making delta sharing better for all of you. And our primary themes of investment have been as follows. First, we've been working on making the ability to share all types of data assets, diverse array of asset types. Second, we've been working on being able to collaborate with anybody irrespective of whether the recipient is on data bricks or outside datab bricks.
6:15 Investment themes
And finally, very importantly, we've been working on making Delta sharing a friction-free sharing experience. We have a lot of awesome capabilities that we've introduced recently across these different themes. So, let's dive into each of these. First, let's talk about sharing a diverse variety of asset types. I already mentioned that with data sharing, you can share tables, files, notebooks, AI models. Now we're happy to share that you can share even more diverse asset types using delta sharing.
The first is through sharing for lakehouse federation. So let's assume in your organization you have finance data in snowflake. You have marketing data in BigQuery. You have transactional telemetry data within datab bricks. Using lakehouse federation, you can leverage a single SQL engine within datab bricks to process all of this data without ingesting the external sources into datab bricks first. With sharing for lakehouse federation, you can delta share these foreign assets without first ingesting them into datab bricks.
7:20 Lakehouse federation
This capability is available in private preview with public preview coming very soon. And we support a wide variety of foreign sources or federated sources including signaps, Azure SQL, Redshift, Snowflake, Bitquery, and so on. I'm sure all of you here are familiar with materialized views and streaming tables. MVs are precomputed views that are built on top of a base table and they refreshed on a regular cadence. And streaming tables are basically live delta tables that have streaming data coming into them.
8:10 View and table sharing
We're super excited to share with all of you the public preview of MV ST sharing with GA coming very soon. Previously in our private preview, you could only delta share MVs and STS to data bricks serverless recipients. Now you can share MVs and STS to all recipients including open recipients. And with our upcoming GA, we're adding even more capabilities like the ability to share views built on top of MVs and STS and the ability to build views on top of shared MVs and STS.
Next, let's talk about data filtering capabilities. I'm sure all of you here will agree that fine grain access control is super important in enterprises, right? You want to make sure that within your company has access to all the right data so he can get the job done. but he doesn't have access to anything more than he's supposed to have access to. There are two ways to think about fine grain access control when it comes to delta sharing.
9:03 Data filtering
The first is through dynamic views. With this capability, you can slice and dice data into views and make views available to your recipients. Within your view definition, you can leverage the current recipient function to conditionally apply filters based on who your recipient is. So in the example here, if my current recipient tier is paid, then they can view customer contact information. Otherwise, we redact that information.
So this capability is available right now, generally available. And there are a couple of things to keep in mind with respect to dynamic view sharing. So if we trust the recipient compute, if the recipient is within the same databicks account as the provider, right? Or the recipient is using data bricks service even if they're on a different databicks account, we provide direct access to the underlying data. If the recipient is an open recipient, for example, we prefilter the results of the view on the provider side before making it available to the recipient.
And we do this because delta sharing is a file-based sharing protocol. We want to make sure that the recipient gains access to only what they're supposed to gain access to. So if pre-filtering happens on the provider side, there is some compute which is utilized. There's also storage which is utilized to store the temporary materialized results. And of course you need to make sure that the storage of the temp materialized results are accessible to the recipient.
So network connectivity considerations as well to keep in mind. View sharing has been one of our most popular recent launches. We already have thousands of customers using this in production today. So highly encourage you to take a look and leverage it and share feedback with us. So the next way of thinking about dynamic fine grain access control with respect to sharing is using a new paradigm for governance within Unity catalog called Aback or attribute-based access control.
11:21 ABAC policy
So how many of you here have attended sessions at summit this time with uh where Aback was discussed in detail? Maybe there was a UC session. Okay, so seems like some of you but not actually a lot. So very quickly, what is Aback? Aback allows you to set dynamic contextsensitive policies on tops of groups of assets within Unity catalog. And you can think of Aback as the next gen of the more traditional RLS CM paradigm for fine grain access control within Unity catalog.
So Aback consists of attributes, right? These provide context about assets, users or environments. An example attribute could be a column tag. Here in this example, you can see the SSN column is tagged with PII. A bank also consists of policies. These are rules that dictate users access by looking at attributes. So an example policy could be if column is tagged as PII then mask the column. And what's awesome about Aback is inheritance is followed across the UC hierarchy chain unlike traditional RLSCM.
Right? So policies are attached to cataloges or schemas and they apply downwards. So we're super excited to share that Aback within Unity catalog is now in private preview. But we also have delta sharing of assets, tables, MVs, STS which have Aback policies enabled on them. This is possible right now in private preview. So if you are a privileged user on the provider side, you're excluded from an Aback policy associated with the table.
You can delta share the table. Previously, we did not allow sharing of tables or assets with RLSCM. Also on the recipient side, you can now construct aback policies on top of shared assets. We're alo also going to support traditional RLSCM application on shared assets on the recipient side. So if you're interested in participating in this preview, we'll share a QR code at the end of this presentation where you can sign up.
And with that, let me pass the baton over to show you an awesome demo of some of these capabilities. Okay, cool. Cool. That was a lot of great features. Now, let's see a live uh recorded demo of them uh working in action together. All right, let me first talk about it. So, this will be a demo of sharing materialized view streaming table and federated table together over to a recipient and then govern that with attribute uh based attribute based access control policy.
13:40 Governance demo
All right, cool. Now we have finally have it playing. So now let's imagine I'm a data provider. I'm try I'm preparing a data set to help another BU of my nonation to do data analysis on some consumer uh customer cohort analysis. So for this I will need um streaming table which is propri son. He's a big uh data bricks DT user and he used that for all of the ETLs. And now I have this e-commerce sales streaming table available.
And for this data analysis, I also need to pull in this tech sector performance which is the materialized view. Also as we are doing the customer cohort analysis, I also need to pull in some external data that reside in snowflake which are about the sales supplication. So in this case my colleague have already set up a lakehouse federation connection to snowflake. And now let me grab uh two tables from here. Online user activity and uh customer retention.
Now let's switch to the delt sharing UI where I will be packaging all of these different uh diverse data sets together. Streaming table materialized view and foreign tables together. And now let me share with my recipient. Cool. Now flipping persona to the recipient side. Let's imagine I'm a data administrator on this uh recipient site and what I'm trying to do is to install this share to be ready for my data scientist and there's one more thing I need to take care of because some of these this customer datas actually contains PII information and I want to govern that with the attribute-based access policy.
So only authorized user has the access to the PII. All right. Now let's see how that's done. Uh, as you can see, I already have this share installed in the catalog. Now, let's go to the catalog. On the catalog, there's already a policy created. Let's click into it and see what's inside. As you can see, this is a policy aimed to mask PII information to only authorize user. And this policy applies to all of the account user.
And uh the policy target type is a column mask. and it's targeting all of the tables and schemas within this catalog. And for this column mask function, it's pretty simple. If the user is in this PII access group, they can't see the PIs. Otherwise, it will be masked. Now, let's go back to the customer information tables. As you can see, I've already tagged some of the PII columns uh with the PII tags in here. And together with the catalog level policy enforced on this table, I should be able to see like my data scientist should be able to see masked information.
Now let's go to the sample data tab data tab and see. Okay, as you can see all of the PII columns has been properly masked and now this data set is ready for the data scientist analysis. All right, cool. Back to you. Awesome. Thank you. We've been doubling down on our open sharing value proposition by making open sharing even more secure and working on iceberg interoperability. But before I dive into the specific features that we've launched, let me provide a quick refresher on how open sharing works today.
17:16 Open sharing workflow
So if you're a data provider on datab bricks sharing with an open recipient outside databicks, there is a profile file that you distribute with this recipient. The profile file contains your sharing server endpoint as well as a bearer token. Your recipient uses the information in the profile file in tools like PowerBI Tableau and consumes con contents from the share. I want to point out a couple of things with regards to this workflow.
First is there is a bearer token which is exchanged between the provider and the recipient. Second, the bearer token tends to be longived. Third, the life cycle of the bearer token needs to be managed by the provider. And finally, the provider can't specify individual users or groups within the recipient organization who can consume contents from the share. They can specify IP ales that the recipient organization should adhere to, but not individual users or groups.
We're super excited to bring to all of you the general availability of secure open sharing with OIDC token federation. This truly elevates security of open sharing. With this feature, providers can bring their own IDPS or their recipient IDPS, IDPs like Entra ID in order to mint tokens on behalf of recipients. So we spoke about the workflow previously. Here there is no secret sharing that takes place between provider or recipient or data bricks.
18:35 OIDC token federation
So very secure secretless sharing. Second, the tokens are short-lived. Third, provider doesn't need to worry about life cycle management of these tokens anymore because the IDP does it on their behalf. And finally, and very importantly, the provider can specify individual users or groups within the recipient organization who can access the underlying share. So much more fine grain access control. We support two scenarios for this capability.
The first is U2M authentication. This is where you have human users interacting with the underlying share with support for Tableau and PowerBI clients. And we also support M2M authentication where you have a machine interacting with the underlying share. So we have OOTH client credentials grant flow with a Python and Spark connectors already available and we have support for managed identity with Azure VM coming very soon.
20:06 OIDC token demo
And so back to show you a demo of how this works. All right, cool. So this will be a demo of U2M authentication flow using Microsoft intra ID to access share data in PowerBI. All right, let's imagine I'm a data recipient. I'm trying to access some of the uh per sales performance data data shared with my by my provider and I want to restrict this access to only trusted uh authorized user in my intra ID tenants. So here's how do I do that?
So first there's two key piece of information I need to grab from the Azure portal. First is the Azure Azure intra ID tenant ID. Let's take a note of that. And now let's go to the groups and um let's find the group I want to grant access for and note their group ID. Now I will share these two information with my data provider who will set up their delta share as normal and they will come to this here to create a open oidc federation recipient and after that's created let's grant the share to the recipient and in order to control access the provider will come here to configure a OIDC policy and in this case the issuer URL will be the intra ID's login URL with the tenant ID in case and for the subject claim we're going to use group with the intra ID group ID input here.
All right. And lastly for the audience since this is going to be accessed from PowerBI, we're going to input the PowerBI intra ID uh app ID into the audience. And once I click save, a OIDC profile URL is generated for the data provider to share with the recipient. Now the recipient opens up uh user opens up PowerBI to access the share data. They first go to the delta sharing uh profile URL and grab the delta sharing server endpoint uh which they will input into powerbi and now they will start the signin process which is in this case federated through the recipient's intra ID and the user will sign in as usual and they will be prompt for multiffactor authentication as their IDP configured and after signing in the recipient now have access to the share fair data inside PowerBI which they can use we can which they can start consuming with drag and drop to render a bar chart of the sales performance data.
And to quickly recap in this demo we showed using the recipients identity provider but with the OIDC policy actually allow you to configure whatever trusted IDP to use. It could be also the data providers and so you can configure that accordingly. It's very flexible. All right. Now back to you Daran. Thanks. Last year there was a lot of chatter on data formats. What's the best data format? Is it iceberg? Is it delta lake?
23:02 Iceberg interoperability
Last year we acquired tabular and the founders of iceberg joined datab bricks. The founders of delta lake are also here at datab bricks. We strongly believe that fragmented data formats are not helpful to all of you our customers and not helpful for our industry and our stance is data bricks works out of box irrespective of the underlying data format and delta sharing follows suit. We're super excited to share with all of you full iceberg interoperability for delta sharing both on the provider side as well as recipient side.
As of today, you can delta share managed iceberg tables as uniform to both data bricks as well as outside data bricks to open recipients. You can also as a recipient consume shares within iceberg IRC compatible clients including snowflake. So why not take a take a look at a demo of how this works instead of talking more about it. Awesome. So I know this will be a big big demo u many are anticipating. So let's do it live.
All right cool. So let's imagine I'm a data provider. I have this piece of daily weather forecast data hosted in data bricks in the delta format and now I want to share it. I want to deliver it to one of my customer who is using snowflake. How do I do that? So the first step will be enable uniform. So with uniform it pro it automatically generate iceberg metadata behind the scene without needing to rewrite any of the data files and uniform provides interoperability between delta and iceberg formats and enable iceberg any iceberg reader client to access.
24:12 Iceberg sharing demo
So I have this command prepared here which I'm going to enable column mapping iceberg compatibility and uniform on my table. Now let's run it. All right with that run successfully my table is all set and let me add it to the share. Cool. I have added to the share. Now let's go to the share if it allow me to click. All right. As you can see have same piece of daily weather forecast data in two uh in both emperor and metric format and I've already sharing with an open recipient.
Now let's flip to the recipient side. So as the recipient I will get a activation URL from the provider in which case I visit this page and I've already download my share credential file and now I click the slow snowflake logo and I will upload the share credential file I I just downloaded and now I'm going to select the share I got and select the emperor format which I want and next I will click generate SQL which will automatically generate the SQL command and can use in snowflake to install this share.
Now let's go to snowflake and copy this paste this command in. So let's first walk through what this is doing. So the first command is to create a iceberg catalog integration inside snowflake. As you can see the source is iceberg rest catalog table format being iceberg and uh as you can see the rice catalog URI is actually a deltra endpoint hosted in datab bricks and another thing to call out is access mode in this case it's vended credential which means snowflake will use the credential vended by the deltrain endpoint to directly access the table files in the cloud storage and for authentication I'm just using the bear token included in my share credential file.
And now let's name our catalog as uh uniform delta sharing. All right, the second command is to create iceberg table inside the catalog I just set up. So let me name the table as well. All right, cool. Now let's run this command. So as you can see, we have the catalog created. Then now let's create a table. This command could take a few second to run. A snowflake is uh preloading the table as it creates. All right, I have the table created and now let's run our select start.
Cool. I have the query result here. And keep in mind this is a live query going direct against the delta table that's hosted inside data bricks. And also as a recap, this is a demo of sharing to snowflake but with uniform and the iceberg rest catalog API implemented by deltshare. It actually enable you to share your dollar table with any iceberg reader clients including AWS Google, Trreno or DMU. Cool. And now let's go back to the presentation.
27:47 Networking friction
Awesome. Thanks. To make delta sharing a friction free sharing experience, we are very excited to bring to all of you Delta Sharing Network Gateway. But before talking about the specific capability, let me provide some color and on what the current pain points are. So as a data provider, you have data behind a storage bucket which is behind a private network. You want to make it accessible to your recipient without exposing it to the public internet, right?
Similarly on the recipient side, you have your infrastructure that's behind a private network. You want to collaborate with the provider without compromising your infrastructure. So what's the workflow that happens today? Provider needs to allow list recipient IPs to make sure recipient is able to access storage buckets. Recipient similarly needs to update their egress firewall to make sure that they can access provider storage buckets.
And this as you can imagine can become quite complex if a provider is sharing with hundreds thousands of recipients and vice versa. And network security admins are getting involved now in this entire workflow. So we're very excited to present to you Delta Sharing Network Gateway which will be in private preview very soon. We're already accepting uh interest. So if you're interested in signing up for this, let us know.
28:58 Network gateway
We'll share a QR code at the end of this presentation. And very simply how this works is atmax one-time provider makes a connection with datab bricks storage gateway service. So one time you enable your storage to access our storage gateway service and after that we do all the heavy lifting of being able to of enabling you to collaborate with any number of recipients. Similarly if a recipient is on data bricks irrespective of whether the recipient is on classic or serverless we automatically connect to storage gateway service.
So seamless collaboration can happen with multiple providers. Next, I want to share with you a very exciting partnership highlight with SAP. Using delta sharing, we enable birectional sharing of data from SAP business data cloud into data bricks and vice versa. SAP needs no introduction. SAP has over 400,000 customers today. Very likely your organizations also use SAP today. More than 90% of Fortune 500 organizations use SAP for so many different use cases, revenue, cash flow, profit forecasting, production optimization.
29:43 SAP partnership
Yet our customers and perhaps you've experienced this as well have told us that bringing SAP data into data bricks or data platforms like data bricks is complex today is expensive requires replication not very performant and customers are bringing all this data to leverage our data intelligence platforms capabilities for analytics machine learning AI. So we're very excited to bring to all of you a data sharing integration that will make this process very simple.
We have a launch coming up in Q3. You can bring both custom as well as curated data products from SAP BDC into data bricks. You can share back to BDC as well. BDC is an end-to-end cloud analytics platform on SAP itself. So what BDC does it takes away the heavy lift work of creating data products from scratch. So they take away the ETL requirement and it comes out of box with a ton of uh curated data products. So again, if you're interested in learning more, we actually did a deep dive session on this integration just before this session.
So we highly recom encourage you to watch the recording and we're also happy to connect after this uh session uh to share more about this capability. And with that, I will pass it back to share more about delta sharing best practices. Cool. Thanks, Dar. That's a lot of great feature and capability got unpacked. So as someone from the engineering team, that's particularly exciting for me to see them deliver to you guys on the customer to empower your data sharing use case.
31:33 Best practices
And now let's change gear a little bit. We also want to share with you some of the best practices over delta sharing to hopefully you know improve uh your data sharing use cases. So I'm sure many of in the audience have already used delt sharing or you at least used it once and you probably would agree with me that getting your first share setup is pretty easy. is just a few click of work. But as you continue to grow and expand your data sharing use cases, there are things you need to pay attention to get right as they scale.
So in today's session, we're going to talk about how to what you can do to optimize the query performance. We're going to look at a large scale data sharing use case inside data bricks of this data bricks system table. And we're going to talk if time allows we're going to talk about you know ways to consume share data reducing egress costs and then the best practice won't stop here. My colleague and below have given two great talk yesterday about how to manage network security how to choose the right sh data sharing product for your use case and you can catch up with the recording once it comes online.
And now let's first start with uh performance. So I want to give a little bit context of how data access is given when you are delta sharing. So in traditional delta sharing we use pre-signed URL which is leveraging the cloud native presign URL to provide temporary and secure access to the data files. So upon in the delta sharing flow upon the recipients make a query to the shared data the delta sharing server will load the delta metadata files and then to perform initial data skipping decision to determine what are the files that need to be accessed by this quer and for all of the files that need to be accessed it then generate a pre-signed URLs um and then all of the and then all of the URL payload it need to be returned to the client as you can see this could be a bottleneck for a very large table as very large table could end up with millions of files that need to be pre-signed and then need to be transferred over.
32:59 Query optimization
So as a solution in modern delta sharing we introduce another mechanism called cloud token direct access. The key difference here is delta sharing will use a scoped down cloud IM token to provide the client with access to the root directory of the delt table and that would that brings the benefits of uh data processing mostly on the client side which will be more efficient and then it also completely eliminates the need to pre-sign each files and then transfer them over.
33:57 Cloud token direct access
So with cloud token direct access from our benchmark result it could actually yield comparable query performance as you're quering a local table. You must ask how do I leverage cloud token direct access. The answer is history sharing. So in data bricks to data brick sharing when you shared your table with history we automatically leverage cloud token to provide the recipient with direct access. Besides the performance benefit we talked about, it also enables client side data skipping which is more efficient inside the database runtime and also it enables uh operation like CDF and streaming as well.
At the same time it support all of the latest and greatest delta feature. Two caveat to keep in mind. History sharing is not available when you are sharing only a subset of the table. For example, a specific partition as in those cases we cannot given the root level root directory access and also direct access is not yet available in uh data bricks to open sharing. Now let's look at some numbers. So according to our benchmark results using the TPCDS3 terabytes data sets.
As you can see, the first column is local and the middle column is shared with cloud token and it's very comparable performance with only 5% difference and well it's 7x faster comparing to sharing on preset URL and the gap could be smaller if your table is smaller and also history sharing has been enabled default for all of the newly shared D newly shared D2D table since uh late 2024 and since then we have seen in 5x more shared table now optimized with uh with history sharing and the way you can tell is to look at the data source field on your table on your share table if it's delta it means you are already on board but for those who are still on delta sharing you can still easily retro enable using alter share at table with history command and for performance we won't just stop here in data bricks we have been working on more performance optimization to bring to you out of the box for example batch URL signing to improve the signing performance and uh in the upcoming DVR release you will be able we deline will be able to leverage spark IO cache to accelerate your subsequent query made it to a shared table and in data bricks we are continue working on more performance optimization in the data brick server side and also uh we have planned to open source the delta sharing direct directory based access so you can leverage them in D2 as All right, cool.
Now, let's to look at data sharing at scale. And as I mentioned, we'll do a case study of data brick system table. In case you're you haven't used system table or not familiar with it um these are the tables that lives inside the system catalog uh under inside UC which is aimed to provide customer obility of obserability over the entire data bricks platform and under the hood it actually used delt sharing to deliver 20 plus system schema to all of the data bricks users.
37:07 System tables case study
So if you're using system table you're kind of already using delt share. Now let's take a look of how it works. In this diagram, this is a data flow of data brick system table. On the left hand side, it start with a a data bricks internal data capture over any billable, auditable or feature usage event and those event is later streamed into a internal workspace that present in every database regions for initial data ETL.
And once the ETL is done, it's the data is then delta shared over to the destination region. On the destination region, the data will go through additional data enrichment and compliancees treatment after which it will be materialized locally onto the destination regions meta store. Now it come to the final step is to deliver this prepared data to the customer and again the fulfillment is done through delta sharing D2D sharing over over the same region.
Now let's talk about some of the scales uh the scales system table data sharing is at as I mentioned it's doing a crosscloud data sharing across 60 plus all of the region that data bricks uh operates at among all of the three cloud and some of the tables it could be system table could be extremely large if you think about your audit log your billing log those tables are in multiple terabytes with millions of files and also system table need low latency ETL to meet their tight data freshness SLA and since system table went GA it has become very popular which means there is a super high query volume to Delture and with a 30 plus million million plus query made monthly and also the data sharing is very large scale it's sharing from 100 plus provider metas store to all of the data with customers metas store so now let's take a look at what are some of the best practices we used To scale system tables data sharing it start with predictive optimization.
39:35 System table scaling
Predictive optimization enable automated data maintenance on your source table using optimize or vacuum command to improve the delta uh delta files layout and also clean regularly clean up some of the unused data. This is in general beneficial for del sharing and for the data recipient as it means there's less file need to work with and also it's query changes. So system table leverage continuous streaming via DT or jobs to perform incremental refresh which speed up the ETL and improve the data freshness.
And as I mentioned earlier, there's a super high query volumes which could means there will be unbounded cross region or cross cloud egress cost. And to mitigate that, the data is being materialized locally to each region. So when is serving all of the queries in region without needing to worry about egress cost and lastly is to automate the management. system table has been using uh Terraform to programmatically manage the delta sharing provider recipient shares object and also it later have evolved into its own services.
I think we're a little bit over time so I'm gonna skip a few slides here but feel free to let us know if you have uh uh you want to discuss further we're happy to meet and then lastly I want to talk about managing costs in data sharing. Though as stealth sharing itself is free, there still could be other cloud provider cost uh included involved in data when you are sharing data. For example, data storage, network transfer or most predominantly the data egress cost.
41:00 Connector selection
Imagine if you are you know sharing data internally across many G distributed BUS or if you are a data vendor who need to serve a customer base across the globe. In such cases, data egress cost could be invaluable when you are sharing out of region out of cloud. So I want to highlight a few key features to help you mitigate uh egress cost. First is Cloudflare R2 which is a data storage options that you can leverage and it guarantees zero egress cost.
41:29 Egress cost management
Cloudflare R2 is already supported within data bricks unity catalog which you can use to host your the data you are sharing and then stop worrying about egress cost and data bicks we have also developed a solution accelerator to help you monitor your egress cost. It's allow you to connect your delta user log to your cloud storage access log for uh egress cost attribution analysis. So you understand uh the egress cost from each share or over to each recipient.
And nonetheless in some cases it might be still worthwhile to consider replicating the data locally which you can replicate the data locally to the region you're uh to the region you are serving to. And to do that you can you you will first delta sharing the data over and then you will set up a delta deep clone to create the initial clone and afterwards you can leverage change data feed to perform incremental refresh to keep the clone in sync.
All right, I know we're kind of over time here, so I'll just wrap up today's session here. And uh as pro as mentioned, we have a bunch of QR code here for the Deltar ebook and we have the private preview of um signup code for sharing to iceberg client and also uh for the delt sharing network gateway as well as the S SAP BDC do share integration. So feel free to take a picture and uh yeah we also look forward for your uh feedback and you can which you can submit over in the apps.
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.