RestClient and TransportClient what is reccomended


(s) #1

Hi,

For data ingestion to ES I have used transport client API previously. It was working fine on local cluster but when I tried pushing it to amazon elasticsearch instance it was having problems. I searched for the issue and found that it is related to transport port. Most of the people were having that issue and recommended to use RestClient api.

I have couple questions in my mind regarding this:

  1. What is the best practice ? Using transport client or RestClient which one is preferable.
  2. I tried RestClient and it worked for local as well as my amazon elasticsearch instance. Creating request object using NStringEntity and using performRequest method I ingested my data to amazon ES. When i looked for API's for index creation, existance of the index etc I saw methods which are either not available for RestClient and are available for Transport client, So the question is are there any such API's available for RestClient as well? If not what should be done so as to check for available indexes and creating new one so I have to switch for Transport API?

(David Pilato) #2

You can use transport client with elastic cloud (which runs on AWS).
High level REST is coming soon.


(s) #3

@dadoonet: Thanks a lot. May I know when can we get this High level REST ?


(David Pilato) #4

No date but you can follow progress at:


(s) #5

@dadoonet: Does transport client works with EC2 instance?


(David Pilato) #6

If you mean:

  • Elasticsearch Instances that you are installing and managing yourself on ec2: YES
  • Elasticsearch instances that elastic cloud is running as a service on ec2: YES
  • Elasticsearch instances that Amazon is running as a service on ec2: NO

(s) #7

Thanks @dadoonet : Yes I mean Elasticsearch Instances that i will be installing and managing myself on ec2.


(David Pilato) #8

So no problem.


(system) #9

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