We have a NodeJS application that reads a number of streams from Event Store. We use the worker threads support in the latest NodeJS to handle each stream to Event Store. Presently each worker thread opens a new connection to Event Store and consumes its own stream via that connection. We are going to have somewhere in the 100s of stream readers, so 100s of TCP connections to different streams.
I read here:
that seemed to suggest that there should be a single connection to Event Store per application. In our application each thread opens a connection, and wait for events.
In the above, is there an issue with opening that many connections, or Event Store not being able to handle that many connections? Do we have potential for performance issues when the numbers grow?