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