[#208] Add tenant-aware query handling to the multi-tenancy demo - #4852
Merged
Conversation
Base automatically changed from
feature/axoniq/176/210_pooled_streaming_demo
to
main
July 31, 2026 10:04
laura-devriendt-lemon
marked this pull request as ready for review
July 31, 2026 11:16
laura-devriendt-lemon
requested review from
hatzlj,
smcvb and
zambrovski
and removed request for
a team
July 31, 2026 11:16
MateuszNaKodach
approved these changes
Jul 31, 2026
smcvb
reviewed
Jul 31, 2026
smcvb
left a comment
Contributor
There was a problem hiding this comment.
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.
smcvb
approved these changes
Jul 31, 2026
smcvb
left a comment
Contributor
There was a problem hiding this comment.
My concerns will be addressed, hence I'm preemptively approving this pull request.
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.
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
mainonto the pooled-streaming branch and with its duplicatedMultiTenantStreamingProcessorRestartConfigurationrename 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.GetTenantStatisticsis an empty record, so the predicate handed to the emitter isquery -> trueand literally cannot name a tenant. The isolation is therefore the framework's, not the predicate's.