How many Java clients do I need?


(Andrew Gaydenko) #1

As far as I understand, Java client instance is stateless, and it's methods
are pure functions (I means "operating" methods rather those related to
initial configuration just after instantiation). As a result, it is
sufficient to have the only client for given cluster for given JVM. Is it
true? Or - are there any benefits in, say, creating own client for every
index?

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/d38de8b6-6ed9-4e3f-9dfc-c9dedd1293d4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(Andrew Gaydenko) #2

I must to add the question is related to transport client, rather client
node.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/3267a8b5-f812-40f0-94bf-8258170ac75a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(David Pilato) #3

Yeah. Only one client instance for the JVM.

--
David :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 31 juil. 2014 à 06:48, Andrew Gaydenko andrew.gaydenko@gmail.com a écrit :

As far as I understand, Java client instance is stateless, and it's methods are pure functions (I means "operating" methods rather those related to initial configuration just after instantiation). As a result, it is sufficient to have the only client for given cluster for given JVM. Is it true? Or - are there any benefits in, say, creating own client for every index?

You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/d38de8b6-6ed9-4e3f-9dfc-c9dedd1293d4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/5476E2C7-7804-4732-BAD3-FC91A3408406%40pilato.fr.
For more options, visit https://groups.google.com/d/optout.


(Andrew Gaydenko) #4

On Thursday, July 31, 2014 10:18:52 AM UTC+4, David Pilato wrote:

Yeah. Only one client instance for the JVM.

Now I'm happy to be sure, thanks!

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/700c7505-5480-4059-94a0-0e0cfc29890f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(system) #5