All case studies

Retail Data Pipeline

E-commerce buyer activities on various retailers are captured. Products from various brands need an in-depth analysis.

  1. Started fromE-commerce and cart data
  2. Palmtree builtData pipelines and platforms
  3. ResultCart logs to Snowflake through Spark, orchestrated by Airflow

Problem

E-commerce buyer activities on various retailers are captured. Products from various brands need an in-depth analysis of customer buying patterns on products being bought on various timelines to improve their digital marketing efforts.

An ETL pipeline was required to convert the shopping-cart data into useful data which can be used by brands to improve the sales of their products

Challenges

  • Processing large volumes of shopping-cart data
  • Partitioning and clustering Snowflake tables to optimize performance and to minimize querying cost

Solution

  • Shopping-cart logs were copied into AWS S3
  • The shopping-cart logs from AWS S3 was consumed by AWS EMR Spark
  • Logs were parsed and enhanced using the transformations from Apache Spark
  • Data cleansing and enrichment were done using Apache Spark
  • Processed data was stored in Snowflake as it handles a huge volume of data
  • Data were further aggregated and stored in Snowflake as well
  • Apache Airflow orchestrated the ETL pipeline and it executes the pipeline on a scheduled basis

How it fits together

Log files land in Cloud Storage, with a backup copy, then pass through Cloud Dataflow transformations, which add device details from a Kubernetes Engine service, into a BigQuery data warehouse. Cloud Composer orchestrates the ETL.
Select the diagram to open it full size.