Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How should I approach building a real time comment system like social networks

 
Kr. Pallav
Ranch Hand
Posts: 32
Eclipse IDE Netbeans IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to build a system where there are multiple users and can see if I update something , [based on certain conditions] almost like twitter and facebook , how can I write a live streaming updates with Spring , will spring social be of any help ,
System should fetch my updates from my websites and also from Facebook & twitter
Or should I approach another way , please guide.
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Kr. Pallav wrote:I want to build a system where there are multiple users and can see if I update something , [based on certain conditions] almost like twitter and facebook , how can I write a live streaming updates with Spring , will spring social be of any help ,
System should fetch my updates from my websites and also from Facebook & twitter
Or should I approach another way , please guide.


Well there are lots of ways to a solution for this. One is AJAX on the client side polling the server for new data. One is something like WebSockets for a permanent connection. For the server side, you could use Spring Social with Spring Integration and in Spring Integration set up a poller to get new data, but then find a way to push like Web Sockets to the client.

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic