A U.S.-based e-commerce company operating in the beauty and cosmetics industry runs its entire retail and wholesale business through a leading commerce platform. With a catalogue spanning hundreds of SKUs across multiple vendors and fulfillment locations, the client needed a reliable, scalable data foundation to support decision-making across sales, inventory, finance, and customer analytics.
Industry
Revenue (USD)
Head Count
Countries Of Operation
Diacto built a fully automated ingestion pipeline across eleven business domains — orders, products, customers, inventory, payouts, refunds, returns, balance transactions, gift cards, and transactions — running three times daily via AWS Step Functions with parallel domain execution. o Stage 1 — API to S3: AWS Glue Python Shell jobs extract data from the commerce API using credentials retrieved from AWS Secrets Manager and write structured files to an Amazon S3 data lake. o Stage 2 — S3 to Raw: A second Glue job loads each file into a fault-tolerant RAW schema in Snowflake, preserving source data exactly as received. o Stage 3 — Raw to Curated: A third Glue job cleans, type-casts, and de-duplicates data into an append-only CURATED schema that accumulates a complete historical archive
Diacto structured the warehouse across four schemas — RAW, CURATED, and CONSUMPTION with the CONSUMPTION layer housing six auto-refreshing Snowflake Dynamic Tables powering a product master, SKU-level replenishment recommendations (using 13 months of rolling sales, QOH, QOO, and YoY velocity), and monthly stockout tracking.
Diacto implemented real-time failure alerting for both AWS Glue jobs (via Amazon EventBridge and SNS) and Snowflake Dynamic Table refreshes (via a stored procedure, notification integration, and scheduled Snowflake Alerts in a dedicated ADMIN schema), with deduplication logic to prevent repeat notifications.
Diacto delivered five Snowflake Streamlit applications — an executive analytics dashboard, a bank-to-payout reconciliation tool with intelligent amount-based matching, a read-only product catalogue viewer with missing SKU detection, a read-write product catalogue editor with MERGE-based upserts, and a purchase order updater for non-technical operations staff.