Rails: Long Surveys

I am developing an application that allows users to post to rooms / pages, like a forum or here (stackoverflow). I have already built the entire application, but I have one last hurdle to raise: How to handle message updates for the user.

I have done a lot to research the topic, and I believe that Long Polling is the way to go, at least until I get a huge amount of traffic (if this happens, I will figure out how to implement websites). This is because Long Polling will be easier to implement, it will be more widely supported and, given that I am deploying to the server, it will be easy to quickly update server resources. In any case, I wanted to know which best methods have a long poll, both in terms of user interaction and server load.

Should I automatically post messages on the page or create a warning system, for example, here in stackoverflow?

Any and all materials will be appreciated. If you think that my logic is wrong anyway, let me know!

+5
source share
1 answer

For such a system, we suggest using something like pusher . Check out the documentation for more details on how to do this. https://devcenter.heroku.com/articles/pusher

+1
source

All Articles