Thursday 21 January 2016

Is there any alternative to hunter-gatherer - a parallel rest client?

So I basically use hunter-gatherer (http://ift.tt/1RVljzU) with one of my projects and was wondering if any alternatives exists.Basically hunter-gatherer is a parallel rest client that can handle paging of API results on it's own.Here is it's own description to be more clear;It's ideally suited to the types of calls you see via APIs. Here's one example from the Etsy API (http://ift.tt/1UdNqrn) that you need to make if you want to gather all of a users' active listings: http://ift.tt/1UdNp70 http://ift.tt/1UdNpng http://ift.tt/1UdNqrt http://ift.tt/1UdNpnk http://ift.tt/1RVlmf4 http://ift.tt/1UdNpnm Traditionally, you'd loop through each call, process the results of that call, and then call the next offset, process, ad nauseum. Not only is this super inefficient, it's slow and a pain in the ass to re-code all the time. Especially when this pattern occurs in many APIs, and all that changes between them for the most part are the URL and how you process the results. So let's abstract out everything else! And lastly, with HunterGatherer each of these calls happen simultaneously, up to the maximum number of simultaneous connections allowed based on the remote API terms of usage. Non-blocking FTW! I'm looking for an alternative because the library is out of date (http://ift.tt/1UdNpno) and not updated since 4 years.

Submitted January 21, 2016 at 01:37PM by raistlinthewiz

No comments:

Post a Comment