DEV Community

Discussion on: Build a RESTful API with the Serverless Framework

Collapse
 
magnusriga profile image
Magnus • Edited

Thanks, Sagar. Quick question. Isn't express used to create a web service so to say (I.e. the functionality of the server). Why do we need both Serverless and express? Probably a pretty basic question, it just confused me a bit.

Collapse
 
sagar profile image
Sagar

Hey Magnus, good question.

We can create api in serverless without using express. But express is so powerful and creating api with express is so much simpler.

Lots of node developers are expert in express.

Collapse
 
nans profile image
Nans Dumortier

Hey, thank you for your article !
I'm also a bit confused with express. Does the express server starts everytime we receive a call ? Or is there something done with module.exports.handler = serverless(app) that does something that I don't understand yet ?