DEV Community

Cover image for A crash course on Serverless with Node.js

A crash course on Serverless with Node.js

Adnan Rahić on October 04, 2017

Regardless of your developer background, it’s inevitable you’ve heard the term Serverless in the past year. The word has been buzzing around in my ...
Collapse
 
dandv profile image
Dan Dascalescu • Edited

Nice article! A couple questions:

  1. Can you edit step 5 to explain what - http:\n path: hello/get means in the .yml?
  2. you first need to let the terminal know it has a new command available - which terminal?
  3. Could you add some notes about Lambda drawbacks? The article sounds so rosy, but for example, a 5-second startup time can be unacceptable.
Collapse
 
bgadrian profile image
Adrian B.G.

Very nice! We, the new AWS users need all the help as we can get, it looks very complex at the first glance.

Only 2 remarks for the readers
serverless == a centralized set of servers that we don't control
Google released their own Lambda with nodejs called Functions

Collapse
 
adnanrahic profile image
Adnan Rahić

I'm glad you liked it. Yes, all three major cloud providers have their version of FaaS architecture. AWS has Lambda, Azure has Azure functions, and Google Cloud has Functions. The cool thing is that the Serverless framework supports all three! And even more cool, every deployed function runs inside a container. So every function gets its own environment and runtime, isolated within this container. This is why the Lambda functions respond faster after an initial couple of requests. Because the container is created only for the first invocation, and then re-used for the following requests. This just blows my mind. It must have been very hard to create.

Collapse
 
ajaymanikanta1123 profile image
Guddeti Ajay Manikanta ⭐⭐⭐

Great Article.