Raphael Manke

Building Reliable Serverless Applications with AWS CDK and Testing

How do you test cloud-native services that don't have a local version? Learn a powerful, automated approach using the AWS CDK.

Building Reliable Serverless Applications with AWS CDK and Testing
#1about 2 minutes

Overcoming the challenges of container-based infrastructure

Traditional containerized applications face significant hurdles with scalability, operational complexity, and security management.

#2about 2 minutes

Exploring the benefits of a serverless architecture

Serverless computing offers improved scalability, reduced operational overhead, cost-effectiveness, and built-in high availability.

#3about 2 minutes

Defining serverless infrastructure with the AWS CDK

The AWS Cloud Development Kit (CDK) allows you to define cloud infrastructure using familiar programming languages, which then synthesizes into CloudFormation templates.

#4about 4 minutes

Structuring a CDK application with stacks and constructs

A CDK application is organized as a tree of constructs, with stacks serving as the primary deployment units for grouping related resources.

#5about 3 minutes

Unit testing Lambda functions and CDK infrastructure

Test Lambda function logic with standard unit tests and verify CDK-generated templates using fine-grained assertions and snapshot testing.

#6about 4 minutes

Running local integration tests for Lambda and DynamoDB

Validate the interaction between a Lambda function and DynamoDB by running integration tests against a local DynamoDB instance.

#7about 3 minutes

Integration testing for cloud-native managed services

Use the CDK integration test runner to deploy, test, and destroy resources in the cloud for services that lack a local equivalent, like EventBridge Pipes.

#8about 2 minutes

A complete testing strategy for serverless applications

A reliable serverless application requires a multi-layered testing approach, including local unit tests, template assertions, and cloud-based integration tests.

#9about 2 minutes

Q&A: Spying on SDK calls and local DynamoDB setup

Answering audience questions about the costs of spying on SDK calls and the process for setting up a local DynamoDB instance for testing.

Related jobs
Jobs that call for the skills explored in this talk.

Featured Partners

Related Articles

View all articles
DC
Daniel Cranney
Dev Digest 188: CfP time, the risks of NPM and IKEA algorithms
Inside last week’s Dev Digest 188 . 🤖 GitHub Copilot CLI is now in public review 💻 Microsoft is bringing ‘vibe working’ to office apps 🎣 Attackers abuse AI tools to generate captchas in fishing attacks ⚠️ When LLMs autonomously attack 🧠 Common cause...
Dev Digest 188: CfP time, the risks of NPM and IKEA algorithms

From learning to earning

Jobs that call for the skills explored in this talk.