Supercharging S3 Intelligent Tiering with Content Crush
Scribd's hundreds of billions of S3 objects made Intelligent Tiering's per-object monitoring fee prohibitive (about $250,000/month per 100 billion objects), so they built Content Crush to collapse the hundreds or thousands of derived files per uploaded document into a single Apache Parquet object while preserving a virtual keyspace. Parquet works because S3 supports negative-offset byte-range reads and Parquet stores its footer metadata, which includes row group offsets, at the end of the file. Retrieving one file therefore takes two or three GetObject calls, which they reduce by hinting the footer size. Zip and tar were rejected because they lack random access. The tradeoffs are extra read requests, costly rewrites and concurrency concerns for edits, and no pipelining through an S3-compatible API. In return, the reduced object count makes Intelligent Tiering and S3 Batch Operations viable and opens AZ-local caching options.
Related posts
- How Partition Access Visualizations Reduced our Data Lake S3 Cost by 33%
Yelp Engineering mediumAdeptYelp attributes data lake usage by aggregating S3 server access logs per table, date partition and IAM role, then plotting partition value against access time: daily batch jobs appear as a y=x diagonal, backfills as vertical lines, and ad hoc queries as scatter. That visibility let teams prioritize active tables for Apache Iceberg migration and confidently adopt S3 Intelligent Tiering, deletion-based retention and a new 'Default Access Retention' policy. Under that policy, older partitions are gated behind a restrictive bucket IAM policy and require a Terraform PR with a cost estimate from S3 Inventory. Together these cut S3 storage cost by 33%. The post includes the SQL aggregation pattern for building the usage table.
- Rearchitecting Hugging Face Uploads and Downloads
Hugging Face mediumAdeptHugging Face's Xet team is replacing the Hub's direct-to-S3 uploads and CloudFront downloads with a content-addressed store (CAS) built on "dumb reads, smart writes": reads fetch reconstruction info from CAS, and writes are chunked, deduplicated and validated before reaching S3. Byte-level handling gets around CloudFront's 50GB file limit, enables format-aware dedup and compression for Parquet and Safetensors, and adds audit telemetry. Analysis of 8.2M upload requests (130.8 TB from 88 countries) in one day showed the top 7 countries produce 80% of bytes, so CAS nodes will run in three AWS regions: us-east-1 and eu-west-3 with 4 nodes each, and ap-southeast-1 with 2. Hugging Face accepts an estimated 12% drop in aggregate first-hop bandwidth, expecting other optimizations to offset it.
- Parquet Content-Defined Chunking
Hugging Face mediumAdeptParquet Content-Defined Chunking, now available in PyArrow and Pandas via the use_content_defined_chunking option, writes Parquet data pages so that small logical edits produce minimal byte-level differences. This lets content-addressable storage like Hugging Face's Xet layer deduplicate effectively. On a 100k-row OpenOrca subset, exact re-uploads, added or removed columns, type casts and appended rows already deduplicate well, transferring only the new pages and the footer. Row insertions and deletions defeat vanilla Parquet, though, because separately compressed pages shift: about 90 MB of 99 MB was re-uploaded. CDC aligns page boundaries to content to fix this and also handles different row-group sizes and file splits.
- Improving Parquet Dedupe on Hugging Face Hub
Hugging Face mediumAdeptByte-level content-defined chunking dedupes Parquet appends almost perfectly: 10,000 appended rows give 99.1% dedupe and need about 20MB of new storage. A single-row edit drops dedupe to 89% (230MB new) because absolute file offsets in ColumnChunk/ColumnMetaData headers change in every column header. Deleting a row shifts the fixed-size row groups, and since each column is compressed, everything after the deletion becomes new data; turning off compression fixes dedupe but nearly doubles file size. Splitting row groups by a hash of a key column (content-defined row groups) keeps both compression and dedupe, and the proposed fixes are relative offsets in the format and CDC-aware row grouping in Parquet writers.
- Husky: Efficient compaction at Datadog scale
Datadog Engineering hardMasterHusky, Datadog's observability event store layered over object storage, keeps query cost low by controlling fragment count and layout through streaming compaction. Writers flush small sorted fragments into time-bucketed tables. Compactors lazily run size-tiered k-way merges, waiting until a few dozen fragments are available, which cuts CPU and object-store API costs by an order of magnitude. Metadata is swapped atomically in FoundationDB. A custom columnar format with per-column headers and fixed-size row groups lets each compaction use one GET per input, saturate the CPU and run in bounded memory, and sort schemas let queries skip fragments using only their metadata.