Skip to content

Add clickstream-direct-to-lakehouse demo (Zerobus to Managed Delta, transformWithState)#248

Open
syudb wants to merge 1 commit into
databricks-demos:mainfrom
syudb:add-clickstream-direct-to-lakehouse
Open

Add clickstream-direct-to-lakehouse demo (Zerobus to Managed Delta, transformWithState)#248
syudb wants to merge 1 commit into
databricks-demos:mainfrom
syudb:add-clickstream-direct-to-lakehouse

Conversation

@syudb

@syudb syudb commented Jun 22, 2026

Copy link
Copy Markdown

New product demo: product_demos/clickstream-direct-to-lakehouse.

Lands application clickstream events directly into a Unity Catalog managed Delta table via Zerobus (no Kafka, no message bus), then sessionizes with Structured Streaming transformWithState (event-time timers, dedup for Zerobus at-least-once) and MERGE-upserts a sessions table read with plain SQL. Modernizes the streaming-sessionization story to Zerobus + transformWithState, replacing the legacy applyInPandasWithState.

Notebooks:

  • 00-setup-table - define the events UC managed Delta table.
  • 01-zerobus-producer - stream synthetic clickstream events in via the Zerobus REST API (one-time Zerobus service principal + secret-scope setup is documented in the notebook).
  • 02-sessionize - dedupe, sessionize with transformWithState, MERGE into a sessions table.

New demo; does not modify the existing streaming-sessionization demo. Images: databricks-demos/dbdemos-resources#58.

…ransformWithState)

Part A of replacing the Spark Streaming - Advanced (streaming-sessionization) demo. Lands app
clickstream events directly into a Unity Catalog managed Delta table via Zerobus, then sessionizes
with Structured Streaming transformWithState and MERGE-upserts a sessions table. New demo; does not
modify the existing streaming-sessionization demo.

FEIP-7706

Co-authored-by: Isaac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant