ElasticSearch Java REST Client - Singleton or one instance per user


(Rajesh Kumar) #1

Hi,
I am planning to use Java REST client in our application. Ours is a Java RESTful application running on Tomcat. We will have lot of search requests to ElasticSearch per second from different users. What is the best practice - To create a Singleton and use it application wide or create one instance per user?

If Singleton is the way to go, how many concurrent requests it can serve? Will that approach be scalable?

Thanks and Regards,
Rajesh


(system) #2

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