Hi, We recently upgraded mediasoup in production and observed some really weird behaviour in direct transports and datachannels. I think i’ve tracked it down the the 3.9.0 release and this pr.
What we observed was crazy high memory usage and a multi minute delay of chat message being delivered only when we had 8+ people connected to a room. Whats interesting is that they’d come in waves and everyone in the room would get the messages all at once then nothing for an extended period of time. Normal usage of data channels with webrtc transports appears normals and normal voip traffic was not delated. We think the issue relates to direct transports in conjunction to webrtc transports.
Our architecture looks something like this
sender webrtc data producer → sender direct data consumer → sender direct data producer → receiver direct data consumer → recevier direct data producer → receiver webrtc data consumer
We can repo this in our testing environment but Im not sure how to debug this behaviour. Can someone help explain what we observed?