need advice: http client / async / danga socket

Brad Fitzpatrick brad at danga.com
Sun Oct 29 12:34:15 UTC 2006


On Sun, 29 Oct 2006, Martin Atkins wrote:

> Brad Fitzpatrick wrote:
> > On Sun, 29 Oct 2006, Martin Atkins wrote:
> >
> >> oliver oli wrote:
> >>> Martin Atkins wrote:
> >>>> The current "solution" to this problem is to use Gearman, which is an
> >>>> out-of-process distributed job server — also a Danga thing — that can
> >>>> run asynchronously. This is how LJ Talk authenticates against
> >>>> LiveJournal.
> >>> is there ruby support for gearman? the website says it's language
> >>> agnostic, but i guess someone has to write a ruby client :-).
> >> I imagine it wouldn't be too hard to write a Gearman job server in Ruby.
> >> Gearman's protocol's not that complicated. But I don't know Ruby. :)
> >
> > Actually he'd want to write a Gearman::Client in Ruby, and just use the
> > gearmand (the job server) that's already in Perl.
> >
> > And that'd be easier.
> >
>
> Oh yes. I got muddled up about how Gearman worked for a moment there.
>
> But wouldn't it be a Ruby version of Gearman::Worker in this particular
> case?
> Gearman::Client(::Async) is used at the DJabberd end, presumably.

Yes, Gearman::Worker.  And now I'm confused, because Gearman::Worker and
Gearman::Client are pretty much the same...  just different API around
what you do at the protocol level.  By the time you'd written a Ruby
Gearman::Worker, you'd almost have Gearman::Client for free.



More information about the Djabberd mailing list