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.
channels pub/sub can be routed to concrete tarantool instances
Proposed changes
added shards routing ability (for tarantool engine only)
clients can subscribe channels to subset of tarantool shards
each channel can be subscribed to multiple shards
at now all instances/shards are all the same and consistent hashing is used to select one of them
but we can have tarantool instances with different roles and each instance has its own set of channels
this patch adds flexible rules how to subscribe channels to shards
config example:
presence/publish/history is not yet implemented
limitations for multi-shards routes:
publish cannot do it atomically, so duplicates will be if client re-publishes on error (if some of shards will die)
history cannot return just one StreamPosition, so new history api is needed (and what to do with old one?)