When using Transport Client, are there any issues with the connections going stale? Do I have to create a new instance of the transport client every request? Should I reuse the same Transport Client, and if so what is the best practice for making sure the client doesn't lose its connection
Based on my experience it is better to define once. I have not seen any issues even if ES goes down and comes back. So look like internally ES takes care of the connection.
I think this question is duplicate on Elastic Search TransportClient
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.