Skip to content

Max unique subjects in a single jetstream #5202

Answered by derekcollison
suchen-sci asked this question in Q&A
Discussion options

You must be logged in to vote

Yes you can create a stream that way and place messages into it which have unique subjects.

Currently the recent versions of the the server, >= 2.10.9, use a modified Adaptive Radix Trie to store in memory index data per subject that identifies metadata about the subject. Currently that is number of messages and first and last blocks. Assuming you are talking about a filestore backed stream.

The stree (ART impl) uses path compression and lazy expansion so is efficient at the types of subjects you have mentioned, since only the suffix needs to be stored at the leafs.

We do have plans to implement a version that can be stored to disk as well, but currently this is all kept in memory. 50k su…

Replies: 3 comments

Comment options

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

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants