Handling a lot of data in Java servlet
what I am trying to do is reading the latest开发者_运维技巧 statuses from all my facebook friends using graph api ,it takes too long , I am getting all my friends for facebook as json and I read the latest statuses from them , what I am getting is timeout , I know it will take too long to do , but what the efficient way to handle such thing?
break that into batches and probably do it in separate threads (since most of this will be IO work).
精彩评论