A recent project had us migrating an existing pdf document processing system from rails sidekiq to aws lambda.
Aws lambda ruby on rails.
This article is part of our ruby on aws lambda blog series.
Ruby aws lambda bff 03 01 2019.
Today aws is excited to announce ruby as a supported language for aws lambda.
Aws lambda is a function as a service platform that stores and executes your code when triggered by an amazon web service aws event.
The aws sdk for ruby is included in the lambda execution environment by default.
I was thrilled to learn that i can finally use ruby with lambda but using sinatra as an example feels wrong.
If you want to build an api with it you would want to have api gateway do all the routing and request handling.
That makes it easy to interact with the aws resources directly from your functions.
You only pay for the execution of the function.
Essentially jets functions as a framework similar to rails but now that aws lambda supports ruby functions it allows you to build serverless applications.
There is a lot of other great information on lambdas on both the aws lambda page and on the ruby on jets website.
Having played with the new ruby support for a few hours i m feeling confident we ll be spending less time with node go and python.
Moving to lambda reduced processing time by 300 in some cases.
We ve been using lambda for a while at honeybadger and i have longed to be able to write our functions in ruby.
These events range from making an api call to saving a file to updating a database.
The processing includes ocr creating preview images splicing the pdf and more.