Jets is a Deployment Service. Jets makes it easy to deploy and run your app on Serverless. It packages up your code and runs it on AWS Lambda. Jets can deploy Rails, Sinatra, Hanami, and any Rack app.
No reviews yetBe the first to leave a review for Jets Serverless Deployment
Maker
📌
I just released Ruby on Jets 6.0 https://blog.boltops.com/2024/05... The biggest news in the release is Rails support. You can run Rails on AWS Lambda easily.
congratulations on the launch, tung. integrating rails with aws lambda could simplify so many development workflows. can you share how jets handles database migrations and persistent connections in a serverless environment?
Report
Maker
@mashy Sure.
RE: Database migrations
rake db:migrate can be run as part of the deploy process in the release phase. https://docs.rubyonjets.com/docs... It’s similar to the Heroku release phase
RE: Persistent connections
The database connections are made when the Jets and the Rails app boots up. This happens outside what’s called the Lambda handler function so it only happens once. Each Lambda “container instance” uses one persistent db connection. The lambda concurrency is how many lambda instances you want to allow to spin up. Docs: https://docs.rubyonjets.com/docs...
It’s similar to server puma threads, each has a persistent db connection. You want to control it.
SiteForge - AI Website Wireframer