[Facebooker-talk] call queuing
Jonathan Otto
jonathan.otto at gmail.com
Fri Jan 30 00:48:02 EST 2009
What data are you storing in the queue object?
The Facebook sessions timeout after 1 hour unless extended permissions
right? Does this mean that if the daemon doesn't get to the queue
within 30 minutes of the user's last hit to your app it will fail?
If this is true, then it would seem that you should keep multiple
daemons running to keep the queue as low as possible.
On Tue, Jan 13, 2009 at 9:05 AM, Mike Mangino
<mmangino at elevatedrails.com> wrote:
> 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
>
>
>
> _______________________________________________
> Facebooker-talk mailing list
> Facebooker-talk at rubyforge.org
> http://rubyforge.org/mailman/listinfo/facebooker-talk
>
More information about the Facebooker-talk
mailing list