How United Airlines streams database changes to Apache Iceberg with Amazon Data Firehose
United Airlines replicates frequently changing reference data from Aurora MySQL into Apache Iceberg tables on S3 in near-real-time using AWS DMS CDC, Kinesis Data Streams, a Lambda transform and Amazon Data Firehose, which applies inserts, updates and deletes via merge-on-read and commits Iceberg snapshots to the Glue Data Catalog. Moving off the legacy SQL databases improved average query latency 5x and halved downstream Glue ETL job time. The Firehose buffer interval drives the latency/cost tradeoff: a 1-second buffer gave about 10-second end-to-end latency on a small test, while a 1.5M-row initial load at a 60-second buffer took about 2h22m. A CloudFormation template reproduces the setup, with caveats such as using the primary key as the Kinesis partition key to avoid single-shard bottlenecks and schema evolution being out of scope.
Related posts
- Aderant modernizes analytics data pipeline with Apache Iceberg and AWS Lambda
AWS Architecture Blog mediumAdeptAderant 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.
- From batch processing to streaming: AMP’s data journey from open-source to ClickHouse Cloud
ClickHouse mediumAdept
AMP, a Shopify analytics platform, replaced a brittle twice-daily Postgres-to-ClickHouse batch sync, which routinely left data 30 to 72 hours stale and needed a 1.2 TB RAM server, with a streaming pipeline into ClickHouse Cloud. Shopify webhooks flow through Amazon EventBridge and Lambda into ReplacingMergeTree tables, which deduplicate updates. To avoid the cost of small inserts, Kinesis Data Firehose buffers events to S3 and asynchronous inserts are enabled, since ClickHouse performs best with batches of at least 1,000 rows. Environments are provisioned reproducibly with the ClickHouse Cloud Terraform provider.
- How ClickHouse Cloud enabled LaunchDarkly to build and ship features faster
ClickHouse mediumAdept
LaunchDarkly replaced Kinesis/Flink/Lambda streaming pipelines and an S3/Parquet/Athena batch warehouse with ClickHouse Cloud. Raw events are now queried directly, and materialized views are added only where needed. The system ingests about 6 PB/month of uncompressed JSON through an HTTP API, S3 protobuf batches, Lambda-converted Parquet and INSERT INTO SELECT. Data is fresh in about 30 seconds with roughly 100 days of retention, high-cardinality per-user analytics became practical, and seven product features now run on it. Lessons learned: don't coarsen ORDER BY keys, drop OLTP habits (for example, use two-stage queries for latest-N), and plan for workload isolation as adoption outpaces the platform team. Next steps are ingest-time joins for Release Guardian regression detection and migrating Elasticsearch workloads.
- How Lyft powers batch and real-time analytics with ClickHouse Cloud
ClickHouse mediumAdept
Lyft replaced Apache Druid with ClickHouse, first self-managed and then on ClickHouse Cloud, for analytics that read over 450 TB and write about 4 TB per day at hundreds to thousands of queries per second. Batch jobs are defined in TOML files that specify a Trino aggregation and the target table layout, read from S3 via the s3 table function into a staging table, and swap partitions. Real-time pipelines use Flink to deserialize Kafka and Kinesis events, resolving nested protobuf messages at runtime with Java reflection so ClickHouse schemas no longer need manual syncing. Migration friction included unavailable features such as the Join engine (replaced by dictionaries) and the Kafka table engine, plus batch-size and data-freshness tuning.
- Climbing the Iceberg with ClickHouse
ClickHouse mediumAdept
ClickHouse fits into data lake and lakehouse architectures in three common ways: incrementally loading object-storage or Iceberg data via s3cluster/S3Queue (or double-writing from Kafka), running ad-hoc and federated queries against Iceberg, Delta and Hudi tables plus PostgreSQL, MySQL and MongoDB, and frequently querying shared lakehouse datasets. Version 24.12 adds an Iceberg REST catalog database engine, tested with Snowflake's Polaris, so tables can be discovered and queried without explicit paths. Version 24.11 adds icebergS3Cluster for distributed reads, cutting a 96-billion-row scan from about 2,595s to 907s on three nodes. Planned work covers Iceberg partition pruning, schema evolution and time travel, Delta support via the Rust Delta Kernel, and Glue and Unity catalogs.