I’m developing a service which processes a number of documents.
Each document type processing is quite unique and isolated so I decided to have endpoint per document type architecture.
In order to host multiple endpoints in a single process, I developed a custom solution (inspired by https://docs.particular.net/samples/hosting/multi-hosting/)
Each endpoint creates at least 2 long live connections (for listening/publishing) to RabbitMQ server.
Having approximately 40 documents types means we have 40 endpoints and 40x2 (80) connections.
Scaling such service creates more and more connections.
RabbitMQ has a physical limit on connections number so I’m wondering if it is possible to share/re-use an existing connection between multiple endpoints?
Best regards, Alex