Need connection pooling sample for node js package (@elatic/elasticsearch)

Is it possible to initiate a connection and add it to a connection pool on startup on node js server? Once it's there, can we re-use the connection for all the API calls. If yes, can anyone please share a sample implementation for the same

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