Skip to content

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

Doximity Technology 13 min read Case study mediumAdept

From Batch Snapshots to Near-Real-Time Data

Doximity added a Debezium/Kafka/Snowflake CDC pipeline alongside its existing Aurora point-in-time batch snapshots, bringing 95% of sampled events to a queryable layer within eight minutes. Four design decisions made it dependable. Trusted batch snapshots are reused as the bootstrap and recovery baseline, using Debezium's no_data mode plus GTID-bounded replay, which tolerates overlap but never gaps. Topics fan in to one raw Snowflake table and a metadata-driven router fans them back out per table. A base-plus-delta view makes changes visible before deferred MERGE compaction runs. Synthetic delete events reconstruct MySQL ON DELETE CASCADE child deletes that never appear in the binlog. The batch snapshots also act as a stable reference for validating CDC tables after replaying events to a common position.

Related posts

  • Capturing Every Change From Shopify’s Sharded Monolith

    Shopify Engineering mediumAdept

    Shopify is replacing Longboat, its query-based change-data capture tool that polls MySQL replicas on an updated_at column, with a log-based CDC platform built on Debezium, Kafka Connect and Kafka that reads the binlog from 100+ MySQL shards. Polling caps data freshness at about an hour and cannot capture hard deletes, intermediate row states, or updates that skip updated_at. It also produces snapshots with mismatched high-water marks. The new design merges per-shard Debezium output into one Kafka topic per logical table, so a single CDC pipeline can serve both the internal data warehouse and the merchant analytics platform with near-real-time change events.

  • MySQL CDC connector for ClickPipes is now Generally Available

    ClickHouse easyNovice

    ClickPipes' MySQL CDC connector, which replicates MySQL and MariaDB into ClickHouse Cloud, is generally available after moving over 1PB for hundreds of customers. Snapshots now run in parallel by default, with the partition key detected automatically from the primary key (including string and UUID types). In benchmarks this cut a 1TB snapshot from over a day to about an hour on 32 workers. New pipes require GTID-based replication, which survives failover unlike binlog file/offset positions, and at least 72 hours of binlog retention to avoid forced full resyncs. Also new are CPU, memory, network and source/destination lag metrics, Terraform and OpenAPI management, and volume-based billing starting September 1, 2026.

  • “Just OLAP it”: How Ramp rebuilt its analytics platform on ClickHouse Cloud

    ClickHouse mediumAdept

    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. The pipeline streams Postgres CDC via Debezium into per-table Kafka topics. Stateless Python enrichers denormalize the records, and a connector loads them into ReplacingMergeTree tables, with recurring OPTIMIZE and FINAL queries handling deduplication. A local benchmark of 60M transactions partitioned by business ID ran 16,000 randomized queries in 12 seconds, and a four-engineer pod shipped to production in about two months. The platform now backs in-app Reporting and Budgets, and Ramp plans to add enriched tables for every core data type.

  • Change Data Capture (CDC) with PostgreSQL and ClickHouse - Part 2

    ClickHouse mediumAdept

    A Postgres-to-ClickHouse CDC pipeline is built with Debezium, Kafka Connect and a ClickHouse materialized view, keeping a ReplacingMergeTree table in sync with the 28M-row UK property price dataset under a mix of inserts, updates and deletes. Key configuration choices include REPLICA IDENTITY FULL (required for delete support), the pgoutput logical decoding plugin, per-row ordering via a single or hash-partitioned Kafka topic, and version/deleted columns in the ReplacingMergeTree engine. The ORDER BY is chosen for analytical access patterns, with the Postgres id appended last for uniqueness. The initial load uses the postgresql table function via INSERT INTO SELECT, which loads all 28M rows in about 80 seconds without tuning but requires pausing writes; Debezium's consistent snapshot is the alternative.

  • How Spyne simplified their CDC pipeline with ClickPipes and ClickHouse Cloud

    ClickHouse mediumAdept

    Spyne replaced a self-managed Debezium → Kafka → ClickHouse Kafka-engine/materialized-view CDC pipeline with ClickPipes on ClickHouse Cloud. The move eliminated 1–1.5 hours of manual work per table onboarding and fixed schema drift, where new source columns were silently dropped by DDL-locked materialized views. It also brought tradeoffs: snapshotting a new table pauses the whole pipe, so critical tables were isolated into dedicated pipes. ReplacingMergeTree's eventual consistency required adding FINAL to queries at extra CPU cost, and binlog loss forces full table resyncs instead of targeted partial ones.

The quest for software engineering knowledge.

Look:
Layout: