* Alternatives to EventMachine for async.callback @ 2013-01-18 18:33 W. Andrew Loe III [not found] ` <CA+-9oNc-N-rbj235oDXUPf3ex=7q8TY5o7pJBMAnqjbdGsSAtQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 0 siblings, 1 reply; 3+ messages in thread From: W. Andrew Loe III @ 2013-01-18 18:33 UTC (permalink / raw) To: Rainbows! list 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 ^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <CA+-9oNc-N-rbj235oDXUPf3ex=7q8TY5o7pJBMAnqjbdGsSAtQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: Alternatives to EventMachine for async.callback [not found] ` <CA+-9oNc-N-rbj235oDXUPf3ex=7q8TY5o7pJBMAnqjbdGsSAtQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2013-01-18 20:28 ` Eric Wong [not found] ` <20130118202848.GA30420-yBiyF41qdooeIZ0/mPfg9Q@public.gmane.org> 0 siblings, 1 reply; 3+ messages in thread From: Eric Wong @ 2013-01-18 20:28 UTC (permalink / raw) To: Rainbows! list "W. Andrew Loe III" <andrew-4trK/3dDa6Nl57MIdRCFDg@public.gmane.org> wrote: > 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. Thread-per-client is a perfectly good model, especially on 64-bit. async.callback was only added because Thin supports it; and I don't think anybody's tried to make it work without EM. IMHO it's ugly. _______________________________________________ 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 ^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <20130118202848.GA30420-yBiyF41qdooeIZ0/mPfg9Q@public.gmane.org>]
* Re: Alternatives to EventMachine for async.callback [not found] ` <20130118202848.GA30420-yBiyF41qdooeIZ0/mPfg9Q@public.gmane.org> @ 2013-01-18 22:04 ` W. Andrew Loe III 0 siblings, 0 replies; 3+ messages in thread From: W. Andrew Loe III @ 2013-01-18 22:04 UTC (permalink / raw) To: Rainbows! list On Fri, Jan 18, 2013 at 12:28 PM, Eric Wong <normalperson-rMlxZR9MS24@public.gmane.org> wrote: > Thread-per-client is a perfectly good model, especially on 64-bit. I'd like to get this working using the Celluloid threading, then I don't have to manage them myself, seems harder to have sinatra do thread-per client with is streaming code, its tied to async.callback. _______________________________________________ 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 ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-01-18 22:34 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2013-01-18 18:33 Alternatives to EventMachine for async.callback W. Andrew Loe III [not found] ` <CA+-9oNc-N-rbj235oDXUPf3ex=7q8TY5o7pJBMAnqjbdGsSAtQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2013-01-18 20:28 ` Eric Wong [not found] ` <20130118202848.GA30420-yBiyF41qdooeIZ0/mPfg9Q@public.gmane.org> 2013-01-18 22:04 ` W. Andrew Loe III
Code repositories for project(s) associated with this public inbox https://yhbt.net/rainbows.git/ This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).