Add realtime-clickstream-serving demo (Real-Time Mode to Lakebase, transformWithState) - #250
Open
syudb wants to merge 1 commit into
Open
Add realtime-clickstream-serving demo (Real-Time Mode to Lakebase, transformWithState)#250syudb wants to merge 1 commit into
syudb wants to merge 1 commit into
Conversation
…ansformWithState)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 nativepostgresqlstreaming 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,transformWithStatesessionization, continuous upserts into Lakebase via the nativepostgresqlsink.02-deploy-personalization-console- deploy the Personalization Console Databricks App (source inapp/) with a Lakebase database resource.New demo; does not modify the existing
streaming-sessionizationdemo. Images: databricks-demos/dbdemos-resources#59.