---
title: "How Atlan Moved Its Data Platform from Spark and StarRocks to DuckDB on S3"
description: "Atlan replaced Spark/Delta Lake metadata pipelines with DuckDB running in-process inside Python workers on Kubernetes and Temporal, reading and writing Parquet and Iceberg on S3 with no cluster to size or operate."
url: "https://swe.quest/articles/how-atlan-moved-its-data-platform-from-spark-and-starrocks-to-duckdb-on-s3-b05d940f00ae1b1a"
canonical: "https://duckdb.org/2026/12/01/atlan-metadata-platform-duckdb.html"
source: "DuckDB"
published: "2026-12-01"
difficulty: "medium"
kind: "Case study"
reading_minutes: 5
tags: ["analytics","data-pipelines","cost-optimization","multi-tenancy"]
---

# How Atlan Moved Its Data Platform from Spark and StarRocks to DuckDB on S3

A post on [DuckDB](https://swe.quest/sources/duckdb.md), published 2026-12-01, 5 min read, Case study. Original: [https://duckdb.org/2026/12/01/atlan-metadata-platform-duckdb.html](https://duckdb.org/2026/12/01/atlan-metadata-platform-duckdb.html)

## Summary

Atlan replaced Spark/Delta Lake metadata pipelines with DuckDB running in-process inside Python workers on Kubernetes and Temporal, reading and writing Parquet and Iceberg on S3 with no cluster to size or operate. It then swapped its StarRocks serving clusters for a per-tenant DuckDB service on ephemeral compute, cutting costs by about 40%, and is replacing ClickHouse for trace storage the same way. Atlan's contributions to DuckDB 2.0 include spilling string/list aggregate state to disk instead of OOMing, an opt-in external file cache spill that avoids refetching remote blocks from S3, and new JSON editing and merge-patch diff functions.

Written by swe.quest, not by the author.

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

## Topics

- [Analytics & OLAP](https://swe.quest/tags/analytics.md) (Data & databases)
- [Data pipelines](https://swe.quest/tags/data-pipelines.md) (Data & databases)
- [Cost optimization](https://swe.quest/tags/cost-optimization.md) (Reliability & operations)
- [Multi-tenancy](https://swe.quest/tags/multi-tenancy.md) (Architecture & design)

## Prerequisites

- Parquet and object storage ([easy posts on Storage systems](https://swe.quest/tags/storage-systems.md?difficulty=easy))
- OLAP query engines ([easy posts on Analytics & OLAP](https://swe.quest/tags/analytics.md?difficulty=easy))
- Apache Iceberg basics

## Keywords

DuckDB, Apache Spark, StarRocks, ClickHouse, Apache Iceberg, Amazon S3, Parquet, Temporal

## Related posts

- [How Atlan Moved Its Data Platform from Spark and StarRocks to DuckDB on S3](https://swe.quest/articles/how-atlan-moved-its-data-platform-from-spark-and-starrocks-to-duckdb-on-s3-56d42b8e57ea758e.md): DuckDB · 2026-12-04 · Medium · 5 min read · Analytics & OLAP, Data pipelines, Cost optimization, Multi-tenancy, Cloud platforms
  Atlan replaced Apache Spark with Delta Lake for its metadata and lineage pipelines with in-process DuckDB running inside Python workers on Kubernetes and Temporal, reading and writing Parquet and Iceberg on S3.
- [From Spreadsheets to DuckLake: A Data Engineer's Road to DuckDB](https://swe.quest/articles/from-spreadsheets-to-ducklake-a-data-engineer-s-road-to-duckdb-befcab104cb9bbfa.md): DuckDB · 2026-10-29 · Medium · 6 min read · Analytics & OLAP, Data pipelines, Databases, SQL
  Data engineer Matt Martin traces his path from copy-pasting Excel reports through Teradata, BigQuery and heavyweight Spark clusters to DuckDB, which let him query local CSVs, S3 Parquet files and Iceberg tables in a few lines of SQL with no JVM or cluster.
- [Scaling SaaS security: Reco’s migration from Postgres to ClickHouse Cloud](https://swe.quest/articles/scaling-saas-security-reco-s-migration-from-postgres-to-clickhouse-cloud-644c039f853be147.md): ClickHouse · 2025-11-17 · Medium · 6 min read · Analytics & OLAP, PostgreSQL, Stream processing, Performance engineering, Cost optimization
  Reco, a SaaS security platform ingesting 10-12 billion JSON events weekly, moved over 90% of its workload from Postgres to ClickHouse Cloud.
- [Zero-ETL lakehouses for Postgres people](https://swe.quest/articles/zero-etl-lakehouses-for-postgres-people-0c496e91a2b39f0f.md): Neon · 2026-01-12 · Easy · 11 min read · Analytics & OLAP, PostgreSQL, Data pipelines, Storage systems
  Data lakehouses unbundle an OLAP database into six layers: object storage, raw data formats like Parquet, table formats like Iceberg or Delta Lake, a metadata catalog such as Unity Catalog or DuckLake, compute, and query engines like Spark or DuckDB.
- [Maximizing Your Delta Scan Performance in DuckDB](https://swe.quest/articles/maximizing-your-delta-scan-performance-in-duckdb-6643024699229651.md): DuckDB · 2025-03-21 · Medium · 13 min read · Query engines, Analytics & OLAP, Performance engineering, Storage systems
  DuckDB's delta extension v0.3.0 runs TPC-DS SF1 on S3 more than 3× faster than v0.1.0, mostly because cardinality information now reaches DuckDB's join order optimizer.

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)
