Skip to content

Noticed interesting sender behavior in JetStream #747

Answered by mtmk
Ivandemidov00 asked this question in Q&A
Discussion options

You must be logged in to vote

OK, so the short answer is you need to do your own validation if your subjects can be generated from other inputs which might be any string. some guidelines are here https://docs.nats.io/nats-concepts/subjects#characters-allowed-and-recommended-for-subject-names but

AFAIU, the main reason for the NATS client not to do the subject validation is not to create any performance loss and leave the validation to the server to avoid issues among different clients. So it is left to applications to build their subjects correctly and test before using their way of building subjects.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@mtmk
Comment options

mtmk Feb 20, 2025
Maintainer

Answer selected by aricart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants