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 BlogAderant, 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.
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.
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.
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.
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.