The situation
The division wanted to measure its return on ad spend, ROAS. The revenue side came from clickstream and call tracking, web analytics, two CRMs and the web acquisition and renewal feeds. The cost side came from marketing automation, project management, paid media spend and a set of aggregated costs (headcount, agency fees and research among them) that someone typed in by hand. Two of the revenue feeds and the project-management feed arrived as manual file loads, so the number was late and nobody could say which version of the costs it carried.
Underneath, Intuit runs a lake-first platform: everything lands in S3, Spark jobs load it into Hive, Redshift holds copies for analysis and Tableau reads from there. Any new service or source goes through the platform team's reviews first. In 2024 ProTax was a division of its own inside the company that makes TurboTax and QuickBooks. The work came to us through Massive Insights, a Toronto analytics consultancy that works with marketing teams.
- Amazon Redshift
- Seven upstream systems
- Amazon S3 and Hive
- Databricks
- AWS Glue and Lambda
- The cost form (API Gateway, Lambda, RDS)
- Tableau dashboards
What we did
The current state
Sam mapped what existed: every source, the S3 landing, the Spark and Hive layer, the Redshift copies, the Tableau reports and each manual step, and wrote it up with the boundaries the platform team sets (which services a team may use, and how a new source gets its privacy review).
The future state on Databricks and AWS
The future state keeps the lake Intuit already had and takes the manual file loads out of the chain. Databricks orchestrates the processing, AWS Glue and Lambda pull the project-management feed that used to arrive as a file, the two web feeds move into Hive, and Amazon EMR carries the heavy transforms. Redshift gets a staging process in three layers: bronze for the raw copy, silver for the business logic (deduplication, campaign cost categories, cost allocation across objectives and time) and gold for the curated tables the dashboards read. Glue's data catalog and Lake Formation carry the data dictionary and the lineage.
The costs someone typed in
The aggregated costs got a form instead of a spreadsheet: a small UI on Amazon API Gateway, with a Lambda function that checks each entry and writes it to an RDS database, so every cost arrives with a date and an owner.
The dashboards
Sam built the Tableau dashboards on the gold layer, so the return on ad spend refreshes every day instead of waiting on a file, and wrote down the data models, the pipeline schedules and the maintenance steps.
What was hard
- The aggregated costs still had to be typed in
- Every revenue feed could be automated. Headcount, agency fees and research spend lived in people's spreadsheets, so the design keeps one step where a person types a number into the cost form, and the Lambda behind the form checks each entry before it lands in RDS.
The result
By the end of August 2024 the division had its current and future state architecture written down with the gap between them, the feeds from seven systems and the typed-in costs landing in Hive and Redshift through automated pipelines, and Tableau dashboards that refresh the return on ad spend every day.
The stack
- Databricks, for orchestration and Spark processing
- AWS Lambda and AWS Glue, the pipelines for the feeds that used to be file loads
- Amazon API Gateway, Lambda and RDS, behind the cost input form
- Amazon S3 and Hive, the lake and its access layer
- Amazon Redshift, staged in bronze, silver and gold layers
- Amazon EMR, for the heavy transforms
- Tableau, for the dashboards
Timeline
- May 2024 Sam started with Intuit's ProTax division, through Massive Insights, on the return on ad spend architecture.
- May to August 2024 Sam wrote down the current state, designed the future state on Databricks and AWS, and built the pipelines and the Tableau dashboards.
- August 2024 The dashboards were refreshing on their own, with the data models, pipeline schedules and maintenance steps written down.