# RestClient and HttpPipeline

**URL:** <https://discuss.elastic.co/t/restclient-and-httppipeline/99674>\
**Category:** Elasticsearch\
**Created:** [September 7, 2017, 7:37am UTC](https://discuss.elastic.co/t/restclient-and-httppipeline/99674 "2017-09-07T07:37:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ananth](https://avatars.discourse-cdn.com/v4/letter/a/dfb087/32.png) [@ananth](https://discuss.elastic.co/u/ananth)\
**Post date:** [September 7, 2017, 7:37am UTC](https://discuss.elastic.co/t/restclient-and-httppipeline/99674/1 "2017-09-07T07:37:20Z")

</div>

Hi,

We are migrating from node client to RestClient. Is ClosableAsyncHttpClient using Http Pipeline internally to manage requests and response ?

Come across the following link

> <https://stackoverflow.com/questions/14810890/what-are-the-disadvantages-of-using-http-pipelining>

> Response should be sent from server in the order of Requests placed from the client

Eager to know how rest client give performance boost to search requests ?

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [September 11, 2017, 10:00am UTC](https://discuss.elastic.co/t/restclient-and-httppipeline/99674/2 "2017-09-11T10:00:21Z")

</div>

No pipelining is used.

Why do you think that HTTP pipelining is more effective than a pooled connection in this context?

Imagine you are using pipelining and you are sending a search request and then an indexing request. You would have to wait until the search request is processed until you would see a response for the index request.

---

<div class="post-metadata">

**Author:** ![ananth](https://avatars.discourse-cdn.com/v4/letter/a/dfb087/32.png) [@ananth](https://discuss.elastic.co/u/ananth)\
**Post date:** [September 27, 2017, 7:09am UTC](https://discuss.elastic.co/t/restclient-and-httppipeline/99674/3 "2017-09-27T07:09:49Z")

</div>

Alexander,

Thanks for the reply.I didnt aware pooled connection is used. Sorry for the mistake.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 25, 2017, 7:10am UTC](https://discuss.elastic.co/t/restclient-and-httppipeline/99674/4 "2017-10-25T07:10:03Z")

</div>

Closed on October 25, 2017, 7:10am UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
