Sub topic 13
Costs, Limits and When to Use Something Else
This chapter assumes you have read the earlier chapters on shares, the REST flow with pre-signed URLs, and recipient profile files. You should be comfortable with object storage, bearer tokens and Delta tables. The goal is to help you decide whether Delta Sharing fits a given sharing need before you adopt it.
Where the costs come from
Delta Sharing does not copy data. That removes one cost, but others remain. The costs depend on who pays for what.
| Cost | Who usually pays | What drives it |
|---|---|---|
| Storage | Provider | Size of the Delta tables, including old versions kept for history |
| Data egress | Provider | Bytes the recipient downloads through pre-signed URLs, especially across regions or clouds |
| Sharing server | Provider | Running the open-source server, or the platform's sharing service |
| Compute to read | Recipient | Spark clusters or the machine running pandas |
Egress is the cost most often underestimated. The sharing server only returns file URLs, so the recipient downloads the files straight from the provider's object storage. Every full-table read pulls every data file the query needs. A recipient that reloads a large table every hour can generate large transfer charges for the provider.
Ways to control cost
- Share partitioned tables so recipients can filter and download fewer files.
- Use the incremental reads from the earlier chapter. Reading changes from a starting version moves far less data than reloading the table.
- Share a curated view or a smaller table instead of a raw table.
- Place the data in the same region as most recipients.
- Where the platform supports it, use a cloud-specific mechanism such as Cloudflare R2, which does not charge egress fees.
Limits to know
- Pre-signed URLs expire. A URL is valid for a short time. Long-running jobs must request fresh URLs, and connectors normally handle this for you.
- Read-only access. Recipients cannot write back to a shared table.
- Table-level sharing. You share tables, and on some platforms views or other objects. You cannot share arbitrary files, models or dashboards with the basic protocol.
- History and change data feed are opt-in. The provider must enable them and share history. Without that, recipients can only read the current version.
- Pandas loads everything into memory.
load_as_pandassuits small and medium tables. Use Spark for large ones. - Feature support varies by connector and server. A reference server or a third-party recipient may not support every feature of a managed platform. Test with your actual recipients.
- Recipient latency. Reads go over HTTPS and download files, so they are slower than querying a local warehouse table.
Choosing an approach
Compare the main alternatives:
| Option | Good fit | Weak spot |
|---|---|---|
| Delta Sharing | Live, read-only access to Delta tables for many recipients on different platforms | Egress cost, read-only, Delta source needed |
| File copy (SFTP, bucket sync) | A one-off or small, rarely changing dataset | Stale copies, no access control per table, manual upkeep |
| Custom REST API | Row-level logic, transformations, or very small result sets | You build and maintain it, and it scales poorly for bulk data |
| Warehouse-native sharing (for example Snowflake shares) | Both sides on the same vendor | Locks recipients into that platform |
| Data marketplace | Selling or publicly listing data | Fees, vendor terms, listing process |
Delta Sharing is strongest when the data is already in Delta Lake, recipients use different tools, and they need fresh data without a copy pipeline on your side. It is weaker when you need to push data to recipients, support writes, or serve small answers from complex queries.
A quick estimate
Suppose a table has 200 GB of data files and a recipient does a full read once a day. That is about 6 TB per month of transfer. If you instead share change data feed and only 2 GB changes daily, the transfer drops to about 60 GB per month. Replace the numbers with your own and your cloud's egress price to see the difference.
Exercise
A provider shares a 500 GB Delta table with 10 recipients in another cloud region. Each recipient reloads the full table daily with load_as_pandas. Name two problems with this setup and one change that reduces each.
Show answer
Problem one is egress cost: about 5 TB per day leaves the provider's storage, and cross-region transfer is billed. Reducing it: enable change data feed and history sharing, and have recipients read only changes with load_table_changes_as_pandas, or place or replicate the data in the recipients' region. Problem two is memory and speed: pandas loads the whole 500 GB table into memory on each recipient's machine. Reducing it: recipients should use the Spark connector, or filter and read only the partitions they need.