aspose file tools*
The moose likes Spring and the fly likes How should I approach building a real time comment system like social networks Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "How should I approach building a real time comment system like social networks" Watch "How should I approach building a real time comment system like social networks" New topic
Author

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

Kr. Pallav
Ranch Hand

Joined: Mar 06, 2010
Posts: 32

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.


~|>@//@\/~
Kumar Pallav
-------------------
SCJP 5: 86 %, SCWCD: 91%
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17257
    
    6

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


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How should I approach building a real time comment system like social networks