How Swift code runs on AWS Lambda

Click for: original source

A Swift binary doesn’t just run on AWS Lambda without some help. In comes the Swift AWS Lambda Runtime to abstract away all the complex interactions between the Lamba Runtime API and your code. By Kevin Hinkson.

AWS Lambda Service Architecture

Source: https://www.flew.cloud/blog/how-swift-code-runs-on-aws-lambda/

With AWS Lambda runtime API there is a clear separation of roles and responsibilities. Eg: where your Swift code runs is highlighted in red in the image above (Runtime + Function) and it just needs to know how to talk to the Runtime API as described in the diagram.

The article further briefly describes:

  • AWS Lambda
  • AWS Lambda runtime API
  • Lambda Runtime + Swift Function
  • Runtime API Calls

Once you read the article it should be not very difficult to understand how the Lambda service and the Runtime API work together. The simple and elegant API provides an interface for managing how Swift code can run on Lambdas . See AWS for more information and documentation details on Lambda runtime API. Nice one!

[Read More]

Tags aws swiftlang cloud serverless