Serverless Best Practices with AWS Lambda PowerTools

For one-off tasks, AWS Lambda really can be incredibly easy. You write a few lines of code, deploy it, and you have a function running in the cloud ready to respond to events, scale automatically, and that only costs you pennies. But as your application grows, so does some necessary complexity. When a few one-off functions become a full serverless backend architecture made up of interconnected services, you’ll need to pay careful attention to best practices to ensure that your application is easy to debug, maintain, and scale. That’s where AWS Powertools for Lambda fits in. It’s a suite of reusable utilities designed to simplify bringing best practices around things like logging, tracing, metrics, idempotency and more to your Lambda functions with minimal effort. This demo session will dive into some of the functionality provided by the AWS Powertools (TypeScript) core libraries, such as encapsulating best practices into reusable libraries for structured logging, metrics collection, idempotency, and more; leveraging Middy middleware to integrate common cross-cutting concerns, such as injecting Lambda context or automatically flushing metric; enabling local testing with LocalStack, allowing you to deploy and debug Lambda functions with structured logs, trace data, and embedded metrics; and providing modular examples that can be deployed to AWS or LocalStack with ease, enabling developers to explore libraries.

Related Talks

Introducing AWS Lambda Web Functions: Deep Dive with AWS, with Samrat Karak (AWS) and Harsh Mishra (LocalStack)
Introducing AWS Lambda Web Functions: Deep Dive with AWS

AWS just released Lambda Web Functions, a major update to AWS Lambda. In this session, Samrat Karak, AWS Lambda Product Manager, explains what's new and where Web Functions are most useful. Then see how to run and test them locally with LocalStack before you run them in your cloud environments.

What you'll learn

  • What AWS Lambda Web Functions are, and why they matter
  • Where Web Functions are most useful, straight from the AWS Lambda team
  • How to run and test Web Functions locally with LocalStack
  • How to catch issues locally before you run them in your cloud environments
  • A live LocalStack demo of a Web Function running end to end, no AWS account required
Learn More
Learn More
What the YAML ! What Actually Happens After kubectl apply

Developers are used to running kubectl apply and waiting on the magic to happen resulting in a running Kubernetes pod. But what actually happens between entering the command and the deployment being ready? What's the reality behind the "magic"? In this talk, Kiah will dissect all the stages of a Kubernetes deployment in a way that is easy to understand. She'll walk through that deployment happening locally on LocalStack to inspect what's really going on at each stage. At the end of this session, attendees will have a deeper understanding of the Kubernetes deployment process that can help debug many common issues and will gain an understanding of how LocalStack enables local testing of Kubernetes.

‍

‍

Learn More
Learn More
Making your AWS cloud environment state persistent

Recreating the unique state of a cloud app environment is notoriously complex, making it difficult to diagnose bugs, collaborate with teammates, or even just pick up where you left off. Join us as we deep dive into LocalStack’s powerful state management and persistence features, exploring how to maintain, snapshot, and seamlessly share your local cloud environments using core features like persistence, Cloud Pods, and state files. Learn how to restore a previous state, share preconfigured environments with colleagues for collaboration or onboarding, or restore preset services and data for functional tests in CI. We'll also showcase LocalStack's new Model Context Protocol (MCP) integration, revealing how AI can manage, inspect, and automate your local cloud state.

Learn More
Learn More

Launch yourself in the world of local cloud development

Try for free
Try for free
Talk to Sales
Talk to Sales