3 ms·
Developing for serverless is no harder than "traditional" development. The traditional API you have a controller that has methods that are called based on HTTP
by scarface74 9y ago
Developing for serverless is no harder than "traditional" development. The traditional API you have a controller that has methods that are called based on HTTP verbs and routes. The controller methods translate the request to the backend.
With Lambda it's the same thing. You have a Lambda function mapped to an HTTP verb and route and you get s message and context. The handler acts just like your controller method. Converting from Lambda to a traditional MVC is not that hard.
- bdcravens 9y agoCan I run Lambda and API gateway locally?
- bdcravens 9y ago> With Lambda it's the same thing. You have a Lambda function mapped to an HTTP verb and route and you get s message and context Lambda is simple. However, to do what you're describing requires a lot more: API Gateway, IAM roles, etc.
- scarface74 9y agoAPI gateway does the same thing as your own custom per request filters and your own routing attributes. The roles for the Lambda you can just give one or more of the built in policies. If you were using EC2 instances, you would still assign roles to the EC2 instance for the same permissions. If you are doing it outside of AWS you would hopefully setup DMZs firewalls, etc.