3

AWS (Amazon web service) introduced serverless computing commonly known as AWS Lamda, We can store the asset in S3 then deploy a lambda function to handle our business logic. Lamda will support ruby script.

Is there any way to run a dynamic web framework like rails or Sinatra in Lambda server?

1 Answer 1

8

The main problem here is that AWS Lambda does not currently support Ruby.

AWS Lambda supports code written in Node.js (JavaScript), Python, Java (Java 8 compatible), and C# (.NET Core) and Go

However if you really want to run a rack (including Sinatra and Rails) based app it is possible, by bundling your own version of ruby in your deployment package. This blog post goes into detail about how to do that.

Whether this is a good idea probably depends on what you are trying to achieve.

Update (3rd December 2018): AWS Lambda now runs Ruby as an officially supported language: https://aws.amazon.com/blogs/compute/announcing-ruby-support-for-aws-lambda/

Sign up to request clarification or add additional context in comments.

1 Comment

Blog post sheakelly.com/blog/serverless-sinatra is dead, if you can add a replacement, that would be great!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.