Menu
AWS Architecture Blog·November 18, 2026

Building a Near Real-Time CDC Pipeline with Apache Iceberg on AWS

United Airlines implemented a near real-time Change Data Capture (CDC) pipeline using AWS services to replicate frequently changing reference data from Amazon Aurora MySQL to Apache Iceberg. This architecture addresses the challenge of providing up-to-date transactional data for analytics, replacing a legacy batch process and significantly improving query performance and business decision-making speed.

Read original on AWS Architecture Blog

United Airlines faced a common challenge in data modernization: needing to move transactional database changes to an analytics platform in near real-time. Their existing batch process led to stale data, delaying critical business decisions. To overcome this, they engineered a robust Change Data Capture (CDC) pipeline using several AWS managed services, demonstrating a practical approach to streaming data from operational databases to a data lake for analytics.

Architecture Overview

The core of the solution involves AWS Database Migration Service (DMS) for CDC, Amazon Kinesis Data Streams for buffering, AWS Lambda for data transformation, Amazon Data Firehose for efficient delivery, and Apache Iceberg on Amazon S3 as the data lake storage. This managed, event-driven architecture automates data replication with minimal operational overhead.

  1. CDC Engine (AWS DMS Serverless): Captures changes from Aurora MySQL's binary log, minimizing impact on the source database.
  2. Streaming (Amazon Kinesis Data Streams): Receives and buffers CDC events, providing durable and scalable real-time streaming.
  3. Transformation (AWS Lambda): Invoked by Firehose, it parses CDC event records and transforms them into a format suitable for Iceberg and routing.
  4. Delivery (Amazon Data Firehose): Consumes data from Kinesis, performs batching, and writes Parquet data files to Iceberg tables on S3.
  5. Data Lake (Apache Iceberg on S3): Stores the data, leveraging Iceberg's capabilities for schema evolution, ACID transactions, and multiple query engine compatibility.
  6. Catalog (AWS Glue Data Catalog): Manages Iceberg table metadata, allowing various query engines like Amazon Athena and Amazon Redshift Serverless to access the data.

Key Architectural Decisions and Trade-offs

A crucial trade-off in this pipeline is between latency and cost/file size, managed primarily by the Amazon Data Firehose buffer interval. A shorter interval (e.g., 1 second) reduces end-to-end latency but can lead to a higher number of small files, impacting query performance and storage costs. Conversely, a longer interval (e.g., 60 seconds for large initial loads) optimizes for file size and cost efficiency but increases latency. United's implementation shows a balance, with Firehose applying inserts, updates, and deletes to Iceberg tables and committing new table snapshots without requiring a separate application or server management for this step.

💡

Schema Evolution

While this specific walkthrough doesn't cover DDL changes, it highlights that Firehose handles basic schema changes by skipping new fields if other columns match. Mismatched names or types result in errors and records sent to an S3 error bucket. For complex enterprise schema evolution, a strategy outside this architecture pattern, perhaps managed by the Lambda transform or an external process, is recommended.

The adoption of Apache Iceberg significantly improved scalability, allowing hundreds of business analysts to run complex queries across broader data domains without hitting the bottlenecks of legacy SQL databases. United reported a 5x improvement in average query latency and a 2x reduction in total ETL job processing time, underscoring the benefits of modern data lake architectures for analytical workloads.

CDCChange Data CaptureApache IcebergAWSData StreamingData LakeAnalyticsKinesis

Comments

Loading comments...