In order to convert some html files to pdf I managed to implement a quick solution using this SO answer.
Generating pdfs using phantomsj + C#
Essentially, it is a webapi service which, upon receiving a html file, puts an entry into a message queue. A background worker picks up the entry, renders the pdf using phantomjs.exe and emails it later on.
It all works, but my worry is that on the production servers we will potentially get thousands of html files per minute, and for each html file , run phantomjs. Will the background worker starting a phantomjs process for each file starve the server?
Thank you