Menu
AWS Architecture Blog·November 19, 2026

Modernizing Analytics Data Pipelines with Apache Iceberg and AWS Lambda for Real-time Multi-tenant Data

This article details Aderant's migration from a batch-oriented to an event-driven data pipeline for their multi-tenant analytics tool. The new architecture leverages Apache Iceberg, AWS Lambda, and AWS Glue to achieve near real-time data availability, improved query performance, and significant cost reductions. It showcases a medallion architecture pattern applied to manage CDC events for 700 client environments.

Read original on AWS Architecture Blog

Aderant, a provider of legal industry software, faced challenges with their legacy analytics data pipeline, including slow batch processing, limited real-time data availability, and scalability issues. To address these, they redesigned their architecture to be event-driven and leverage modern data lake technologies on AWS. The core problem was transforming 380 million CDC events per month from 266 source tables across 700 client environments into actionable analytics quickly and cost-effectively.

Medallion Architecture with Apache Iceberg

The new solution employs a medallion architecture (Bronze, Silver, Gold layers) built entirely on Apache Iceberg tables stored in Amazon S3. This pattern ensures data quality and progressively refines raw data into highly aggregated, query-optimized formats. AWS Lambda functions are used for event-driven ingestion, AWS Glue for transformations, and Amazon Redshift for the final analytics serving layer.

  1. CDC Capture & Delivery (Source to Landing): AWS DMS captures changes from SQL Server databases and writes Parquet files to an S3 landing zone.
  2. Event-driven Ingestion (Raw to Bronze): S3 event notifications trigger Amazon SQS messages, which invoke AWS Lambda functions to process CDC payloads and write to bronze-layer Iceberg tables in single-digit seconds.
  3. Bronze-to-Silver Transformation: AWS Glue jobs use DynamoDB-based watermarking to read incremental data from bronze, apply normalization/deduplication via Iceberg MERGE operations, and produce current-state silver tables with ACID adherence.
  4. Silver-to-Gold Aggregation: For standard tables, incremental AWS Glue jobs populate gold tables. For complex tables, Iceberg materialized views are used with snapshot comparison to extract deltas.
  5. Gold-to-Amazon Redshift Delivery: Delta changesets from gold are written to native Amazon Redshift tables for sub-100ms query performance.
💡

Why Apache Iceberg for Data Lakes?

Aderant chose Apache Iceberg for its critical capabilities in a multi-tenant, high-volume CDC environment: - ACID Transactions: Guarantees data consistency with concurrent writes from hundreds of Lambda functions. - Time Travel & Snapshot Comparison: Enables easy delta extraction from materialized views without manual watermarking, crucial for complex transformations. - Schema Evolution: Allows adding columns or changing types without requiring full table rewrites or pipeline disruption, simplifying operational management.

Leveraging AWS Lambda for CDC Processing

AWS Lambda was selected for CDC event processing due to its alignment with event-driven workloads, offering cost efficiency (pay-per-invocation), low latency, and operational simplicity. Its container image deployment model supports the large dependencies (PyIceberg, pandas) required for Iceberg operations, and its inherent scalability handles significant fluctuations in event volume, including 10x seasonal spikes, without pre-provisioned capacity.

Handling Complex Queries with Iceberg Materialized Views

A key innovation for 34 complex gold tables (involving window functions, multi-fact joins, CTEs) was the use of Iceberg materialized views. Instead of rewriting complex analytical queries for incremental processing, materialized views perform the transformation in Spark SQL. Iceberg's automatic change tracking and snapshot comparison identify only the changed rows, which are then written as deltas to Amazon Redshift. This balances computational complexity with incremental updates.

data pipelineevent-drivenCDCApache IcebergAWS LambdaAWS GlueMedallion Architecturemulti-tenant

Comments

Loading comments...