Skip to content

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

Vinted Engineering 9 min read Case study mediumAdept

Orchestrating Success

Vinted replaced hand-written, layer-per-task Airflow DAGs with a generator that reads the dbt manifest and unfolds each domain's lineage into one Airflow task per dbt model, so a failing model only blocks its true downstream dependents. Cross-team dependencies are wired automatically through a central Asset Registry that generates ExternalTaskSensors, validates upstream references in CI, and uses completion callbacks to mark already-timed-out sensors as satisfied when late upstream tasks finish. The registry also posts downstream consumers and their Slack channels on PRs that change a model. Standardizing on the generator limits access to Airflow's full operator ecosystem, but it made the Airflow 3 upgrade a single platform change instead of a rewrite of dozens of DAGs.

Assumes: Apache Airflow DAGsdbt models and lineage

Related posts

  • Accelerate testing in Apache Airflow through DAG versioning

    Zalando Engineering mediumAdept

    Zalando's Performance Marketing team runs multiple isolated versions of its Airflow-orchestrated marketing ROI pipeline on one shared test server, one per pull request. Each branch is deployed as a packaged DAG zip named after the branch. A patched Airflow DAG class reads the zip name to inject the environment into DAG ids and tags and to add unpacked folders to the Jinja template search path. A cron job tears environments down when PRs close. Matching data environments are created from stored DDLs as suffixed Spark databases on S3, using views over test tables instead of copying data, so new environments spin up in under a minute versus up to 30 minutes for a new MWAA server.

  • 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.

  • Data Lineage at Slack

    Slack Engineering mediumAdept

    Slack built a central Data Lineage Service that automatically captures table- and column-level lineage by hooking Airflow success callbacks and dashboard audit logs, then parsing the submitted SQL with ANTLR (backed by a large unit-test suite). Raw lineage lands in RDS MySQL, and a daily Spark job uses Pregel to traverse the dependency graph and write a flattened Hive table with a 'layer' column, so transitive downstream dependencies come back from a single query. A Data Portal notify feature uses this lineage to message downstream owners in Slack about deprecations and retention changes. Lineage for non-SQL Spark jobs, a graph database and automated schema-change alerts are listed as future work.

  • Lessons Learned From Running Apache Airflow at Scale

    Shopify Engineering mediumAdept

    Shopify runs Airflow 2.2 on Kubernetes with the Celery executor and MySQL 8, and its largest environment handles over 10,000 DAGs and 150,000 runs per day. Running at that scale meant replacing GCSFuse with an in-cluster NFS server synced from GCS, enforcing a 28-day metadata retention policy, and tracking ownership through a per-environment namespace manifest. That manifest feeds a cluster DAG policy that restricts queues, pools and Kubernetes namespaces. To smooth load spikes, Shopify uses deterministically randomized crontab schedules hashed from dag_id and manages contention with pools synced from a ConfigMap, priority weights and isolated Celery queues.

  • 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.

The quest for software engineering knowledge.

Look:
Layout: