-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Son of a batch: lets one request to an endpoint become dozens of concurrent requests to remote sites #4
Open
mrflip
wants to merge
13
commits into
postrank-labs:master
Choose a base branch
from
mrflip:son_of_a_batch
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* force_delay does a 'sleep for x +- y' seconds before responding * force_drop drops the connection, before or after its middleware descendents run * force_fault raises the requested type of error (eg _fault=404 will bail out of the rpocessing chain, returning a 404 Not Found response * force_response forcibly replaces the status, headers or body with what's given in the URL * handle_exceptions gives you response methods, same that the middleware provides, for your app * diagnostics recycles info about the request into the output
… and durations ot statsd
…superior alternative to JSON-p
…static values into the env
…ack to how it ics api) so that it's actually useful outside test rig
…ncurrent requests to remote sites. Really handy when you want to scatter-gather HTTP calls from a non-concurrent system like rails
it now formulates the response in the timeout condition directly, and calls its middleware predecessor with that error reposnse. This was always the intended behavior, but a too-helpful rescue block was making it skip the remaining middleware chain.
The rakefile is copied from goliath; it now has tasks for running tests, making yardoc, etc
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
son_of_a_batch -- lets one request to an endpoint become dozens of concurrent requests to remote sites. Really handy when you want to scatter-gather HTTP calls from a non-concurrent system like rails" .
Note that this branch includes the commits from all the other pending pull requests.
Also included: