mafintosh / webrtc-swarm

Create a swarm of p2p connections using webrtc and a signalhub
MIT License
380 stars 60 forks source link

Infinitely scalable? #7

Closed Charuru closed 8 years ago

Charuru commented 8 years ago

I'm looking to create a p2p chatroom with infinite scalability. Basically right now I'm paying pusher.com a lot of money to scale my chat app which has hundreds of users in a single room. Is this the library that I want? Some more details in the readme would be great.

paulkernfeld commented 8 years ago

I think this could be a useful basis for your chatroom, but you'd need something more. In this thread and probably elsewhere, there are some interesting notes on the maximum number of RTC connections that can be open (about 30 for Chrome). So, in order to build a highly scalable chatroom, you'd need a clever way to propagate chat messages around the room, since you can't connect every client to every other client. Perhaps you could use a gossip protocol to accomplish that.

Charuru commented 8 years ago

Oh I see, I thought this was a gossip protocol. Thanks.

perguth commented 8 years ago

Thanks @paulkernfeld for the good answer!