EventMachine compatible gems

21 views
Skip to first unread message

Reed Law

unread,
Jan 30, 2012, 5:52:00 PM1/30/12
to EventMachine
I am new to EventMachine and thinking about using it for a project
that is heavy on API calls. I was thinking with the async nature of
API calls EM would make sense. The gem in question is
https://github.com/peter-murach/github which is a ruby wrapper for the
Github API. Assuming no one here is familiar with that gem, how would
I go about ensuring that none it's calls are blocking so that it can
be used in an async manner?

James Tucker

unread,
Feb 10, 2012, 1:59:35 AM2/10/12
to eventm...@googlegroups.com
If you use the right adapter in Faraday in that gem, then you'll be doing keep alive by default and everything will be plenty fast enough using the sync api.

With githubs rate limits (and really any reasonable level of api calls (even if you think it's "a lot")) you won't need to go async. Save yourself the pain, and just use that library as-is.

> --
> You received this message because you are subscribed to the Google Groups "EventMachine" group.
> To post to this group, send email to eventm...@googlegroups.com.
> To unsubscribe from this group, send email to eventmachine...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/eventmachine?hl=en.
>

Reply all
Reply to author
Forward
0 new messages