Skip to content

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

Netflix TechBlog 7 min read Case study easyNovice

DataJunction as Netflix’s answer to the missing piece of the modern data stack

Netflix adopted DataJunction (DJ), an open-source semantic layer, to centralize metric and dimension definitions after onboarding a single metric to its experimentation platform took weeks. DJ beat Mando and Airbnb's Minerva mainly on its SQL parsing and generation engine and on storing definitions in a connected graph. Built as an under-resourced side project for over two years, it prioritized an API-first, graph-first core and used cubes as the consumption protocol. Cubes can be materialized into Druid and linked back from dashboards in Data Explorer and Superset to their definitions. Next steps are unifying general analytics across Netflix and grounding internal LLMs in DJ-defined metrics.

Assumes: semantic layersOLAP cubesSQL

Related posts

  • Metric Semantic Layer: How Lyft Governs and Scales Key Data Definitions

    Lyft Engineering mediumAdept

    Lyft built a Metric Semantic Layer (MSL), a versioned Python package that stores each company-wide "Golden Metric" as YAML metadata plus Jinja-templated SQL, so a definition is updated once and flows to every downstream consumer. Python APIs generate or execute SQL for chosen dimensions and time granularity, and they feed dashboards, Airflow, ML workflows, an Amundsen catalog integration, a no-code Metric UI, and an MCP server that grounds AI agents. Governance admits only metrics with at least two distinct use cases. Each one has a team-level Business Owner for metric health and an Operational Owner for data health, and both must approve every definition change. Lyft is now evaluating a vendor-managed semantic layer to integrate with more BI tools and databases.

  • How Bullet uses ClickHouse Cloud to give DeFi's fastest exchange real-time analytics

    ClickHouse mediumAdept

    Bullet, a Rust-based DeFi perpetuals exchange running as an app-specific rollup on Solana with ~500μs p50 order processing, indexes 150M+ rows per hour of sequencer events into ClickHouse Cloud for trade history, real-time analytics and monitoring. Events flow from a Rust WebSocket indexer through Kafka (AWS MSK), where Redpanda Connect classifies and routes them into per-event-type ClickHouse tables; ReplacingMergeTree keyed on event number and transaction hash makes the pipeline idempotent so reindexing and backfills deduplicate automatically. Moving off Databricks removed an hourly-batch-to-DynamoDB serving layer, cut query latency from 10-15 seconds to milliseconds, and replaced a 20-30 minute leaderboard cron job with a refreshable materialized view running every 10 minutes. Data freshness improved from 1-2 hours to under 5 seconds at comparable cost with 1,000x more data.

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

  • How LinkedIn extended ClickHouse from distributed tracing to metric discovery and analytics

    ClickHouse mediumAdept

    LinkedIn's observability team consolidated a legacy metric metadata system (a custom in-memory search index, a custom KV store and Elasticsearch behind one gateway) onto a single-shard ClickHouse index. The move built on an earlier ClickHouse tracing deployment that ingests ~0.8 trillion spans/day across three data centers using 22-shard clusters, a red-black read/write setup, and tuned sort order, partitioning and Bloom filters. The metadata index uses a replicated ReplacingMergeTree to deduplicate at-least-once change-capture data, daily table rebuilds swapped via alias, projections for heavy aggregations, and per-dimension columns replacing regex over RRD strings. It serves 150k+ queries/minute at 68ms average across 13B+ metrics, with roughly one-fifth the memory and two-thirds the compute of the old stack and headroom to double volume.

  • DeepL’s journey with ClickHouse

    ClickHouse easyNovice

    DeepL runs ClickHouse as its central data warehouse for web and app analytics, company metrics, A/B testing and ML personalization. They chose it in 2020 over Hadoop for its easy single-binary deployment and built an MVP pipeline of event API, Kafka, a sink into ClickHouse, and Metabase. Protobuf event definitions serve as the single source of truth: APIs use them to validate events, sinks use them to diff and migrate table schemas automatically, and they generate event documentation. The deployment grew from a single node to 3 shards × 3 replicas ingesting about half a billion rows per day, and ClickHouse array functions simplified the statistics for users exposed to many concurrent experiments.

The quest for software engineering knowledge.

Look:
Layout: