Service Orchestration The flowchart is arguably the oldest modeling tool in software engineering. Its sim‐ plicity, with a handful of symbols, makes it adaptable enough to illustrate the logic of […]
Documentation: Quality, Not Quantity – Implementing Serverless Applications
Documentation: Quality, Not Quantity Although unlikely to be anybody’s favorite task, generating clear, accurate, and rele‐ vant artifacts during the lifecycle of your software project or product is crucial to […]
Balancing test coverage with observability and recovery – Testing Serverless Applications
Balancing test coverage with observability and recovery As your serverless application grows, exponentially adding tests for new features and regressions will prove to be the biggest drag on delivery speed. […]
Generating and sending task tokens – Serverless Implementation Patterns
Generating and sending task tokens You can easily generate a task token by writing a couple of lines of ASL. Example 5-5 shows an example script. Example 5-5. Step Functions […]
Serverless Compute with AWS Lambda – Implementing Serverless Applications
Serverless Compute with AWS Lambda Serverless computing is based on the provision of machine resources, shared across many disparate clients, on demand. This shared resource model only works if the […]
How to Write Lambda Functions – Implementing Serverless Applications
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 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 […]