Skip to content

Why JetStream doesn't achieve linear scalability through partitioning? #6315

Closed Answered by jnmoyne
penghuazhou asked this question in Q&A
Discussion options

You must be logged in to vote

You can also leverage the built-in core NATS subject mapping functionality to automatically have NATS insert a partition number as part of the subject when the message is published (meaning you can control and adjust the number of partitions (or which part(s) of the subject the partition number is calculated from) administratively rather than doing the partitioning at the client code level (if you would rather avoid that)).
https://docs.nats.io/nats-concepts/subject_mapping

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by jnmoyne
Comment options

You must be logged in to vote
2 replies
@jnmoyne
Comment options

jnmoyne Jan 17, 2025
Collaborator

@penghuazhou
Comment options

# for free to join this conversation on GitHub. Already have an account? # to comment
Category
Q&A
Labels
None yet
3 participants