Recently, I found myself wanting to develop a web application using real-time technologies. As far as I see, I have two ideal solutions.
- Use WebSockets. (in my case Socket.io)
- use a real-time database like RethinkDB (I guess stuff like Pusher and PubNub also fall into this category too)
I am lost, however. What are the technical differences between these two solutions? When should I prefer one over the other?