---
title: "Why you should move your ETL stack to Modal"
description: "Modal's serverless Python functions can replace ETL vendors and orchestrators for simple batch jobs."
url: "https://swe.quest/articles/why-you-should-move-your-etl-stack-to-modal-f0b59ab318e09bd3"
canonical: "https://modal.com/blog/etl"
source: "Modal"
published: "2024-04-18"
difficulty: "medium"
kind: "How-to"
reading_minutes: 6
tags: ["data-pipelines","serverless","cost-optimization","python"]
---

# Why you should move your ETL stack to Modal

A post on [Modal](https://swe.quest/sources/modal.md), published 2024-04-18, 6 min read, How-to. Original: [https://modal.com/blog/etl](https://modal.com/blog/etl)

## Summary

Modal's serverless Python functions can replace ETL vendors and orchestrators for simple batch jobs. A worked example copies 12M ClickHouse rows into Snowflake in 16 minutes for about $0.29, using five parallel per-date jobs via for\_each and 10,000-row executemany batches under Snowflake's 16,384-row insert limit. Fivetran pricing for the same volume is estimated at roughly $3,300. A second example enriches warehouse users with company data from the GitHub API on a cron schedule, while Fivetran and Airflow are still recommended for common connectors and long-running multi-stage pipelines that need partial retries and observability.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Data pipelines](https://swe.quest/tags/data-pipelines.md) (Data & databases)
- [Serverless](https://swe.quest/tags/serverless.md) (Backend & APIs)
- [Cost optimization](https://swe.quest/tags/cost-optimization.md) (Reliability & operations)
- [Python](https://swe.quest/tags/python.md) (Languages)

## Prerequisites

- Python ([easy posts on Python](https://swe.quest/tags/python.md?difficulty=easy))
- SQL data warehouses ([easy posts on SQL](https://swe.quest/tags/sql.md?difficulty=easy))
- ETL concepts ([easy posts on Data pipelines](https://swe.quest/tags/data-pipelines.md?difficulty=easy))

## Keywords

Modal, Snowflake, ClickHouse, Fivetran, Airflow, GitHub API

## Related posts

- [Building a cost-effective analytics stack with Modal, dlt, and dbt](https://swe.quest/articles/building-a-cost-effective-analytics-stack-with-modal-dlt-and-dbt-7ea1b0034997749a.md): Modal · 2024-09-10 · Medium · 11 min read · Data pipelines, Analytics & OLAP, Serverless, CI/CD, Cost optimization
  Modal runs its whole analytics stack on Modal: dlt loads data from a Postgres read replica into Snowflake, dbt transforms it, and GitHub Actions handles CI/CD. dlt replaced hand-written psycopg2 code and removes manual schema definitions, Snowflake DDL and error-prone incremental logic.
- [My first 3 months at incident.io](https://swe.quest/articles/my-first-3-months-at-incident-io-57d9570909595399.md): incident.io · 2024-08-02 · Medium · 5 min read · Data pipelines, Analytics & OLAP, Cost optimization, CI/CD
  A new Data Engineer's first quarter rebuilding a Fivetran, BigQuery, dbt, CircleCI and Omni data stack.
- [How AdGreetz Processes Millions of Daily Ad Impressions with ClickHouse Cloud](https://swe.quest/articles/how-adgreetz-processes-millions-of-daily-ad-impressions-with-clickhouse-cloud-923fb2f6799d75bf.md): ClickHouse · 2023-04-26 · Easy · 3 min read · Analytics & OLAP, Ads, Cost optimization, Serverless
  AdGreetz moved its ad impression analytics from AWS Athena to Snowflake and then to ClickHouse Cloud, citing roughly six times lower cost than a small Snowflake standard plan and sub-second rather than multi-second queries.
- [The foundations of Canva’s continuous data platform with Snowpipe Streaming](https://swe.quest/articles/the-foundations-of-canva-s-continuous-data-platform-with-snowpipe-streaming-cab7a9c968266fb8.md): Canva Engineering · 2025-01-06 · Medium · 12 min read · Data pipelines, Stream processing, Cost optimization, Cloud platforms, Analytics & OLAP
  Canva replaced AWS Data Firehose, which accounted for nearly half its product analytics platform cost because of 5 KB minimum record billing, with Snowpipe Streaming fed directly from Kinesis Data Streams via the Kinesis Client Library.
- [From multi-day latency to near real-time insights: Figma’s data pipeline upgrade](https://swe.quest/articles/from-multi-day-latency-to-near-real-time-insights-figma-s-data-pipeline-upgrade-1c3bdc34c41db2d9.md): Figma · 2025-05-29 · Medium · 12 min read · Data pipelines, Event-driven architecture, Analytics & OLAP, PostgreSQL, Cost optimization
  Figma replaced a daily \`SELECT \*\` export from RDS Postgres to Snowflake, which had grown to six-hour syncs and multi-day lag on the largest tables, with an in-house incremental sync pipeline.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
