---
title: "From Batch Snapshots to Near-Real-Time Data"
description: "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."
url: "https://swe.quest/articles/from-batch-snapshots-to-near-real-time-data-66d4723d1d45278d"
canonical: "https://technology.doximity.com/articles/from-batch-snapshots-to-near-real-time-data"
source: "Doximity Technology"
published: "2026-08-04"
difficulty: "medium"
kind: "Case study"
reading_minutes: 13
tags: ["event-driven","data-pipelines","mysql","analytics","replication"]
---

# From Batch Snapshots to Near-Real-Time Data

A post on [Doximity Technology](https://swe.quest/sources/doximity.md), published 2026-08-04, 13 min read, Case study. Original: [https://technology.doximity.com/articles/from-batch-snapshots-to-near-real-time-data](https://technology.doximity.com/articles/from-batch-snapshots-to-near-real-time-data)

## Summary

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.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Event-driven architecture](https://swe.quest/tags/event-driven.md) (Backend & APIs)
- [Data pipelines](https://swe.quest/tags/data-pipelines.md) (Data & databases)
- [MySQL](https://swe.quest/tags/mysql.md) (Data & databases)
- [Analytics & OLAP](https://swe.quest/tags/analytics.md) (Data & databases)
- [Replication](https://swe.quest/tags/replication.md) (Distributed systems)

## Prerequisites

- change data capture basics
- Kafka topics and connectors ([easy posts on Queues & messaging](https://swe.quest/tags/messaging.md?difficulty=easy))
- MySQL binlog replication ([easy posts on MySQL](https://swe.quest/tags/mysql.md?difficulty=easy))
- data warehouse MERGE semantics ([easy posts on Analytics & OLAP](https://swe.quest/tags/analytics.md?difficulty=easy))

## Keywords

Debezium, Kafka, Snowflake, MySQL binlog, Amazon Aurora, GTID, ON DELETE CASCADE, Kafka Connect

## Related posts

- [Capturing Every Change From Shopify’s Sharded Monolith](https://swe.quest/articles/capturing-every-change-from-shopify-s-sharded-monolith-fd5db9b13b97ba9a.md): Shopify Engineering · 2021-03-12 · Medium · 23 min read · Event-driven architecture, Data pipelines, MySQL, Queues & messaging, Analytics & OLAP
  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.
- [MySQL CDC connector for ClickPipes is now Generally Available](https://swe.quest/articles/mysql-cdc-connector-for-clickpipes-is-now-generally-available-67d5bc9ddaf5dc04.md): ClickHouse · 2026-09-02 · Easy · 6 min read · Event-driven architecture, MySQL, Analytics & OLAP, Replication, Data pipelines
  ClickPipes' MySQL CDC connector, which replicates MySQL and MariaDB into ClickHouse Cloud, is generally available after moving over 1PB for hundreds of customers.
- [“Just OLAP it”: How Ramp rebuilt its analytics platform on ClickHouse Cloud](https://swe.quest/articles/just-olap-it-how-ramp-rebuilt-its-analytics-platform-on-clickhouse-cloud-36298842faab88cc.md): ClickHouse · 2026-01-20 · Medium · 5 min read · Analytics & OLAP, Event-driven architecture, Data pipelines, PostgreSQL, Queues & messaging
  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.
- [Change Data Capture (CDC) with PostgreSQL and ClickHouse - Part 2](https://swe.quest/articles/change-data-capture-cdc-with-postgresql-and-clickhouse-part-2-2123f803752f2e9d.md): ClickHouse · 2023-06-15 · Medium · 22 min read · Event-driven architecture, PostgreSQL, Analytics & OLAP, Data pipelines, Replication
  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.
- [How Spyne simplified their CDC pipeline with ClickPipes and ClickHouse Cloud](https://swe.quest/articles/how-spyne-simplified-their-cdc-pipeline-with-clickpipes-and-clickhouse-cloud-44d67da08e6e4dbc.md): ClickHouse · 2026-06-22 · Medium · 6 min read · Event-driven architecture, Data pipelines, Analytics & OLAP, Schema migrations
  Spyne replaced a self-managed Debezium → Kafka → ClickHouse Kafka-engine/materialized-view CDC pipeline with ClickPipes on ClickHouse Cloud.

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)
