romain-cotte / webRTC-examples

0 stars 0 forks source link

Question #2

Open GrosSacASac opened 8 years ago

GrosSacASac commented 8 years ago

Question: Is it a good idea that I use this project (step 3 ) as a basis for a new project that uses WebRTC DataChanels ? Is there anything I should change before ?

romain-cotte commented 8 years ago

It's ok to use it as a new Project. However, you have to make some improvements. I would recommend to follow the 12 factor. This means create a stateless process : keep the ids in a database or cache. Moreover, if you want to scale up for multiple servers, you need a strategy for the sockets.

GrosSacASac commented 8 years ago

I was already thinking about saving state on disk rather than ram on the back end, I am going to publish the new project soon , it will be open source, do you want to be included in the list of contributors ? Also do you know if RTCPeerConnection data channel is reliable or unreliable ? does it use TCP UDP or something else ?

romain-cotte commented 8 years ago

It's not perfectly reliable but audio and video are packet loss tolerant. The used protocol depends on clients, this is what is negotiated during ice candidate exchange step.

http://chimera.labs.oreilly.com/books/1230000000545/ch18.html#_real_time_network_transports

I don't have much time but I can take a look.