DEV Community

Discussion on: Simple Dependency Injection In AWS Lambda .net core

Collapse
 
deexter profile image
deexter

When do you decide to choose (serverless) lambda and when to create API?
I am not sure if it is good idea to have all API endpoint as lambda.

Collapse
 
gary_woodfine profile image
Gary Woodfine • Edited

Going for the consultant answer here, it depends.

It is quite possible to develop a small CRUD based API, using Lambda, which is a fairly common approach. I have attempted to document an approach How To Build Serverless With Netlify, FaunaDB And Gridsome. The concepts etc can be applied to any programming language. Implementing such an approach can be extremely cost effective and help to implement features quickly.

Obviously API's vary in complexity and functionality. So it would entirely depend on the objectives of and use case of API.