Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Partition by #3

Merged
merged 3 commits into from
Jul 7, 2022
Merged

Partition by #3

merged 3 commits into from
Jul 7, 2022

Conversation

fabriziosestito
Copy link
Owner

@fabriziosestito fabriziosestito commented Jul 6, 2022

This PR introduces the support for the partition_by option introduced in Commanded 1.4

When a partition function is passed, multiple subscriptions with max_subscriber_count = 1 and the index as a suffix are created.
When an event is received, the partition function is applied and phash2 is used to determine if the subscriber is interested in the event.

@fabriziosestito fabriziosestito marked this pull request as ready for review July 7, 2022 06:43
@fabriziosestito fabriziosestito changed the title Partition by WIP Partition by Jul 7, 2022
@fabriziosestito fabriziosestito merged commit bb78b02 into main Jul 7, 2022
fabriziosestito added a commit that referenced this pull request Aug 17, 2022
This reverts commit bb78b02.
fabriziosestito added a commit that referenced this pull request Aug 17, 2022
@fabriziosestito fabriziosestito deleted the partition_by branch August 17, 2022 15:00
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.

None yet

1 participant