Focus on business logic, not Lambda implementation details
Use the same patterns and libraries you love
Built specifically for Elixir's strengths
Meaningful stack traces and error reports
Write Lambda functions in pure Elixir with minimal setup
defmodule MyFunction do
def handle(event) do
{:ok, %{
message: "Hello from Elixir!",
event: event
}}
end
end
# In mix.exs
def deps do
[
{:mayfly, github: "bmalum/mayfly"}
]
end
Then run: mix deps.get
defmodule MyFunction do
def handle(event) do
{:ok, %{message: "Hello!", event: event}}
end
end
mix lambda.build --zip --docker
Upload lambda.zip to AWS Lambda and set handler to Elixir.MyFunction.handle
Note: On Apple M processors or ARM-based OS, the Lambda will be built for ARM64 architecture. Select "arm64" when creating your Lambda function in the AWS Console.
Run your Elixir code in AWS Lambda without compromise. Mayfly brings the full power of Elixir to serverless functions.
Unlike generic custom runtimes, Mayfly is purpose-built for Elixir, bringing the language's reliability and expressiveness to serverless computing.