The correct way to use multi-topic (regex pattern) consumers #21762
Unanswered
KamenRiderKuuga
asked this question in
Q&A
Replies: 0 comments
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.
Our system uses thousands of topics starting with the same prefix, like
data-{categoryId}, and categoryId has thousands of possibilities. When we use consumers to subscribe, we find that there are actually thousands of them in the memory. Instances of consumer objects, each corresponds to one of the matched topics. We are worried that this will cause some adverse effects (such as the pressure that listening to new topics will bring to the server and client). Considering the fact that our server We need to subscribe to all the topics. Should we remove the{categoryId}variable from the topics?All reactions