I’m having an issue with DataChannels where they s...
# cloud
h
I’m having an issue with DataChannels where they sometimes seem to be getting buffered up even when “unreliable” mode is enabled. I’m seeing slightly different behavior in Chrome vs Firefox when this happens. In Chrome, the browser will “catch-up” where the delayed messages will suddenly all arrive together and then realtime behavior will resume. However in Firefox, it will never catchup and the data channels just seem to get further and further behind. This makes congested data channels unusable in Firefox (for my purposes). While this is happening, audio and video channels seem unaffected. For my web application, I’m using a combination of reliable and unreliable data channels to send messages between clients to sync up a 3D world (frequent positional data over unreliable channels and infrequent chat/world updates over reliable ones). Messages are being throttled to send at most 20 times a second per client, but if a lot of avatars are moving around, this could be adding up. This is affecting both unreliable and reliable channels together. Positional and chat messages both seem to be getting buffered together equally. Although as mentioned above, audio/video channels seem unaffected. We ran an event a couple of weeks ago (RM_y8xKSyJnPtW8) where we had about 30 connected participants (mostly in the same region), all moving around in the world and sending positional updates. Most of our Firefox users experienced the time dilation effect (getting minutes behind in time, but just for data channels not media) and a few of the chrome users mentioned the weird catchup effect (experienced as the world getting little bit behind and then suddenly all the avatars whizzing around and catchup up to their realtime positions and all their chat messages appearing at once). So far, I’ve been unable to reproduce this effect outside of actual events with many participants, but I’ve seen it happening with our larger events since March (although I’m fairly sure we hand not seen this before then). What's particularly concerning is that both reliable AND unreliable channels back up together, despite theoretically using separate data channels. This makes me suspect the issue is upstream of the individual channel flow control. Is there something on LiveKit Cloud’s end that could be causing this behavior? Or should I be looking into things on the client?
f
That room is just at the edge of the log retention window, so I am not sure if I am seeing all the logs. Not seeing a lot of participants in the logs (I see only 8 participant joins in the logs). There is some back pressure for reliable data channels, but nothing on unreliable data channels. Server will read slower from publishers if one of the subscribers has low bandwidth/slow consumption. That will apply some back pressure. But, that is only for reliable data channels. Unreliable should not face this. I do see that happening a couple of times in the logs I can see. That should not affect unreliable at all. That is surprising. Will check more.
h
Thanks for investigating. The logs for that room are still visible to me in the analytics UI. I assume you mean your internal logs? I'm seeing 267 unique participants with the max connected at a time around 38. Room starting 13 Jul 2025, 015856 UTC.