---
title: "From multi-day latency to near real-time insights: Figma’s data pipeline upgrade"
description: "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."
url: "https://swe.quest/articles/from-multi-day-latency-to-near-real-time-insights-figma-s-data-pipeline-upgrade-1c3bdc34c41db2d9"
canonical: "https://www.figma.com/blog/figmas-data-pipeline-upgrade/"
source: "Figma"
published: "2025-05-29"
difficulty: "medium"
kind: "Case study"
reading_minutes: 12
tags: ["data-pipelines","event-driven","analytics","postgres","cost-optimization"]
---

# From multi-day latency to near real-time insights: Figma’s data pipeline upgrade

A post on [Figma](https://swe.quest/sources/figma.md), published 2025-05-29, 12 min read, Case study. Original: [https://www.figma.com/blog/figmas-data-pipeline-upgrade/](https://www.figma.com/blog/figmas-data-pipeline-upgrade/)

## Summary

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. It bootstraps tables from RDS snapshot exports to S3, streams CDC through Kafka Connect on MSK into Snowflake, and applies changes with a custom MERGE stored procedure run by Snowflake tasks. Versioned artifacts allow zero-downtime re-bootstraps, and a cell-level, CDC-aware validation workflow checks correctness, all orchestrated with AWS Step Functions. Data freshness dropped from 30+ hours to 3 hours or less, configurable down to minutes, and the pipeline handles tables 10x larger while eliminating costly extra replicas.

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)
- [Event-driven architecture](https://swe.quest/tags/event-driven.md) (Backend & APIs)
- [Analytics & OLAP](https://swe.quest/tags/analytics.md) (Data & databases)
- [PostgreSQL](https://swe.quest/tags/postgres.md) (Data & databases)
- [Cost optimization](https://swe.quest/tags/cost-optimization.md) (Reliability & operations)

## Prerequisites

- change data capture
- Kafka basics ([easy posts on Queues & messaging](https://swe.quest/tags/messaging.md?difficulty=easy))
- data warehouses

## Keywords

Snowflake, Kafka Connect, Amazon MSK, Amazon RDS, AWS Step Functions, PostgreSQL, S3

## 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.
- [Aderant modernizes analytics data pipeline with Apache Iceberg and AWS Lambda](https://swe.quest/articles/aderant-modernizes-analytics-data-pipeline-with-apache-iceberg-and-aws-lambda-5b9fc37de182f3f3.md): AWS Architecture Blog · 2026-11-19 · Medium · 9 min read · Data pipelines, Analytics & OLAP, Serverless, Multi-tenancy, Cloud platforms
  Aderant replaced a 15-minute batch pipeline for its Stridyn legal analytics tool with an event-driven medallion architecture (bronze, silver, gold) built on Apache Iceberg tables in S3.
- [How Fountain rebuilt its data plane on ClickHouse Cloud to power Cue, the Frontline Superintelligence](https://swe.quest/articles/how-fountain-rebuilt-its-data-plane-on-clickhouse-cloud-to-power-cue-the-0dccb4dc5f23d9f5.md): ClickHouse · 2026-09-22 · Medium · 9 min read · Analytics & OLAP, Data pipelines, Event-driven architecture, Multi-tenancy, AI agents
  Fountain replaced a multi-vendor batch pipeline (third-party replication to S3/Iceberg, then BigQuery) with ClickPipes CDC streaming Postgres and MongoDB directly into ClickHouse Cloud, cutting analytics freshness from three hours to under two minutes, with most queries sub-second, at about 66% lower cost.
- [“Just OLAP it”: How Ramp rebuilt its analytics platform on ClickHouse Cloud](https://swe.quest/articles/just-olap-it-how-ramp-rebuilt-its-analytics-platform-on-clickhouse-cloud-36298842faab88cc.md): ClickHouse · 2026-01-20 · Medium · 5 min read · Analytics & OLAP, Event-driven architecture, Data pipelines, PostgreSQL, Queues & messaging
  Ramp moved customer-facing spend analytics off its Postgres monolith after enterprise customers' reports on a single card-transactions table began taking 40+ seconds, and now serves them in milliseconds from ClickHouse Cloud.
- [How Figma’s databases team lived to tell the scale](https://swe.quest/articles/how-figma-s-databases-team-lived-to-tell-the-scale-5117114294b188fe.md): Figma · 2024-03-14 · Medium · 19 min read · PostgreSQL, Distributed databases, Scaling, Query engines
  Figma horizontally sharded its RDS Postgres stack after vertical partitioning ran out of room.

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)
