h1. son_of_a_batch

Smelt from a plentiferous gallimaufry of requests an agglomerated bale of responses. With, y'know, concurrency and all that.

Install this as a shim to allow batch requests against a remote API.

h2.

h4. Results vs Errors

Note that a request may do any of the following:

h2. Usage

Start a test server:

<pre> $ ruby app/endpoints/sleepy.rb -sv -p 9002 # an example endpoint that sleeps a given amount of time before responding.

54941:INFO
2011-04-23 17:22:37

Starting server on 0.0.0.0:9002 in development mode. Watch out for stones.

$ curl 'localhost:9002?delay=2.2' {“start”:1303597564.663358,“delay”:2.2,“actual”:2.2001771926879883} </pre>

Start the son_of_a_batch server:

<pre> $ ruby app/endpoints/sleepy.rb -sv -p 9002 # an example endpoint that sleeps a given amount of time before responding.

54941:INFO
2011-04-23 17:22:37

Starting server on 0.0.0.0:9002 in development mode. Watch out for stones.

$ curl 'localhost:9002?delay=2.2' {“start”:1303597564.663358,“delay”:2.2,“actual”:2.2001771926879883} </pre>

h3. Colophon

Uses

h4. Credits

Built using goliath, gorillib, and the infochimps API

h4. Contributing to son_of_a_batch

h4. Copyright

Copyright © 2011 Philip (flip) Kromer for Infochimps. See LICENSE.txt for further details.