2 min read Sep 28, 2021 Introducing AWS Lambda Functions powered by AWS Graviton 2 Processors
Prashanth HN

2 min read

2021-09-28

Graviton2, the ARM-based processor built by AWS is making its foray into Lambda land. Starting today, we will be able to select “arm64” as a configuration option while launching Lambda functions. It is expected to be priced cheaper compared to the current x86 offering. Graviton2 will be available in the following regions at launch:

  • Asia Pacific (Mumbai)
  • Asia Pacific (Singapore)
  • Asia Pacific (Sydney)
  • Asia Pacific (Tokyo)
  • EU (Frankfurt)
  • EU (Ireland)
  • EU (London)
  • US East (N. Virginia)
  • US East (Ohio)
  • US West (Oregon)

Current limitations of Lambda functions will apply to Graviton2 Lambda functions as well. Account-level limits will count to x86 & arm64 together.

Runtime Support

Following are the runtimes that will be supported at launch:

  • Python 3.8, 3.9
  • Node 12 & 14
  • Java 8.al2, 11
  • Ruby 2.7
  • .Net Core 3.1
  • Custom Runtime (provided.al2)
  • OCI Base Images

Test Run

We took Graviton2 lambda functions for a spin and tested them against x86 lambda functions. Lambda function is a simple one that generates UUIDs and inserts them into DynamoDB. We used Lambda Power Tuning open-source project to test the Lambda in different configurations and compare it with the x86 lambda function.

graviton-comparision.png

Note that the above image doesn’t represent cost accurately as Lambda Power Tuner is not updated with cost information of Graviton2 at the time of writing.

Memory (MB) x86 arm64
128 187ms 188ms
256 66ms 57ms
512 59ms 60ms
1024 59ms 61ms
1536 67ms 58ms
3008 64ms 55ms

While the performance of the Lambda function may vary based on the workload, it seemed very close to x86 in our findings. We strongly recommend using Lambda Power Tuner to do performance benchmarking to find the best configuration for your workload. Overall, we think that Graviton2 could potentially lower the Lambda cost for many workloads & improve the price to a performance by up to 34%.

Topics

Share this blog

Serverless - Bundle Lambda Functions with Webpack Tree Shaking

Nov 8, 2020

By default, Serverless framework bundles the entire source code into each lambda, but why should you bundle dependencies which may not be required by a Lambda?

5 min read

5 min read

Nov 8, 2020

Serverless Starters - A Community For All Serverless Enthusiasts

Jul 14, 2020

Serverless Starters is a community for all serverless enthusiasts, beginners to experts

1 min read

1 min read

Jul 14, 2020

Implementing OTP based Phone auth in Amazon Cognito using Custom Auth Flow & Amplify

Dec 18, 2019

OTP based logins are gaining popularity in India since there is no need to remember passwords and huge mobile user base

5 min read

5 min read

Dec 18, 2019

Introducing AntStack

Oct 5, 2019

Story of how AntStack came into existence

6 min read

6 min read

Oct 5, 2019

This website stores cookies on your computer.

These cookies are used to collect information about how you interact with this website and allow us to remember you. We use this information in order to improve and customize your browsing experience and for analytics and metrics about our visitors on this website.

If you decline, your information won’t be tracked when you visit this website. A single cookie will be used in your browser to remember your preference not to be tracked.