Is there implementation for subscribing for multiple topics at the same time? Or plans for it? #588
faridsaid20
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We are using React.
Our backend consist of a lot of topics with small data.
Which means if we open a page and there are a lot of component with single topic subscription, then it means we have to do a lot of subscription calls and handle their response.
Which can be up to 100 in bigger pages.
I guess this is ok with modern computers, but we are using quite weak hardware in production, which means there is a big overhead with separate topics.
My idea is to:
This will batch all subscription and then call them all in one request.
This is simple example. You would also need batchedUnsubscribe if you want.
I have already implemented this in my fork, works great and reduces overhead a lot.
We use https://github.com/tplgy/bonefish for router.
Beta Was this translation helpful? Give feedback.
All reactions