[フレーム]
BT

InfoQ Software Architects' Newsletter

A monthly overview of things you need to know as an architect or aspiring architect.

View an example

We protect your privacy.

Facilitating the Spread of Knowledge and Innovation in Professional Software Development

Write for InfoQ

Unlock the full InfoQ experience

Unlock the full InfoQ experience by logging in! Stay updated with your favorite authors and topics, engage with content, and download exclusive resources.

Log In
or

Don't have an InfoQ account?

Register
  • Stay updated on topics and peers that matter to youReceive instant alerts on the latest insights and trends.
  • Quickly access free resources for continuous learningMinibooks, videos with transcripts, and training materials.
  • Save articles and read at anytimeBookmark articles to read whenever youre ready.

Topics

Choose your language

InfoQ Homepage News AWS Lambda Deprecates Go Runtime

AWS Lambda Deprecates Go Runtime

This item in japanese

Sep 10, 2023 2 min read

Write for InfoQ

Feed your curiosity. Help 550k+ global
senior developers
each month stay ahead.
Get in touch

AWS Lambda is deprecating the go1.x runtime, announcing support for Go exclusively in the Amazon Linux 2 runtime. The announcement and the need to migrate by the end of the year to the custom provided.al2 runtimeraised concerns in the Go community.

As for the Amazon Linux AMI end-of-life, the go1.x runtime will be deprecated on December 31st, and developers should migrate to the provided.al2 runtime by that date. Micah Walter, Yanko Bolanos, and Ramesh Mathikumar, senior solutions architects at AWS, explain the benefits:

First, it supports running Lambda functions on AWS Graviton2 processors, offering up to 34% better price-performance compared to functions running on x86_64 processors. Second, it offers a streamlined implementation with a smaller deployment package and faster function invoke path. Finally, this change aligns Go with other languages that also compile to native code such as Rust or C++.

In the "RIP AWS Go Lambda Runtime" article, Mark Wolfe, engineering lead at Stax, disagrees:

I think this is a bad thing for a couple of reasons: there is no automated migration path from existing Go Lambda functions to the new custom runtime (...). Second, this will remove Go1.x name from the AWS Lambda console, Go will now just be another custom runtime instead of a first-class supported language.

While for other languages like Node, Python, or Java, Lambda offers a native runtime, Go will now only be available using the provided.al2 runtime, which reduces the discoverability of Go as a serverless language on AWS.

Even before AWS removed native support for Go, there were developers arguing that switching to a custom runtime had many advantages, with support for Lambda extensions, a more recent Amazon Linux 2 execution environment, and the ability to unify the runtime and handler code. Wolfe comments:

While the custom runtime provides better performance and an updated operating system, the change will require effort for many Go developers on AWS Lambda. Some automated assistance and validation from AWS could help reduce friction and issues from this change.

In a popular Reddit thread, some Go developers highlight the lack of communication while others support the change. Aidan Steele, founding engineer at NightVision and AWS Serverless Hero, focuses instead on the benefits of flags:

I was already using the newer runtime, but I also learned from the blog post that AWS SAM can now build Go Lambda functions for the newer runtime - no more Makefiles required! I switched from BuildMethod: makefile to BuildMethod: go1.x and noticed that my Lambda packages were now twice the size. This means slower cold starts and slower deployments.

To mitigate the impact on developers, the announcement describes how to migrate functions from the go1.x runtime to the provided.al2 runtime and how to make configuration changes to build scripts or CI/CD configurations.

About the Author

Renato Losio

Show moreShow less

Rate this Article

Adoption
Style

This content is in the Cloud topic

Related Topics:

Related Content

The InfoQ Newsletter

A round-up of last week’s content on InfoQ sent out every Tuesday. Join a community of over 250,000 senior developers. View an example

We protect your privacy.

BT

AltStyle によって変換されたページ (->オリジナル) /