Lurker News

Comments (89) 28 threads

Show all comments

Showing thread 20 of 28

victorhooi2 replies#
So to clarify - this is basically a Node.JS wrapper around Chrome headless, right? =_)

Seems pretty awesome.
My use case is to take screenshots of various pages - the docs don't mention the default viewport dimensions, btw.

schickling1 reply#
Yes exactly + this can run (in parallel) on AWS Lambda, so you don't need to worry about provisioning & running servers. That's actually the part I'm most excited about :)
purvis1 reply#
It's parallel because AWS Lambda is inherently parallel? Or are you referring to within JavaScript?
adieuadieu1 reply#
Parallel in that you can invoke many Lambda functions at the same time and have them run independently of each other
dlisboa3 replies#
So basically if I had 200 automations I could run them on 200 lambdas and have them finish by the time the slowest one finishes? That pretty awesome, specially for testing. For many cases this would also fall under the free tier since it not that many requests/usage...it kinda seems too good to be true. Am I missing something?
schickling4 replies#
Nope, welcome to the serverless future! :)

Continue this thread — 4 replies

adieuadieu1 reply#
Yep. That's one of the main reasons why we're so excited about this project!
MoOmer1 reply#
Haven't had time to read the source yet, how are the lambda headless chrome reliability issues dealt with? Is it a different chrome build than serverless-chrome?

Continue this thread — 1 reply

bald1 reply#
> For many cases this would also fall under the free tier since it not that many requests/usage...it kinda seems too good to be true

(since I've ran into the same trap a couple of weeks ago and ended up with USD 650 of unanticipated charges): the free Lambda tier includes
* 1M requests
* 400k GB-seconds
--> the GBsec can be a serious bottleneck. Imagine you're running each Lambda instance with 512MB RAM and each instance takes 2 mins to complete your test. This means that one Lambda instance is ~61.5 GBsec, meaning you can execute ~6,500 of these instances per month to remain in the free tier.
Depending on how extensive your tests are/how often you run them, you might run out of free GBsec well before you'd run out of the requests quota.

Continue this thread — 1 reply

roughcoder1 reply#
agreed no default is mentioned but you can declare with `await chromeless.viewport(1024, 800)`