Skip to content

Add realtime-clickstream-serving demo (Real-Time Mode to Lakebase, transformWithState) - #250

Open
syudb wants to merge 1 commit into
databricks-demos:mainfrom
syudb:add-realtime-clickstream-serving
Open

Add realtime-clickstream-serving demo (Real-Time Mode to Lakebase, transformWithState)#250
syudb wants to merge 1 commit into
databricks-demos:mainfrom
syudb:add-realtime-clickstream-serving

Conversation

@syudb

@syudb syudb commented Jul 13, 2026

Copy link
Copy Markdown

New product demo: product_demos/realtime-clickstream-serving.

Sessionizes a live clickstream with Structured Streaming Real-Time Mode and transformWithState, keeping each user's current session state in Lakebase Postgres through the native postgresql streaming sink (DBR 18.3+). A Streamlit Databricks App, the Personalization Console, reads session state from Lakebase with millisecond point lookups and shows a next-best action per user.

Notebooks:

  • 00-provision-lakebase - provision the Lakebase instance and the sessions state table, grant the app service principal read access.
  • 01-realtime-sessionize - the Real-Time Mode pipeline: synthetic clickstream source, transformWithState sessionization, continuous upserts into Lakebase via the native postgresql sink.
  • 02-deploy-personalization-console - deploy the Personalization Console Databricks App (source in app/) with a Lakebase database resource.

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

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