Skip to content

Add documention on http client pool #134

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

Merged
merged 1 commit into from
Aug 5, 2016
Merged

Conversation

joelwurtz
Copy link
Member

@Nyholm
Copy link
Member

Nyholm commented Jul 29, 2016

Maybe we could add a paragraph about the different use cases between HttpClientPool and the BachClient?

@joelwurtz joelwurtz force-pushed the feature/http-client-pool branch 2 times, most recently from b35bbeb to 038eafe Compare July 29, 2016 11:59
Using this kind of client is useful is some use cases :

- When using a cluster (like a Elasticsearch service with multiple master nodes)
- When you want to use fallback servers with the combination of the ``RetryPlugin`` (see :doc:`/plugins/retry`)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets move the reason why you need this to the top of this section. before reading a code example, readers want to know why they should care or if its relevant for them.

@joelwurtz
Copy link
Member Author

Maybe we could add a paragraph about the different use cases between HttpClientPool and the BachClient?

I don't see how they are related ?

@joelwurtz joelwurtz force-pushed the feature/http-client-pool branch 2 times, most recently from d586710 to 69930d3 Compare August 2, 2016 17:10
@dbu
Copy link
Contributor

dbu commented Aug 3, 2016

and this looks good to me as well!


Clients added to the pool are decorated with the ``HttpClientPoolItem`` class unless they already are an instance of this class.

The pool item class lets the pool be aware of the number of requests currently being processed by that client.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Merge this paragraph with the paragraph above. We are still talking about the pool item class.

@Nyholm
Copy link
Member

Nyholm commented Aug 4, 2016

Good. I just had some minor comments.

@joelwurtz joelwurtz force-pushed the feature/http-client-pool branch from 69930d3 to c48aa85 Compare August 5, 2016 10:55
@dbu dbu merged commit 4c6adad into master Aug 5, 2016
@dbu dbu deleted the feature/http-client-pool branch August 5, 2016 11:32
@dbu
Copy link
Contributor

dbu commented Aug 5, 2016

cheers joel!

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

Successfully merging this pull request may close these issues.

4 participants