From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS33070 50.56.128.0/17 X-Spam-Status: No, score=0.0 required=3.0 tests=MSGID_FROM_MTA_HEADER, TVD_RCVD_IP shortcircuit=no autolearn=unavailable version=3.3.2 Path: news.gmane.org!not-for-mail From: "W. Andrew Loe III" Newsgroups: gmane.comp.lang.ruby.rainbows.general Subject: Alternatives to EventMachine for async.callback Date: Fri, 18 Jan 2013 10:33:56 -0800 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1358534049 11093 80.91.229.3 (18 Jan 2013 18:34:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 18 Jan 2013 18:34:09 +0000 (UTC) To: "Rainbows! list" Original-X-From: rainbows-talk-bounces-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Fri Jan 18 19:34:28 2013 Return-path: Envelope-to: gclrrg-rainbows-talk@m.gmane.org X-Original-To: rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Delivered-To: rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=andrewloe.com; s=google; h=mime-version:x-received:x-originating-ip:date:message-id:subject :from:to:content-type; bh=KaPQVg9Lk1rXTGffVGVBh8Wb3gvNRomH6dka1/GYuOs=; b=ZtnpzB5L47gW7Wmcx6Kz2mfe1M2QH7EYVIHgg2T2pslCEB8xSlSgWk4pv7tsQmzu8o Ba3re11KtER12rJKIm7PcZDYb7yC+HgVNupgGY+Z1LYaCIQiKAxkuaU3fu1t2GJ8QgSE gSiO9Z5NS/aO+uBAfHCR4/O3bOaDHSK9mUFIs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-received:x-originating-ip:date:message-id:subject :from:to:content-type:x-gm-message-state; bh=KaPQVg9Lk1rXTGffVGVBh8Wb3gvNRomH6dka1/GYuOs=; b=VjhITVf2p7oBz0jKBnG1YbVHEJGOcM8hbdqZLOGAenERC911OEM3+SLXvEhNgj7hHd CDUOKD9434lIzIOg5m8AMRfqDA3V+95xtx3165PN3oO+9c1wvnBclHC23xP3LcYKY7Pp R5ryK0r+SahzP520X91TF0xCIyYHfuiZ+4miJHbPcz7ifiP9jtXMfoNf1KTL5p/Lu1UP S0+0mPQrqg+0clGzyWj7Izb1/aRW5W2PHK94AQXhrGqN/3fKkm2HvBDgaUnt1tecC9eE VJX4iaw6PtrZsPKktwpdPtEuJ7vtUC5OHXsqUJGytBjmqOIIj2BzC3dAfAZlTYGZN5WS rI+Q== X-Received: by 10.52.176.202 with SMTP id ck10mr9350744vdc.42.1358534036175; Fri, 18 Jan 2013 10:33:56 -0800 (PST) X-Originating-IP: [66.171.181.62] X-Gm-Message-State: ALoCoQmiw58XdUJl1hNaxWBK3fYA87pvSULTuqWHNoKdaqX7i1lcyRim5U845xBcGzNYmYik/VC+ X-BeenThere: rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: rainbows-talk-bounces-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Errors-To: rainbows-talk-bounces-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Xref: news.gmane.org gmane.comp.lang.ruby.rainbows.general:433 Archived-At: Received: from 50-56-192-79.static.cloud-ips.com ([50.56.192.79] helo=rubyforge.org) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TwGlm-0003zY-BO for gclrrg-rainbows-talk@m.gmane.org; Fri, 18 Jan 2013 19:34:26 +0100 Received: from localhost.localdomain (localhost [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id A59112E097; Fri, 18 Jan 2013 18:34:09 +0000 (UTC) Received: from mail-vb0-f41.google.com (mail-vb0-f41.google.com [209.85.212.41]) by rubyforge.org (Postfix) with ESMTP id 37E522E076 for ; Fri, 18 Jan 2013 18:33:57 +0000 (UTC) Received: by mail-vb0-f41.google.com with SMTP id l22so23369vbn.0 for ; Fri, 18 Jan 2013 10:33:56 -0800 (PST) Received: by 10.58.96.18 with HTTP; Fri, 18 Jan 2013 10:33:56 -0800 (PST) The documentation (http://rainbows.rubyforge.org/Rainbows/EventMachine.html) specifically lists EventMachine as compatible with this model. Are there alternative ways to get this type interface without EventMachine? My current application is using the EventMachine loop to answer requests and spawn Celluloid Actors (which are in their own threads) which write back to the main thread. Seems like maybe I should just use a Thread-per-client model? I'm currently using Sinatra to do the HTTP acrobatics. -- Andrew _______________________________________________ Rainbows! mailing list - rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org http://rubyforge.org/mailman/listinfo/rainbows-talk Do not quote signatures (like this one) or top post when replying