Skip to content

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

Scribd Tech 3 min read Case study mediumAdept

Building a Scalable Data Lake Backup System with AWS

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.

Related posts

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

    Yelp Engineering mediumAdept

    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.

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

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

  • Unordered mode for S3 ClickPipes is now available

    ClickHouse mediumAdept

    S3 ClickPipes in ClickHouse Cloud now support an unordered ingestion mode. Instead of polling the bucket for files that sort lexicographically after the last one ingested, the pipe consumes S3 ObjectCreated event notifications through Amazon SQS, so backfills, retries and late-arriving files are no longer skipped. ClickPipes tracks state in a metadata store and reprocesses failed batches while guaranteeing exactly-once inserts. Setup requires an SQS queue policy, an IAM role trusted by the ClickHouse service with S3 and SQS permissions, and a sorting key on the target table; it can also be configured via the Terraform provider. GCS and Azure support are planned.

  • How to Set Up Nightly Backups to AWS S3 for Multiple Neon Projects

    Neon mediumAdept

    Nightly backups of multiple Neon Postgres databases can be automated with one GitHub Actions workflow per database. Each workflow runs on a cron schedule, installs a matching Postgres client version, and assumes an AWS IAM role via OIDC. It then pipes pg_dump through gzip, deletes .gz files in that database's S3 folder older than a configurable retention period, and uploads the new dump. Workflows differ only in name, connection-string secret and retention. GitHub-hosted runners time out after about 6 hours, so large databases may need self-hosted runners.

The quest for software engineering knowledge.

Look:
Layout: