---
title: "Building an Enterprise Data Warehouse on Heroku: From Complex ETL to Seamless Salesforce Integration"
description: "Heroku unified Salesforce and 20+ internal app databases into a warehouse processing over 10 TB monthly, using Heroku Connect to replicate Salesforce data without API limits and Postgres follower databases to read app data without loading production."
url: "https://swe.quest/articles/building-an-enterprise-data-warehouse-on-heroku-from-complex-etl-to-seamless-8243dc0ab6d91c36"
canonical: "https://www.heroku.com/blog/building-an-enterprise-data-warehouse-on-heroku/"
source: "Heroku Engineering"
published: "2025-11-05"
difficulty: "easy"
kind: "Case study"
reading_minutes: 7
tags: ["data-pipelines","analytics","postgres","replication"]
---

# Building an Enterprise Data Warehouse on Heroku: From Complex ETL to Seamless Salesforce Integration

A post on [Heroku Engineering](https://swe.quest/sources/heroku.md), published 2025-11-05, 7 min read, Case study. Original: [https://www.heroku.com/blog/building-an-enterprise-data-warehouse-on-heroku/](https://www.heroku.com/blog/building-an-enterprise-data-warehouse-on-heroku/)

## Summary

Heroku unified Salesforce and 20+ internal app databases into a warehouse processing over 10 TB monthly, using Heroku Connect to replicate Salesforce data without API limits and Postgres follower databases to read app data without loading production. Heroku Postgres serves real-time operational analytics and staging, Redshift holds historical data, and Airflow runs 30+ DAGs and 200+ JSON-defined jobs built from Python templates for incremental, bulk and date-range loads. A 5-minute monitoring DAG checks and retries 12 regional Connect instances. Claimed results include 99.99% pipeline uptime, sub-minute freshness, 90% less transfer from incremental loads and 60% lower integration cost, though the piece leans heavily on product promotion.

Written by swe.quest, not by the author.

**Difficulty:** Easy: no special background needed; explains what something is and why it matters

## Topics

- [Data pipelines](https://swe.quest/tags/data-pipelines.md) (Data & databases)
- [Analytics & OLAP](https://swe.quest/tags/analytics.md) (Data & databases)
- [PostgreSQL](https://swe.quest/tags/postgres.md) (Data & databases)
- [Replication](https://swe.quest/tags/replication.md) (Distributed systems)

## Prerequisites

- ETL concepts ([easy posts on Data pipelines](https://swe.quest/tags/data-pipelines.md?difficulty=easy))
- Postgres read replicas ([easy posts on PostgreSQL](https://swe.quest/tags/postgres.md?difficulty=easy))
- Apache Airflow DAGs ([easy posts on Data pipelines](https://swe.quest/tags/data-pipelines.md?difficulty=easy))

## Keywords

Heroku Connect, Heroku Postgres, Salesforce, Apache Airflow, AWS Redshift, Tableau, Heroku Dataclips, Data 360

## Related posts

- [Optimizing Data Reliability: Heroku Connect & Drift Detection](https://swe.quest/articles/optimizing-data-reliability-heroku-connect-drift-detection-210645ff0f1dc0fb.md): Heroku Engineering · 2024-06-26 · Easy · 4 min read · Data pipelines, Consistency models, PostgreSQL
  Heroku Connect syncs Salesforce data into Postgres by polling time windows, and long-running Salesforce transactions that commit after the window has moved can be missed, causing drift.
- [A 15-Second Health Check for Your Heroku Connect Data Pipeline](https://swe.quest/articles/a-15-second-health-check-for-your-heroku-connect-data-pipeline-ed2bcac9c7da237d.md): Heroku Engineering · 2026-06-24 · Medium · 4 min read · Data pipelines, PostgreSQL, Debugging, Developer tools
  The \`heroku connect:diagnose\` command in the Heroku Connect CLI plugin audits a Salesforce-to-Heroku Postgres sync and reports GREEN/YELLOW/RED status for connection-level checks (API version, permissions, database plan) and mapping/field checks (unique identifiers, binary and calculated fields, schema drift).
- [How we built our Internal Data Warehouse at ClickHouse: A year later](https://swe.quest/articles/how-we-built-our-internal-data-warehouse-at-clickhouse-a-year-later-38e2018d0874b279.md): ClickHouse · 2024-09-10 · Medium · 9 min read · Analytics & OLAP, Data pipelines, Cost optimization
  ClickHouse's internal data warehouse on ClickHouse Cloud now ingests about 6 billion rows (50 TB uncompressed) a day from nineteen sources and holds 470 TB compressed.
- [98% faster queries, 50% lower cloud costs: Verihubs’ journey from Postgres to ClickHouse](https://swe.quest/articles/98-faster-queries-50-lower-cloud-costs-verihubs-journey-from-postgres-to-f6535061aff525b1.md): ClickHouse · 2026-07-06 · Medium · 6 min read · Analytics & OLAP, Data pipelines, PostgreSQL, Event-driven architecture
  Verihubs replaced a Postgres warehouse fed by daily Airflow batch pulls with a ClickHouse-based real-time OLAP stack.
- [How we built the Internal Data Warehouse at ClickHouse](https://swe.quest/articles/how-we-built-the-internal-data-warehouse-at-clickhouse-d3d7520881242252.md): ClickHouse · 2023-07-19 · Medium · 16 min read · Analytics & OLAP, Data pipelines, System design, Identity & auth, Scheduling
  ClickHouse's internal data warehouse ingests tens of sources (Control Plane, Data Plane, AWS CUR, GCP billing, Salesforce, M3ter and others) into S3 hourly, then loads them into ClickHouse Cloud with the s3 table function and transforms them in SQL.

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)
