node.js - Implementing PeerJS Server with multiple dynos on Heroku -
i've implemented peerjs express in node.js application using:
app.use('/peer', peer.expresspeerserver(app, {proxied: true}));
my concern when scale application onto multiple dynos accomodate traffic, won't able signal between peers have been connected different dynos through heroku's internal process model.
my initial thought create database collection keep track of peer ids connected on of dynos, don't know of way database notify each of dynos when peer on 1 dyno attempting signal peer connected on different dyno.
is there way exists or possibly implemented resolve issue scaling?
edit
i found reference doing wanted redis here: https://remysharp.com/2014/11/10/muddling-my-way-through-real-time#server-side
my question now, there existing repositories implement webrtc using redis?
there not appear existing signaling servers exist using node , redis.
Comments
Post a Comment