4 ms·
most important trait of them all: coldstart. It can take upto 10 seconds for the first request to be handled if the "server" is cold. meaning it has been inacti
by grezql 7y ago
most important trait of them all: coldstart. It can take upto 10 seconds for the first request to be handled if the "server" is cold. meaning it has been inactive for 15 minutes or more.
no thanks.
- general_error 7y agoNot with CloidFlare workers.
- robocat 7y ago"Cloudflare Workers respond very quickly, typically in under 200 milliseconds, when cold starting. In contrast, both Lambda and Lambda@Edge functions can take over a second to respond from a cold start." Also included network latency, and maybe some bias. https://www.cloudflare.com/learning/serverless/serverless-performance/ https://www.cloudflare.com/learning/serverless/serverless-pe...
- JMTQp8lwXL 7y agoGoogle expects you to have a TTFB of <=200ms. You've used up 100% of your allocation just on cold boot time with serverless lambdas, FaaS, whatever you want to call them.
- robocat 7y agoI think you are being disingenuous. Firstly, the Cloudflare number includes network time, which isn't included in Google's number. Secondly you can't compare the numbers unless you know the percentiles used. Thirdly, you are presuming your function is always cold loaded - which is only for the free tier of pricing from what I could see. Google (v4 pagespeed) says: "Server response time is the time it takes for a server to return the initial HTML, factoring out the network transport time. Because we only have so little time, this time should be kept at a minimum - ideally within 200 milliseconds, and preferably even less!" Disclaimer: happy customer of Cloudflare, we don't use Workers except for one debugging purpose.
- JMTQp8lwXL 7y agoI'm not referring to Cloudflare. There are many other FaaS providers, e.g., Zeit's Now. It's true that cold boots are more probable for low-traffic sites. If your function recently ran, it's unlikely for a subsequent execution to be a cold boot. But it could be luck of the draw that Google's crawler hits your site during a period of low traffic, and your functions have to cold boot. That could impact page rankings, as response times influence those.
- robocat 7y ago> I'm not referring to Cloudflare Why would you use a slow provider for a comparison point? > and your functions have to cold boot For $5 per month, it looks like you get warm startup always on CloudFlare, which is very fast. Also: Google surely pay some attention to network delays: serving Kenya from a Mombasa POP is going to be way faster than using some server in the US. I would expect Google to give that some juice.