Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

incident.io 9 min read Case study mediumAdept

Data stack 2024

incident.io's 2024 data stack runs Fivetran and Segment into BigQuery, dbt (run via Docker on CircleCI) for transforms, and Hightouch for reverse ETL. Analysis is split across Omni for internal BI, Explo for customer-facing embedded insights, and Hex for ad-hoc notebook work. Omni was chosen for its layered schema, shared and workbook models, which balance governance with flexibility. Local dbt development got faster by uploading each production manifest.json to GCS and wrapping `--defer --state` in bash aliases. Data pipeline failures, including flaky retries, now declare incidents and page responders automatically through incident.io's own On-call product, with urgency based on customer impact.

Assumes: dbt basicsdata warehouses

Related posts

  • Updating our data stack

    incident.io mediumAdept

    incident.io's two-person data team reworked its BigQuery/dbt analytics stack as the company grew from 10 to 30 people. Fivetran moved to a separate BigQuery project after dbt tests in CI timed out because concurrent interactive queries exceeded BigQuery's 100-query quota. A CircleCI queue orb now serialises overlapping dbt runs that were creating and dropping the same tables. Unreliable GOOGLEFINANCE FX rates were replaced with a version-controlled seed plus a daily APILayer pull, checked by uniqueness and gaplessness tests. Models now materialise as tables rather than views, intermediate models sit between staging and fact/dimension models to avoid duplicated logic, SQLFluff enforces formatting, and Metabase folders separate sandbox work from locked-down core dashboards.

  • My first 3 months at incident.io

    incident.io mediumAdept

    A new Data Engineer's first quarter rebuilding a Fivetran, BigQuery, dbt, CircleCI and Omni data stack. Uploading dbt artifacts to GCS after each production run enabled `defer` for local development and `state:modified` for faster, more reliable CI. Prebuilt Docker images of the dbt repo replaced per-job environment setup. Google Datastream, Stitch and Airbyte all cost more than Fivetran because the Cloud SQL Postgres workload is upsert-heavy, so Fivetran stayed. Clustering Fivetran destination tables by primary key cut their BigQuery cost by about 75%, and making heavy dbt models incremental with enforced partitioning cut dbt costs by about 20%.

  • A modern data stack for startups

    incident.io mediumAdept

    A small startup data stack built in two weeks: Fivetran (plus Stitch for connectors Fivetran lacks, like the Close CRM) extracts data into BigQuery, dbt transforms it, and Metabase lets non-engineers explore it without SQL. The dbt project skips 'base' models and goes straight to staging tables, producing dimension and fact marts only when joining across sources or doing complex transforms, which keeps schema maintenance low. Other practical details: Fivetran's xmin-cursor fallback for Heroku Postgres without logical replication, per-engineer BigQuery dev datasets, and using dbt-metabase to turn dbt relationship tests into Metabase foreign keys so joins auto-fill.

  • Building a cost-effective analytics stack with Modal, dlt, and dbt

    Modal mediumAdept

    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. One daily job loaded about 1.4M rows in 47 seconds for fractions of a cent, versus an estimated $4,738/month on Fivetran. Also covered: fanning out per-table jobs with starmap, an "Activity Schema lite" dbt modeling approach with window-function concurrency queries, and a cicd.py script that discovers and deploys Modal apps from comment flags.

  • How Render Workflows powers our internal data pipeline

    Render mediumAdept

    Render's two-person data team replaced a time-spaced set of cron jobs with a Render Workflows DAG that waits for a late-arriving Go-built invoice projection dataset, runs dbt in projection-independent and projection-dependent partial builds, then fans out downstream tasks like doc sync, cost monitoring and Metabase cache warming in parallel. The key pattern is retry-as-poll: the task's native retry engine (flat backoff, max retries) checks for a sentinel row in BigQuery without burning compute between polls. dbt runs as a subprocess with stdout streamed into task logs, and completion events land in a BigQuery table that drives accurate ETA estimates. Prod, dry-run and simulate execution modes, plus confining the Render SDK to main.py, keep the logic vendor-agnostic and testable in CI. Projected savings are $30K/year from fewer dbt runs and $70K from Metabase caching.

The quest for software engineering knowledge.

Look:
Layout: