# Java API client in 5.0

**URL:** <https://discuss.elastic.co/t/java-api-client-in-5-0/54855>\
**Category:** Elasticsearch\
**Created:** [July 6, 2016, 5:07pm UTC](https://discuss.elastic.co/t/java-api-client-in-5-0/54855 "2016-07-06T17:07:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![alberto](https://avatars.discourse-cdn.com/v4/letter/a/ea5d25/32.png) [@alberto](https://discuss.elastic.co/u/alberto)\
**Post date:** [July 6, 2016, 5:07pm UTC](https://discuss.elastic.co/t/java-api-client-in-5-0/54855/1 "2016-07-06T17:07:13Z")

</div>

Hello, currently I am using the TransportClient that uses the binary stream to port 9300. I understood that in the next release of ES 5.0 there will be no more the availability of this kind of client, there will be another client that directly uses the REST API on port 9200. Is it true?

Could you give me some advices / info on what client I can use?  
Thank you

---

<div class="post-metadata">

**Author:** ![nik9000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nik9000/32/44947_2.png) [@nik9000](https://discuss.elastic.co/u/nik9000)\
**Post date:** [July 6, 2016, 5:30pm UTC](https://discuss.elastic.co/t/java-api-client-in-5-0/54855/2 "2016-07-06T17:30:15Z")

</div>

> [@alberto](#):
>
> in the next release of ES 5.0 there will be no more the availability of this kind of client,

It'll still be there. Honestly I'd love to remove it one day but we have to get a nice, performant, decently high level REST based client.

[This](http://search.maven.org/#artifactdetails%7Corg.elasticsearch.client%7Crest%7C5.0.0-alpha4%7Cjar) is the low level rest client that'll be available with 5.0. It is too low level to be awesome. It is useful if you want to be compatible with many different versions of Elasticsearch but doesn't have high level constructs for anything. We'll build a higher level client.

---

<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:** [July 6, 2016, 5:30pm UTC](https://discuss.elastic.co/t/java-api-client-in-5-0/54855/3 "2016-07-06T17:30:18Z")

</div>

> [@alberto](#):
>
> there will be no more the availability of this kind of client, there will be another client that directly uses the REST API on port 9200. Is it true?

No.

TransportClient will still be there but will probably be deprecated and might be removed in 6.0 or 7.0... So not really tomorrow.

On the other end, the java REST client will work with 2.x and 5.x series.

---

<div class="post-metadata">

**Author:** ![alberto](https://avatars.discourse-cdn.com/v4/letter/a/ea5d25/32.png) [@alberto](https://discuss.elastic.co/u/alberto)\
**Post date:** [July 11, 2016, 8:51am UTC](https://discuss.elastic.co/t/java-api-client-in-5-0/54855/4 "2016-07-11T08:51:00Z")

</div>

What about the Java interface in the version 6.0 or 7.0, it will remain similar like the one used by the TransportClient? Or I will have to change everything in Java?

---

<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:** [July 5, 2017, 10:36pm UTC](https://discuss.elastic.co/t/java-api-client-in-5-0/54855/5 "2017-07-05T22:36:40Z")

</div>


