Re: How many Java clients do I need?

2014-07-31 Thread David Pilato
Yeah. Only one client instance for the JVM.

--
David ;-)
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs


Le 31 juil. 2014 à 06:48, Andrew Gaydenko andrew.gayde...@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+unsubscr...@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+unsubscr...@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.


Re: How many Java clients do I need?

2014-07-31 Thread Andrew Gaydenko
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+unsubscr...@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.


How many Java clients do I need?

2014-07-30 Thread Andrew Gaydenko
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+unsubscr...@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.