Custom Runtime for AWS Lambda using the Pypy interpreter
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.idea
pypy3-v6.0.0-linux64
test
.gitignore
LICENSE
README.md
bootstrap
deploy
handler.py
libbz2.so.1.0
runtime_interface.py
serverless.yml

README.md

aws-lambda-runtime-pypy

Custom Runtime for AWS Lambda using the Pypy interpreter. This was inspired by the AWS Tutorial for creating a Custom Runtime

This runtime is experimental and a Proof of Concept.

Details

  • Uses a plain Pypy distribution downloaded from https://pypy.org/download.html
  • Deployed package is below 20 MB in size (manually removed unnecessary Python libraries)
  • Long running tasks benefit from using Pypy on Lambda
  • Short running, not CPU limited tasks are better off using the default Python runtime

Usage

You should have your AWS tools and credentials set up and the Serverless Framework installed.

Run

sls deploy

for deploying this example Lambda based on a Pypy runtime to AWS.

Credits

Created by Ulrich Scheller

More details can be found in this blog post