Skip to content
This repository has been archived by the owner on Jan 13, 2023. It is now read-only.

Wrapper for distributing requests between nodes randomly #160

Open
todofixthis opened this issue Feb 20, 2018 · 1 comment
Open

Wrapper for distributing requests between nodes randomly #160

todofixthis opened this issue Feb 20, 2018 · 1 comment

Comments

@todofixthis
Copy link
Contributor

todofixthis commented Feb 20, 2018

Implement an adapter wrapper that, given a collection of AdapterSpec objects will route each API request to a random node.

If a connection failure occurs (e.g., timeout or connection refused) or if the client receives a 5xx response (e.g., 500 or 503), then the wrapper should automatically try to switch to the next one. If every connection fails, then raise an exception. Note that this does not apply when the client receives a 4xx response (this indicates a problem with the request, not the node).

@todofixthis
Copy link
Contributor Author

Related: #159

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant