Optimizing Puppeteer PDF generation
At Carriyo we currently are generating 10k PDFs per day. We design our documents in HTML / CSS and use puppeteer to convert them to PDF. Puppeteer uses Chromium browser to generate the PDF, which as you can guess, is very heavy on resources. So buckle up, as I take you through a whole bunch of optimizations and error handling considerations to scale this beast up.