heroku - Does pubnub affect the concurrency of my rails application? -
i read railscast #401 having long living connections takes threads in rails server. , puma server can optimally take on may 20-30 conncurrent connections.. mean have spin off many heroku instances rails application support (e.g. 1k - 5k people chatting?).
or not affecting because chat connections directly connceted pubnub's server?
yes, correct, end users (browser clients) connect (publish/subscribe) through pubnub without involving server.
in other words, not need have rails/server act subscriber. serve web page the appropriate pubnub javascript clients chat each other directly without involving server.
this image 1 of examples in links below illustration
here links should helpful:
Comments
Post a Comment