from Hacker News

Ruby on Jets: Like Rails but serverless

by aa_memon on 1/22/23, 3:49 AM with 84 comments

  • by jacobn on 1/22/23, 4:19 AM

    Does it really make sense to map each controller method to a lambda? Wouldn’t it make more sense to have gateway route to a single function per controller and then do the method routing inside that function? You’re going to get a lot of lambda functions otherwise.
  • by rco8786 on 1/22/23, 12:13 PM

    I used Ruby on Jets for a small project a while ago. It worked really well, however I got the impression that the project was somewhat stalled and maybe losing support. Has that changed?

    edit Yea the github activity is still pretty concerning. But Rails seems to be having a little bit of a renaissance so maybe it will pick up here also.

  • by aa_memon on 1/22/23, 3:49 AM

    Wondering why this framework isn't more talked about, especially amongst rails devs to take advantage of AWS Lambda.
  • by pgib on 1/23/23, 5:14 AM

    I've been using Jets for a small project, and it's mostly been great. Coming from a Rails background, it was a very quick way to get a bunch of stuff running without any ongoing costs or babysitting. The documentation is pretty good, though there has been a few times where I've gotten a little stuck and have had to dig through the source to figure it out. Overall, I'm grateful for its existence.

    Ultimately though I don't think I'd use it beyond a proof of concept or without some sort of clear idea for how it will sustain itself.

    https://github.com/boltops-tools/serverlessgems/issues/6

  • by rgbrgb on 1/22/23, 5:03 AM

    Has anyone investigated what latency is like? Looks amazing for a low cost deployment, but I’d guess there could be significant startup latency for each controller.
  • by sam0x17 on 1/22/23, 5:43 PM

    former CTO @ Arist (YC S20). We were able to get all the way through series A using Ruby on Jets and it continues to be a major driver behind Arist's growth. Tung, the guy behind it, is simply fantastic.
  • by benevol on 1/22/23, 12:05 PM

    It looks like Ruby on Jets makes you 100% dependent on 1 company: AWS/Amazon; not an evolution I'd welcome.
  • by cultofmetatron on 1/22/23, 4:42 PM

    maybe its just me but serverless seems ill suited for these heavy garbage collected languages. Since you're just spinning up a process shutting it down once it does its job, you're really wasting a lot of cpu cycles on building up the garbage collector. A lot of the overhead is fine when you're using a persistent instance where you can "warm the cache" so to speak. nodejs would be the edge of what I consider good for serverless. go is probably ok if you turned off the GC and rust would be ideal.

    Then again, I've managed to completely avoid serverless as I find it to be a pita when you want to do anything more complex than a trivial crud app.

  • by dang on 1/22/23, 5:26 AM

    Related:

    Jets: Ruby Serverless Framework - https://news.ycombinator.com/item?id=19893796 - May 2019 (39 comments)

  • by hit8run on 1/22/23, 2:51 PM

    I use Dokku on a powerful Hetzner server for my rails apps. Am I missing out on something? My stuff has not too many users < 1000 and those are mainly from EU and US. How would you host this?
  • by ehayes on 1/22/23, 3:38 PM

    Another Rails on Lambda framework is Lamby: https://lamby.custominktech.com/
  • by mdaniel on 1/22/23, 4:57 PM

    I wonder if this would help Mastodon (the project, not the generic term) since I thought the recent Twitter flight caused them scaling woes, but I don't know enough of the details to readily know if one lambda per route would help them or not
  • by nixpulvis on 1/22/23, 5:00 AM

    Am I the only one who is kinda irritated with how AWS has effectively created a piecemeal proprietary operating system and slowly started displacing good server ops? All while "supporting" open-source development.

    I really don't want to be an AWS engineer. I like being able to host my own tools when I want.

    Sorry for the rant, serverless stuff in general is cool.

    As a followup... I'm curious if anyone can recommend solid opensource serverless runtime projects with decent management interfaces (CLIs are nice)? It would be neat if projects like Ruby on Jets could become "lambda-agnostic" for lack of a better tagline, if they're not already.

  • by travisgriggs on 1/22/23, 6:37 AM

    Ruby syntax with a focus on fine grained transforming functions. Isn’t that essentially exactly what Elixir/Phoenix tries to provide, but without the Amazon lock-in or price tag?
  • by renox on 1/22/23, 10:12 AM

    "Like Rails but serverless", I wonder what's their definition of servers?

    As far as I understand it relies on .. AWS servers!

  • by edem on 1/22/23, 12:58 PM

    We should have buried Ruby along with Flash a while ago. It is not part of the future anymore (thankfully).