Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Yelp Engineering 6 min read Case study mediumAdept

How Partition Access Visualizations Reduced our Data Lake S3 Cost by 33%

Yelp 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.

Related posts

  • Supercharging S3 Intelligent Tiering with Content Crush

    Scribd Tech mediumAdept

    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.

  • Building a Scalable Data Lake Backup System with AWS

    Scribd Tech mediumAdept

    Scribd backs up its petabyte-scale S3 data lake each month with an incremental pipeline that copies only new or changed parquet files and always includes Delta logs. The pipeline stores copies in Glacier through S3 Batch Operations. Step Functions orchestrate the work, and validated S3 Inventory manifests are routed by size: up to 25 files run on Lambda, larger ones on ECS Fargate with no timeout. Old source-deleted files are tagged for S3 lifecycle cleanup after 90 days instead of being deleted outright, which keeps a path for rollback and cuts cost.

  • Bring high-performance analytics to your lakehouse with ClickHouse and Amazon S3 Tables

    ClickHouse mediumAdept

    ClickHouse's DataLakeCatalog engine connects to Amazon S3 Tables through the Iceberg REST endpoint, exposing a table bucket as a ClickHouse database that can be queried in place and written back to, with no data copied out. Reads resolve snapshots via the catalog and prune Parquet columns and row groups. Writes commit through an atomic metadata pointer swap authorized by SigV4/IAM, using a least-privilege policy that includes s3tables:UpdateTableMetadataLocation. A retail walkthrough on ClickHouse 26.8 joins purchases and returns, then writes a curated Iceberg table that other engines and AI agents can reuse. Caveats include single-level namespaces, DROP TABLE requiring purge=true, no ClickHouse Cloud support yet, and a recommendation to materialize into MergeTree for high-concurrency, low-latency dashboards.

  • Aderant modernizes analytics data pipeline with Apache Iceberg and AWS Lambda

    AWS Architecture Blog mediumAdept

    Aderant replaced a 15-minute batch pipeline for its Stridyn legal analytics tool with an event-driven medallion architecture (bronze, silver, gold) built on Apache Iceberg tables in S3. CDC events from SQL Server flow via AWS DMS, S3 notifications, SQS and containerized Lambda (PyIceberg) into bronze tables in single-digit seconds. Glue jobs with DynamoDB watermarks perform MERGE-based deduplication into silver. Gold tables are produced two ways: incremental Glue jobs for 77 standard tables, and Iceberg materialized views with snapshot diffing for 34 complex window/CTE queries, with deltas pushed into native Redshift tables. Moving from Redshift Spectrum to native tables gave 10–26x faster queries (sub-100 ms), and Lambda instead of streaming cut compute costs by 77% across 700 tenants and 266 source tables.

  • Introducing Storage Buckets on the Hugging Face Hub

    Hugging Face mediumAdept

    Storage Buckets are a new non-versioned, S3-like object storage type on the Hugging Face Hub, meant for mutable ML intermediates such as checkpoints, optimizer states, processed shards and agent traces that don't fit Git-based repos. They run on Xet, a chunk-based backend that deduplicates content across files, so related artifacts like successive checkpoints skip already-stored bytes, and Enterprise billing is based on the deduplicated size. Buckets can be managed with the `hf` CLI (including sync with dry-run and saved plans), the huggingface_hub Python API, JavaScript, or fsspec `hf://` paths usable from pandas, Polars and Dask. Pre-warming to AWS/GCP regions is offered for compute locality, and direct bucket-to-repo promotion is on the roadmap.

The quest for software engineering knowledge.

Look:
Layout: