Subject token limit #5097
-
In the documentation it states that: "It is recommended to keep the maximum number of tokens in your subjects to a reasonable value of 16 tokens max". And I wanted to ask what is actually meant with that:
I believe the second option is the case, but I just wanted to make sure. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Indeed number 2, also as described here: https://docs.nats.io/nats-concepts/subjects#characters-allowed-for-subject-names
The |
Beta Was this translation helpful? Give feedback.
Indeed number 2, also as described here: https://docs.nats.io/nats-concepts/subjects#characters-allowed-for-subject-names
The
.
separates tokens. Should indeed keep that at a reasonable value and not go overboard with the amount of tokens. That way the server can guarantee performance of subjects up to that maximum, although it's probably not strictly enforced it would have performance impact.