Hi, I have a question about the method setShared used in services. I'm using the library elastic-php which defines the concept of connection pool. Following the guide of elastic php I defined in services an object client:
$client = ClientBuilder::create() ->setConnectionPool('\Elasticsearch\ConnectionPool\StaticNoPingConnectionPool', ) ->build();
and I set it as shared (setShared). In my controller I get it with di and I use it to connect to my backed. I should have some more info about setshared because I don't want any problem of concurrency. What does setshared exactly mean? Each client request is served by an instance of my controller and all these processes (or thread?) use the client created with ClientBuilder. It is safe?