Why JetStream doesn't achieve linear scalability through partitioning? #6315
Replies: 3 comments
-
A partition in Kafka is equivalent to a stream in NATS. |
Beta Was this translation helpful? Give feedback.
0 replies
-
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)). |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If a topic has a data volume of tens of millions, does it need to be split into multiple streams to support it. Because streams cannot be split and stored on multiple machines, they can only be split into multiple streams from the business side, as shown in the following example.
nats stream add ORDERS --subjects "orders.partition0,orders.partition1"
Beta Was this translation helpful? Give feedback.
All reactions