How Does Lamby Work?
Since Rails is on Rack, the Lamby gem relies on converting Application Load Balancer or API Gateway events sent to your
handler and converting them to a Rack
env object. We then send that object to your application and pass the result back to the Lambda handler which expects a simple object/hash containing the
headers. It is that simple.
Thanks to the projects and people below which inspired our code and implementation strategies.
- AWS Sinatra Example
- Rack Lambda Handler Pull Request
- Serverless Rack Plugin
- Jets' Rack Implementation
Other small details which Lamby helps with.
- Ensure all
- Sets the
- Provides a debug response in development (or when
LAMBY_DEBUGenv set) using