Which client (java or rest) should we use to index data in elastic search?

I used the java client to index my data in search of elasticity 1.4.4. But now I feel that using a java client is a nightmare if we upgrade from 1.4.4 to a newer version 2.3.2. If any of you have used and let me know any benefits that cannot be used for relaxation.

+4
source share
1 answer

The main advantage is performance. In most cases, the Java API is faster than the Jest. I would suggest reading this article Interacting with Elasticsearch: Client Choice :

Transport client

JVM. / Elasticsearch. Elasticsearch . Elasticsearch 1.0 , (1.0 ) . JVM - .

Elasticsearch, : , HTTP-, .

Java, Node, Node , . , .

, .

PS: :

- , , .

- . , - , , : . , Jest- , Java API, . , . Jest API:

, ES-, , ( ) , HTTP ( Jest - , ). , ,

+3

Source: https://habr.com/ru/post/1653473/


All Articles