Skip to content

[#208] Add tenant-aware query handling to the multi-tenancy demo - #4852

Merged
laura-devriendt-lemon merged 20 commits into
mainfrom
feature/axoniq/176/208_query_demo
Jul 31, 2026
Merged

[#208] Add tenant-aware query handling to the multi-tenancy demo#4852
laura-devriendt-lemon merged 20 commits into
mainfrom
feature/axoniq/176/208_query_demo

Conversation

@laura-devriendt-lemon

@laura-devriendt-lemon laura-devriendt-lemon commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Demonstrates the tenant-aware query handling from axoniq-framework#281 (axoniq-framework#208) in the multi-tenancy example.

Stacked on #4795, so the diff here is the four commits on top of it. Supersedes #4851, whose first commit is cherry-picked here with its author intact, rebased off main onto the pooled-streaming branch and with its duplicated MultiTenantStreamingProcessorRestartConfiguration rename dropped.

What it shows

The statistics slice gains a subscription query. Both tenants known at startup subscribe to their own statistics before either enrolls a student, and ReadModelWrites, already the one write both the projection and the command handler use, becomes the one place that emits updates and completes subscriptions. GetTenantStatistics is an empty record, so the predicate handed to the emitter is query -> true and literally cannot name a tenant. The isolation is therefore the framework's, not the predicate's.

@laura-devriendt-lemon laura-devriendt-lemon added Type: Feature Use to signal an issue is completely new to the project. Priority 1: Must Highest priority. A release cannot be made if this issue isn’t resolved. labels Jul 31, 2026
@laura-devriendt-lemon laura-devriendt-lemon added this to the Release 5.3.0 milestone Jul 31, 2026
@laura-devriendt-lemon laura-devriendt-lemon self-assigned this Jul 31, 2026
Base automatically changed from feature/axoniq/176/210_pooled_streaming_demo to main July 31, 2026 10:04
@laura-devriendt-lemon
laura-devriendt-lemon marked this pull request as ready for review July 31, 2026 11:16
@laura-devriendt-lemon
laura-devriendt-lemon requested a review from a team as a code owner July 31, 2026 11:16
@laura-devriendt-lemon
laura-devriendt-lemon requested review from hatzlj, smcvb and zambrovski and removed request for a team July 31, 2026 11:16
Comment thread examples/university-multi-tenancy-examples/university-multi-tenancy-core/pom.xml Outdated

@smcvb smcvb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One question, two additions to Mateusz his comments. Other than that, looks fine to me. That one question is the sole thing blocking an approval though.

Comment thread examples/university-multi-tenancy-examples/university-multi-tenancy-core/pom.xml Outdated

@smcvb smcvb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My concerns will be addressed, hence I'm preemptively approving this pull request.

@laura-devriendt-lemon
laura-devriendt-lemon merged commit 3e70e75 into main Jul 31, 2026
7 checks passed
@laura-devriendt-lemon
laura-devriendt-lemon deleted the feature/axoniq/176/208_query_demo branch July 31, 2026 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Priority 1: Must Highest priority. A release cannot be made if this issue isn’t resolved. Type: Feature Use to signal an issue is completely new to the project.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants