Puppeteer in Forge

Good advice, @OnucheIdoko1. And I’m also curious if you can get Puppeteer running in the new runtime. :bulb:

@AdrianSomesan,

While the new runtime should unblock some of the limitations, I’m worried about the computational cost of the task. Both HTML and PDF rendering are expensive operations, which seem likely to hit Forge quotas & limits. The 25s invocation limit might be enough to generate most PDFs but I worry more that your app doesn’t scale well with users, which means it could be bound by the FaaS weekly runtime quota.

Rather than find the right JavaScript library, maybe this is a task better handled by a dedicated PDF service or, if existing services aren’t suitable, then maybe with your own infrastructure, a la the pending Forge remote.

3 Likes