# TransportClient VS Java REST Client

**URL:** https://discuss.elastic.co/t/transportclient-vs-java-rest-client/181746
**Category:** Elasticsearch
**Created:** [May 20, 2019, 7:10am UTC](https://discuss.elastic.co/t/transportclient-vs-java-rest-client/181746 "2019-05-20T07:10:26Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![hyhong](https://avatars.discourse-cdn.com/v4/letter/h/3bc359/32.png) [@hyhong](https://discuss.elastic.co/u/hyhong)
#### Post date: [May 20, 2019, 7:10am UTC](https://discuss.elastic.co/t/transportclient-vs-java-rest-client/181746/1 "2019-05-20T07:10:26Z")

</div>

Why deprecate TransportClient?

---

<div class="post-metadata">

### Author: ![HenningAndersen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/henningandersen/32/48188_2.png) [@HenningAndersen](https://discuss.elastic.co/u/HenningAndersen)
#### Post date: [May 20, 2019, 8:37am UTC](https://discuss.elastic.co/t/transportclient-vs-java-rest-client/181746/2 "2019-05-20T08:37:14Z")

</div>

Hi @hyhong,

this blog post:

> **[Elasticsearch Java Clients](https://www.elastic.co/blog/state-of-the-official-elasticsearch-java-clients)**
>
> Java programmers have two choices when communicating with Elasticsearch: they can use either the REST API over HTTP, or the internal Java API used by Elasticsearch itself for node-to-node communication.

contains reasons why transport client is deprecated. Please also pay attention to the migration guide in docs here:

[https://www.elastic.co/guide/en/elasticsearch/client/java-rest/7.0/java-rest-high-level-migration.html](https://www.elastic.co/guide/en/elasticsearch/client/java-rest/7.0/java-rest-high-level-migration.html)

---

<div class="post-metadata">

### Author: ![hyhong](https://avatars.discourse-cdn.com/v4/letter/h/3bc359/32.png) [@hyhong](https://discuss.elastic.co/u/hyhong)
#### Post date: [May 21, 2019, 1:19am UTC](https://discuss.elastic.co/t/transportclient-vs-java-rest-client/181746/3 "2019-05-21T01:19:18Z")

</div>

Thank you

---

<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: [June 18, 2019, 1:19am UTC](https://discuss.elastic.co/t/transportclient-vs-java-rest-client/181746/4 "2019-06-18T01:19:23Z")

</div>

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