Searching the web, I found little to no regarding the the scope of Java's RestHighLevelClient, like tradeoffs on using it application scoped or request scope? I understand that RestLowLevelClient manages a thread pool and the nodes connections, which can impact in the app performance, but assuming i'm having a high income of requests that use the ES, what you guys thing it's the best approach?
Just use high rest client. that's the trend moving forward.
The high-level REST client is a wrapper around the low-level REST client, and as such it should have a similar lifecycle. You should keep them around for a long time and re-use them as much as possible.
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.