Call Lambda Functions Like Ruby Methods
In Chapter 7, we learned how to expose Lambda functions as HTTP endpoints using API Gateway. But sometimes you want something more direct - calling a Lambda function from your Rails application as if it were a regular Ruby method, without HTTP overhead.
This approach is perfect for:
The AWS SDK approach gives you:
Think of it as calling a Ruby method that happens to run on AWS Lambda instead of your Rails server.