Vadorequest
Aug 31, 2018 · 1 min read

I agree too. I did something the author would likely dislike very much: I put a node.js framework, powered by serverless. Cold start matters here, and the zip file ends up being around 35MB (limit is 50MB on AWS)

I have one lambda that route all requests to a express server, which itself has some endpoints for processing particular logic (API, etc.), and a “all” endpoint which then calls the Next.js framework, which handles the website itself.

This is very powerful, and allowed me to have a SSR node.js app, with javascript client/server, using React. I can build a full website on this, with many pages, SSR support, client and server side redirections, and such. All of this powered by a single AWS Lambda.

Of course, cold start is a bitch, it can take up to 6sec to start the whole thing when using 128MB RAM. With 1GB, it takes 1–2sec, which is somehow acceptable since everything is so fast afterwards.

This is totally different from the usual “function” way, since it’s running an entire website in a Lambda.

For those interested: https://github.com/Vadorequest/serverless-with-next