How to Write Lambda Functions Although writing infrastructure code is becoming the prevalent model for developing serverless applications (as discussed in “Most of the Code You Write Will Be Infra‐ […]
Apply the single-responsibility principle – Implementing Serverless Applications
Apply the single-responsibility principle The single-responsibility principle (SRP) can be distilled to the following: do one thing and do it well. In the context of Lambda functions, this encourages you […]
Orchestrate complex business logic with workflows – Implementing Serverless Applications
Orchestrate complex business logic with workflows Workflow orchestration is an increasingly common pattern in serverless applications that allows you to chain multiple tasks across a single process or service (see […]
Use Lambda Powertools – Implementing Serverless Applications
Use Lambda Powertools The open source Lambda Powertools initiative provides an indispensable set of tools to use when developing Lambda functions. There are implementations in a variety of languages, including […]
Optimizing Lambda Functions – Implementing Serverless Applications
Optimizing Lambda Functions As a result of Lambda’s computing model, functions that execute as fast as possible are always preferable. Following the preceding suggestions for writing Lambda code will get […]
Optimizing function initialization – Implementing Serverless Applications
Optimizing function initialization Each time a new Lambda execution environment is created (in other words, at each cold start), the function’s static initialization code is run. This is part of […]
Analyzing performance – Implementing Serverless Applications
Analyzing performance Lambda Insights is a performance monitoring feature of Amazon CloudWatch. You can use Lambda Insights to understand the performance of your Lambda functions by analyzing key metrics such […]
Most of the Code You Write Will Be Infrastructure – Implementing Serverless Applications
Most of the Code You Write Will Be Infrastructure Regardless of your team’s domain and use case, it is likely your serverless architecture will consist of a variety of managed […]
In-Service Orchestration – Serverless Implementation Patterns
In-Service Orchestration The most common and simplest form of orchestration is the one that happens within a microservice boundary. With in-service orchestration, all the AWS resources that are part of […]
AWS CloudFormation – Implementing Serverless Applications
AWS CloudFormation The primary tool for infrastructure management on AWS is AWS CloudFormation. With CloudFormation, you write your infrastructure in templates using JSON or YAML. You upload these templates to […]