AWS Lambda: Difference between revisions

Content deleted Content added
Citation bot (talk | contribs)
Added website. Removed parameters. | Use this bot. Report bugs. | #UCB_CommandLine
No edit summary
Line 23:
==Best practices==
Following [[DevSecOps]] practices can help end-users to use and secure Lambda-based applications more effectively. <ref>{{Cite book |last=Katzer |first=Jason |title=Learning Serverless: Design, Develop, and Deploy with Confidence |publisher=O'Reilly Media |year=2020 |isbn=978-1492057017}}</ref> In Lambda-based applications, the line between the infrastructure and business logic is blurred and the apps are usually spread across various services. According to Yan Cui, to get the most value from testing efforts, Lambda-based applications should be tested mainly for their integrations, and unit tests should be used only if there is a complex business logic. Also, to make debugging and implementation of Lambda-based easier, developers should use [[Orchestration (computing)|orchestration]] within the [[Domain-driven design|bounded context]] of a [[Microservices|microservice]], and should use [[Service choreography|choreography]] between the bounded-contexts.<ref>{{Cite book |last=Cui |first=Yan |title=Serverless Architectures on AWS |publisher=Manning |year=2020 |isbn=978-1617295423 |edition=2nd}}</ref>
 
==Portability==
[https://github.com/awslabs/aws-lambda-web-adapter AWS Lambda Web Adapter] allows developers to build web applications using familiar frameworks, known as [https://docs.aws.amazon.com/lambda/latest/dg/monolith.html Lambda monolith]. It facilitates portability between AWS Lambda and other AWS compute services like AWS Fargate. However, this approach has some limitations:
 
* Coarser-grained alerting and access controls compared to function-level segmentation.
* Potential cold start penalties, particularly with large web framework dependencies.
* May require refactoring to accommodate integration differences.
 
==Helper Tools==
[https://www.lldebugger.com/ Lambda Live Debugger] is an [[Open source|open-source]] tools that helps you debug your AWS Lambda functions from your computer, while they are deployed in the cloud. It supports [[AWS Cloud Development Kit|AWS CDK]] v2, [[Serverless Framework]] v3, AWS Serverless Application Model (SAM) and [[Terraform (software)|Terraform]]. <ref>{{Cite web |title=Lambda Live Debugger |website=[[GitHub]] |url=https://github.com/ServerlessLife/lambda-live-debugger }}</ref>
 
== Security ==