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

Range-based subscriptions #5260

Open
AbstractiveNord opened this issue Mar 30, 2024 · 0 comments
Open

Range-based subscriptions #5260

AbstractiveNord opened this issue Mar 30, 2024 · 0 comments
Assignees
Labels
proposal Enhancement idea or proposal

Comments

@AbstractiveNord
Copy link

Proposed change

In case of sharding, split based on range of some integer in subject can make it easier. Same approach used by Redis, called hash slots and it's hardcoded to 16k, shards use ranges of hash slots to determine which shard should be used. Since NATS has partition function for subject modifying, range based subscriptions may help to shard NATS a lot.

Use case

Sharding and splitting NATS traffic and storage.

Contribution

Yes.

@AbstractiveNord AbstractiveNord added the proposal Enhancement idea or proposal label Mar 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
proposal Enhancement idea or proposal
Projects
None yet
Development

No branches or pull requests

2 participants