Replies: 1 comment
|
No problem with having a lot of subjects in a stream in terms of performance impact, even with a lot more than a million subjects. The only thing to keep in mind is that the server will use RAM to store its index of subjects (radix tree index). It depends on the size of the subjects of course but for something around 1 million subjects it would be in the order of 100 megs of RAM (with small subjects). |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
We're going to make a stream (file storage, retention 10GB, 5-10 days) with the wildcard, way,
subject.>. And put there a lot of (about 1 million) messages likesubject.<random-UUID-v4-here>.Is there any performance issues expected because of subject cardinality?
In any case: consuming, subscribing, publishing, cluster startup, RAFT leader election, etc, whatever.
Going to use a NATS cluster with 3 nodes.
Consumers based on the faststream (Python + Django) and Go SDK library.
Any response is appreciated.
All reactions