Elasticsearch-js Client lifetime?


(Joshua P) #1

When using the elasticsearch-js library in a node.js application, should I create a new Client instance for each index/update operation (in response a user's action), or can I create a singleton and use that for the lifetime of my application? I'm not sure what's best-practice here.


(system) #2