# Announcing Swift AWS Lambda Runtime v2

**URL:** <https://forums.swift.org/t/announcing-swift-aws-lambda-runtime-v2/82529>\
**Category:** Server\
**Tags:** lambda\
**Created:** [October 6, 2025, 9:38am UTC](https://forums.swift.org/t/announcing-swift-aws-lambda-runtime-v2/82529 "2025-10-06T09:38:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sebsto](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/sebsto/32/27165_2.png) [@sebsto](https://forums.swift.org/u/sebsto)\
**Post date:** [October 6, 2025, 9:38am UTC](https://forums.swift.org/t/announcing-swift-aws-lambda-runtime-v2/82529/1 "2025-10-06T09:38:05Z")

</div>

🎉 **Swift AWS Lambda Runtime v2 is here!** 🎉

We’re excited to announce the official release of **Swift AWS Lambda Runtime v2** , a major update that brings a complete redesign for Swift 6, modern concurrency, and powerful new features for building Lambda functions in Swift.

Thank you @fabianfett, @aryan25, @adam-fowler and all community members for your code contributions, reviews, and feedback.

**What’s New in v2?**

- **Async/Await-First API:** Full integration with Swift 6 structured concurrency for cleaner, safer, and more readable code.
- **Response Streaming:** Easily stream large responses (up to 200MB) with incremental delivery and custom HTTP headers/status codes. Improve time-to-first-byte and reduce memory use!
- **Background Task Execution:** Run tasks after the Lambda response is sent, enabling analytics, logging, or cache updates without affecting latency.
- **Own the `main()` Function:** Gain full control over initialization and dependency injection, supporting advanced use cases and service lifecycle management.
- **Swift Service Lifecycle Integration:** Seamless management of graceful shutdown and resource cleanup via ServiceGroup.
- **Swift 6 Compatibility:** Concurrency checking, non-blocking I/O (SwiftNIO foundation), and robust performance.

**Migration Notes:**

- v2 brings a new async/await API. Check out the updated [documentation](https://swiftpackageindex.com/swift-server/swift-aws-lambda-runtime/2.0.0/documentation/awslambdaruntime).
- Many new examples are available to help you get started, including streaming responses, background processing, and API Gateway integrations.

Full release notes and migration details: [Release 2.0.0 · swift-server/swift-aws-lambda-runtime · GitHub](https://github.com/swift-server/swift-aws-lambda-runtime/releases/tag/2.0.0)

**What's next?**

We've collected a couple of [ideas and priorities for 2.1](https://github.com/swift-server/swift-aws-lambda-runtime/milestone/10), the main efforts should be driven towards:

- Reducing cold start time ([#579](https://github.com/swift-server/swift-aws-lambda-runtime/issues/579)) (explore deployment of small OS images with OCI deployment, strip the binary, use the Linux Static SDK for MUSL or create a static linux SDK for Amazon Linux 2023)
- Add support for distributed tracing ([#185](https://github.com/swift-server/swift-aws-lambda-runtime/issues/185))
- Improve the doc

Your feedback matters. Tell us what is important for you and we'll help to prioritize.
