# Elasticsearch - Apache Http Client vs REST low level Client

**URL:** <https://discuss.elastic.co/t/elasticsearch-apache-http-client-vs-rest-low-level-client/166678>\
**Category:** Elasticsearch\
**Created:** [February 1, 2019, 6:06am UTC](https://discuss.elastic.co/t/elasticsearch-apache-http-client-vs-rest-low-level-client/166678 "2019-02-01T06:06:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nikesh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nikesh/32/86579_2.png) [@Nikesh](https://discuss.elastic.co/u/Nikesh)\
**Post date:** [February 1, 2019, 6:06am UTC](https://discuss.elastic.co/t/elasticsearch-apache-http-client-vs-rest-low-level-client/166678/1 "2019-02-01T06:06:59Z")

</div>

Hi,

I am using Apache Http Client to communicate with Elastic. I understand that REST low level Client internally uses Http Client. I am curious to know what is the difference between using Apache Http Client and REST low level Client. Is there any difference with respect to Thread safety or any other aspect? What are the other benefits that REST low level Client provides over Apache Http Client and what are its disadvantages?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [February 1, 2019, 9:10am UTC](https://discuss.elastic.co/t/elasticsearch-apache-http-client-vs-rest-low-level-client/166678/2 "2019-02-01T09:10:01Z")

</div>

It adds the support of multiple nodes.  
Optionally it can add auto discovery.

It comes with some new classes which simplify the usage IMO:

> **[elastic/elasticsearch](https://github.com/elastic/elasticsearch/tree/master/client/rest/src/main/java/org/elasticsearch/client)**
>
> Open Source, Distributed, RESTful Search Engine. Contribute to elastic/elasticsearch development by creating an account on GitHub.

---

<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:** [March 1, 2019, 9:10am UTC](https://discuss.elastic.co/t/elasticsearch-apache-http-client-vs-rest-low-level-client/166678/3 "2019-03-01T09:10:02Z")

</div>

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