From: Tony Arcieri Date: 2009-12-08T12:03:49+09:00 Subject: Re: how about ruby's threads? --000e0cd590fcebeebe047a2ebf40 Content-Type: text/plain; charset=ISO-8859-1 On Mon, Dec 7, 2009 at 5:39 PM, Bill Kelly wrote: > An additional alternative that is pretty neat is combining an > event-driven library with Fibers in ruby 1.9.x. > > Assuming of course, the existence of an HTTP library in that > idiom. > Revactor provides exactly this with its HTTP client. Revactor models actors as fibers and wraps an underlying evented client (the afforementioned Rev::HttpClient) with them: http://github.com/tarcieri/revactor/blob/master/lib/revactor/http_client.rb Here's a concurrent HTTP fetcher written around this HTTP client: http://github.com/tarcieri/revactor/blob/master/lib/revactor/http_fetcher.rb -- Tony Arcieri Medioh! A Kudelski Brand --000e0cd590fcebeebe047a2ebf40--