Skip to content

Add sample 'orders-streaming-analytics' - #184

Merged
Lsubatin merged 11 commits into
GoogleCloudPlatform:mainfrom
NicolasRicheYopp:orders-streaming-analytics
Sep 28, 2026
Merged

Lsubatin merged 11 commits into
GoogleCloudPlatform:mainfrom
NicolasRicheYopp:orders-streaming-analytics

Conversation

@NicolasRicheYopp

@NicolasRicheYopp NicolasRicheYopp commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

This demo implements a dual-path streaming architecture ingesting orders (TCP-H dataset) where each branch addresses a distinct analytical goal.

The left branch (Lakehouse Aggregates path) handles predictable, day-to-day reporting by precomputing cumulative aggregates, such as daily order totals, and saving them directly into Spanner aggregate tables only when relevant data changes.

The right branch (Direct Spanner path) continuously maintains the raw orders table to support ad-hoc queries not covered by precomputations. By leveraging Spanner Data Boost alongside its columnar engine, these ad-hoc queries run efficiently without impacting the primary Spanner instance, thereby eliminating the need to over-provision it.

image

This demo implements a dual-path streaming architecture ingesting orders (TCP-H dataset) where each branch addresses a distinct analytical goal.

The left branch (Lakehouse Aggregates path) handles predictable, day-to-day reporting by precomputing cumulative aggregates, such as daily order totals, and saving them directly into Spanner aggregate tables only when relevant data changes.

The right branch (Direct Spanner path) continuously maintains the raw orders table to support ad-hoc queries not covered by precomputations. By leveraging Spanner Data Boost alongside its columnar engine, these ad-hoc queries run efficiently without impacting the primary Spanner instance, thereby eliminating the need to over-provision it.
@NicolasRicheYopp
NicolasRicheYopp marked this pull request as ready for review September 22, 2026 14:58
@NicolasRicheYopp

Copy link
Copy Markdown
Contributor Author

Hello @ghadlich, @jathreya, @Lsubatin this is the PR for Spanner Databoost streaming demo. The PR is ready for review.

@Lsubatin Lsubatin self-assigned this Sep 24, 2026
@NicolasRicheYopp

Copy link
Copy Markdown
Contributor Author

@Lsubatin I saw the previous CI failed due to a missing License header. I pushed a commit that add the License header.

Comment thread orders-streaming-analytics/demo.ipynb
Comment thread orders-streaming-analytics/demo.ipynb
Comment thread orders-streaming-analytics/demo.ipynb
Comment thread orders-streaming-analytics/demo.ipynb
Comment thread orders-streaming-analytics/demo.ipynb
Comment thread orders-streaming-analytics/uv.lock Outdated
@Lsubatin
Lsubatin merged commit 0ec2c8b into GoogleCloudPlatform:main Sep 28, 2026
7 checks passed
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.

2 participants