← All case files
// case file
CASE / 16
Kafka to Snowflake
KAFSNOPYTSTR
EVENTSBUFFERTABLENEAR-REAL-TIMECASE 16KAFKA TO SNOWFLAKE
● Shippedcase file · 16 / 16
Case
#16
Where
Yosi Health
Categories
Streaming · Python · Snowflake
Read
~2 min
/16

Near-Real-Time Event Ingestion (Kafka → Snowflake)

KafkaSnowpipePythonStreams
Sub-minute event ingestion with quality monitoring and out-of-order handling. Powered live operational dashboards with no batch lag.
+
The Problem

Operational teams needed visibility into events as they happened — not 24 hours later. The existing batch pipeline ran nightly, which meant by the time an issue showed up on the dashboard, the day was over. Switching to streaming meant rethinking watermarks, ordering, and failure recovery.

The Approach

Built a Kafka-to-Snowflake pipeline using Snowpipe Streaming for sub-minute landing, then Snowflake Streams + Tasks for incremental transformation. Out-of-order events handled via watermark tolerance windows. Quality metrics (lag, dropped events, schema drift) emitted to a monitoring dashboard.

Technical Details
  • Snowpipe Streaming with row-level latency under 60s
  • Streams + Tasks for incremental aggregation
  • Watermark tolerance for out-of-order events
  • Schema evolution handling without pipeline restart
  • Lag, drop, and drift metrics surfaced to ops
<1m
End-to-end lag
24/7
Quality monitor
0
Manual recovery
01 / 16