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

How to install LocalStack Snowflake Emulator

In this video, you'll learn how to set up and integrate LocalStack's Snowflake Emulator to develop and test your Snowflake data apps in your local environment or CI pipelines. Whether you're using Snowpark, various client libraries, or building interactive data apps with frameworks like Streamlit, this emulator simplifies your developer experience. We'll walk you through step-by-step instructions on installing the Snowflake emulator with the LocalStack CLI & Docker, configuring and integrating the emulator with popular SQL clients, such as DBeaver, and running SQL queries locally to replicate a full Snowflake environment without cloud dependencies. ⚡ Get early access! The Snowflake Emulator is currently in public preview—reach out to us for access and start building today!

Learn More
Learn More
How Cloud Developers Actually Work Without Breaking Everything

Real cloud developers aren’t pushing straight to AWS. They’re building and testing everything locally before a single deploy goes live. This episode breaks down the modern cloud dev workflow and how tools like LocalStack make it possible to move fast without burning money (or trust). Learn how local-first dev culture is changing the cloud game.

Learn More
Learn More
Handwritten digit recognition using MNIST model and Sagemaker on LocalStack

LocalStack Applications in Developer Hub provides sample templates to help LocalStack users adopt real-world scenarios to rapidly and conveniently create, configure, and deploy applications locally.

Getting started

In this demo, we will setup a Sagemaker on Localstack

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