[Facebooker-talk] call queuing

Mike Mangino mmangino at elevatedrails.com
Tue Jan 13 10:05:31 EST 2009


We process all API calls through a set of starling queues. We have a  
ProfileUpdate object so our flow looks like:

class User
   def refresh_profile
     ProfileUpdate.new(self.faceook_id).enqueue
   end
end

We then have a job that pulls Profile Update messages off of the queue  
and calls execute on them. The execute method does the profile update.

My using the command pattern we know we can throw any object the  
implements execute onto the queue and the processing daemons will  
handle it.

Mike

On Jan 13, 2009, at 9:53 AM, Lee Mallabone wrote:

> Hi all,
>
> I'm using profile.setFBML for an app I'm working on and in development
> I'm seeing fairly lengthy response times. It normally seems to return
> well within 1-3 seconds but occasionally seems to spike at around 20
> seconds.
>
> As I'm calling setFBML in response to a user action (on a canvas
> page), this could give a really bad user experience. I don't think my
> FBML pages are especially large so I'm wondering, are these sorts of
> timings normal?
>
> If so, is anyone already using an asynchronous queuing system to cope
> with this issue that they'd be willing to point me at? I could roll my
> own, but if setFBML typically takes a while it seems like something
> that would be useful for a large number of facebooker users.
>
> Regards,
> Lee.
>
>
> -- 
> Lee Mallabone.
> Crossbone Systems Ltd.
>
> http://www.crossbonesystems.com/
> http://www.fonicmonkey.net/
> http://CambridgeWebHeads.ning.com/
> _______________________________________________
> Facebooker-talk mailing list
> Facebooker-talk at rubyforge.org
> http://rubyforge.org/mailman/listinfo/facebooker-talk

--
Mike Mangino
http://www.elevatedrails.com





More information about the Facebooker-talk mailing list