TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Run Puppeteer on AWS Lambda

75 pointsby alixaxelover 6 years ago

4 comments

sriram_iyengarover 6 years ago
What is the advantage of running automated tests as lambda ? Typically when automation tests are run, they are long running processes and lambda execution may not be suitable. The cold start times of lambda is another challenge. What is a good practice/model for running suites ? One test per lambda or, one spec per lambda ? Still inclined to have ec2 instances created and destroyed via devops tools like terraform to run automation. Thoughts please.
评论 #18617618 未加载
评论 #18621709 未加载
评论 #18619173 未加载
评论 #18617645 未加载
评论 #18621260 未加载
评论 #18619636 未加载
tnoletover 6 years ago
I run a ton of Puppeteer jobs (300k in the last month), currently on EC2 and Digital Ocean VM&#x27;s, mostly due to the subtle difficulties of running Puppeteer on Lambda.<p>Will certainly have a look at this project and contribute where possible.<p>My main concerns are not so much cold start time, as for my use case this is not really a huge issue, but mainly the performance of Chrome on AWS Lambda boxes. The rendering, navigation etc. needs to be snappy.
评论 #18622994 未加载
评论 #18623332 未加载
dschepover 6 years ago
Here&#x27;s another alternative lambda layer containing headless chrome with and puppeteer example: <a href="https:&#x2F;&#x2F;github.com&#x2F;RafalWilinski&#x2F;serverless-puppeteer-layers" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;RafalWilinski&#x2F;serverless-puppeteer-layers</a>
nailerover 6 years ago
This is fantastic.<p>- I&#x27;m just getting started with Lambda so pardon if this is ignorant, but what&#x27;s the cold start time of Chromium? Or can you warm start it somehow?<p>- Since scraping often depends on state, wouldn&#x27;t you hit a timeout doing longer scraping joba?
评论 #18617495 未加载