How to use elasticsearch-js and serverless together

Hi !

I'm currently trying to use the sdk elasticsearch-js in a serverless environment (aws) and I was wondering if it was a good idea to initialize a new client everytime a lambda is called. Our application is also multi-tenant so we unfortunately can't reuse the client easily with the execution context for security.

For example, would the Elasticsearch instance work if we have 100+ concurrent clients (talking about the javascript object Client).

Thanks in advance and have a good day !

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