senecajs / senecajs.org

Documentation site for Seneca.js
MIT License
28 stars 52 forks source link

FAQ: listen concurrency and serving multiple clients #303

Open DigitalLeaves opened 7 years ago

DigitalLeaves commented 7 years ago

Hi there! I have used seneca in the past for some projects, but I am planning on deploying it in a arquitecture where there's a database microservice that will eventually receive several simultaneous requests from clients all over the arquitecture.

My question is related to how many clients can seneca serve comfortably, and knowing best practices for deployment. I am using PM2 to keep instances of the microservices that control the REST API requests, my question is... should I have multiple instances of the database microservice too? Should them all listen in the same port?

Thanks a lot in advance.