Re:Build and Deploy Serverless React Apps with Next.js 8 and...
by yodon on Thursday February 21, 2019 @08:48PM
(#19222425)
Conceptually one lambda per page (route) sounds super cool, but in practice I suspect it would lead to a ton of cold start wait times for less common routes
[ Parent
| on HN ]
Re:Build and Deploy Serverless React Apps with Next.js 8 and...
by rozenmd on Thursday February 21, 2019 @08:55PM
(#19222448)
Sounds like a trade-off for extreme scalability
Re:Build and Deploy Serverless React Apps with Next.js 8 and...
by yodon on Thursday February 21, 2019 @10:30PM
(#19222866)
Yes, where needed, but I suspect for most people it's just a trade off of getting buzzword compliance in exchange for slow cold start responses
Re:Build and Deploy Serverless React Apps with Next.js 8 and...
by bpicolo on Thursday February 21, 2019 @09:07PM
(#19222509)
Shouldn't change your ability to scale. AWS is happy to clone your single lambda an arbitrary amount of times.
Re:Build and Deploy Serverless React Apps with Next.js 8 and...
by barbecue_sauce on Friday February 22, 2019 @12:01AM
(#19223261)
The tradeoff is the cold start wait time vs. easy scaling.
Re:Build and Deploy Serverless React Apps with Next.js 8 and...
by painful on Thursday February 21, 2019 @10:41PM
(#19222925)
Have you actually found cold-start delays to be an issue with serverless services, or are you just speculating? To my knowledge, the cloud provider keeps enough instances hot based on a forecasted demand. I have not found cold-start delays to be a real issue.
Re:Build and Deploy Serverless React Apps with Next.js 8 and...
by scarface74 on Thursday February 21, 2019 @11:18PM
(#19223085)
AWS doesn’t keep instances warm based on forecasted demand. It uses one instance per request and instances stay warm once they are started for a predetermined amount of time based on the size of tyrvlambda environment.
Re:Build and Deploy Serverless React Apps with Next.js 8 and...
by reilly3000 on Thursday February 21, 2019 @11:53PM
(#19223230)
It depends on the stack. You have to be more mindful of cold start when running Java/Clojure apps, less with JS and .net. There are some good benchmarks out there. There are also some easy ways to keep routes warm, although for certain setups I imagine that could be quite expansive, though still probably not expensive.
Re:Build and Deploy Serverless React Apps with Next.js 8 and...
by zdragnar on Thursday February 21, 2019 @11:14PM
(#19223071)
I don't know if anything has changed since, but we definitely hot cold start perf issues on lesser used routes at a company I was with 18 months ago.
Re:Build and Deploy Serverless React Apps with Next.js 8 and...
by matrix0978 on Thursday February 21, 2019 @09:08PM
(#19222513)
these individual pages get compiled into a single file with zero dependencies leading to super fast cold start times. I'm a bot, beep boop.