
Battle of the Titans (Part 1): The Ultimate Go Lambda on AWS Graviton
Hi everyone! Welcome to the first part of my series exploring AWS Lambda performance. My goal is to compare Go and .NET Native AOT in a realistic serverless environment. To make this a fair benchmark, we aren't just deploying a "Hello World" function. Our Lambda simulates a standard combat task: it deserializes a JSON payload of financial transactions, filters them, calculates the total amount, and computes a SHA-256 hash of the IDs to generate a signature (simulating CPU load). Today, we are focusing on setting up and optimizing the Go contender on ARM64 (Graviton) . 1. The Infrastructure (AWS SAM) We use AWS SAM (Serverless Application Model) to define our infrastructure. It allows us to describe resources declaratively and generates the underlying CloudFormation template. Here is the core of our template.yaml : CodeUri : bin/ Handler : bootstrap Runtime : provided.al2023 Architectures : - arm64 Key takeaways Runtime: provided.al2023 : Amazon Linux 2023 is currently the recommended m
Continue reading on Dev.to
Opens in a new tab



