Sunday 3 June 2012

Asynchronous Twitter Requests

Over the past three days I worked on making twitter requests asynchronous, which was not the case earlier, mainly due to the CURL calls in libtwitcurl library. The main idea - "Run each request in a separate thread without blocking the main thread". One of the main tasks was to create a generic thread pool framework that provides an easy, clean interface to manage thread life-cycle. The next task was to re-write/re-organize some of the existing code to create requests that can make use of  this thread pool library, thus allowing multiple requests to run concurrently without blocking the main thread. The end result: Twitter-Backend is now more scalable and robust!

3 comments:

  1. Hi Sarang,

    when do you expect all these changes you are doing to be incorporated into "Spectrum" if they are related to "Spectrum" ofcourse?

    Thanks,
    Tiho

    ReplyDelete
    Replies
    1. I guess by the end of August 2012 when GSoC 2012 officially ends. This is of course assuming that I am able to successfully and satisfactorily complete the project.

      Delete
  2. Thanks for you response Sarang,

    I will be following your progress with high attention :)

    Thanks,
    Tiho

    ReplyDelete