need advice: http client / async / danga socket

Martin Atkins mart at degeneration.co.uk
Sun Oct 29 11:14:36 UTC 2006


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. :)

  >> Perlbal (yet another Danga project) also has a basic HTTP client
>> implementation based on Danga::Socket, but I'm not sure how easy it'd 
>> be to extract from Perlbal and re-use.
> 
> I have browsed the Perbal sources, before I asked for advice, but I 
> couldn't figure out how to reuse the http stuff from Perlbal. My little 
> problem is, that I'm not a Perl programmer and I find this asynchronous 
> socket thingie hard to grasp. (On the other hand it's even harder for me 
> to understand Ejabberd/Erlang and the Java server are also not an option).
> 

I failed at Erlang as well. :)




More information about the Djabberd mailing list