-
After I open a room, I receive a large amount of data from the outside.
The data is quite large, and approximately 500 pieces of data are being sent every second. Has anyone encountered this issue before and knows how to resolve it? The code how was I send the message.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @kelvinlee, each remote room call will generate two messages under the hood (one for request, other for the response) and should be used with caution. By your code it seems you could achieve the same result by using publish/subscribe instead, without the need to query all the rooms, and reducing the amount of messages going through Redis. Hope this helps, if it doesn’t, please share your use-case as it may be solved differently in a more efficient way. Cheers |
Beta Was this translation helpful? Give feedback.
Hi @kelvinlee, each remote room call will generate two messages under the hood (one for request, other for the response) and should be used with caution.
By your code it seems you could achieve the same result by using publish/subscribe instead, without the need to query all the rooms, and reducing the amount of messages going through Redis.
Hope this helps, if it doesn’t, please share your use-case as it may be solved differently in a more efficient way. Cheers