Re:A Deep Dive into Solid Queue for Ruby on Rails
by rubyfan on Monday June 23, 2025 @07:45PM
(#44361385)
Yeah this is not the fault of ruby. Sounds more like bad choices that could be made with any language or framework.
[ Parent
| on HN ]
Re:A Deep Dive into Solid Queue for Ruby on Rails
by charcircuit on Monday June 23, 2025 @07:59PM
(#44361467)
Culture around a language influences what choices are made.
Re:A Deep Dive into Solid Queue for Ruby on Rails
by rubyfan on Monday June 23, 2025 @08:05PM
(#44361498)
Don’t be silly. Bad choices are made in all sorts of languages and teams - this has nothing to do with language. High pressure situations can lead teams to make choices they don’t always foresee as bad until after they are paying the consequences.
Re:A Deep Dive into Solid Queue for Ruby on Rails
by charcircuit on Monday June 23, 2025 @09:17PM
(#44361952)
Sure bad choices are made everywhere, but I was essentially claiming that when a community has a hammer, they will see nails.
Re:A Deep Dive into Solid Queue for Ruby on Rails
by rubyfan on Monday June 23, 2025 @09:34PM
(#44362045)
Queues are not a ruby specific thing, nor are they particularly pervasive within Rails apps. Having a good framework to handle them doesn’t make it the only tool in the tool belt. On the contrary, the fact that Rails has good tools to fit many different types of system architecture needs is a counterpoint of your assertion.
Re:A Deep Dive into Solid Queue for Ruby on Rails
by nkraft11 on Tuesday June 24, 2025 @09:29AM
(#44366051)
Sort of. In this case the lack of multithreading led engineers to using sidekiq as a stand in.
Re:A Deep Dive into Solid Queue for Ruby on Rails
by trevorhinesley on Monday June 23, 2025 @08:05PM
(#44361501)
I’ve never felt like “throw everything into a queue” was a mindset within the Ruby community, nor have we done that at my companies. And multi-region is a business decision.
Re:A Deep Dive into Solid Queue for Ruby on Rails
by morkalork on Monday June 23, 2025 @08:12PM
(#44361540)
Doesn't Ruby, like Python, have a GIL? I always found that one is enough to encourage some "premature scalable architecture"
Re:A Deep Dive into Solid Queue for Ruby on Rails
by trevorhinesley on Monday June 23, 2025 @08:25PM
(#44361626)
It does have a GIL. You’re not wrong, but by that same logic, there’s pitfalls when using multi-threading as well, even in languages where it’s native (e.g., Elixir).
Regardless, in my experience, when you run into scenarios that need queueing, multi-threading, etc., you need to know what you’re doing.
Re:A Deep Dive into Solid Queue for Ruby on Rails
by Lio on Tuesday June 24, 2025 @01:59AM
(#44363233)
That depends on the Ruby implementation.
MRI (CRuby) has a GVL which is why you might use a forking web server like Puma or Pitchfork.
JRuby and TruffleRuby though have true multi-threading and no GVL.
I’ve used the Concurrent Ruby library with JRuby and Tomcat quite a bit and find works very well for what I need.
Re:A Deep Dive into Solid Queue for Ruby on Rails
by aaronblohowiak on Monday June 23, 2025 @09:28PM
(#44362003)
Resque was a staple for a long long time. In the jvm world, throw everything into Kafka is also a staple of a lot of "enterprise" shops. Or SQS for AWS places I've worked at. I think it is not a ruby language thing, but a certain kind of architecture thing.
Re:A Deep Dive into Solid Queue for Ruby on Rails
by WillPostForFood on Monday June 23, 2025 @09:34PM
(#44362049)
True that it is not uncommon to use Sidekiq or Resque , but Rails 8 is going to be the first version to ship with a queuing system (SolidQueue), later this year. So queueing has been an add-on for 20 years. I don't think it is quite a staple.
Re:A Deep Dive into Solid Queue for Ruby on Rails
by ggsp on Tuesday June 24, 2025 @01:26AM
(#44363080)
Rails 8 came out in November, and `rails new` generates an app with the solid trio in the Gemfile. Been fun playing around with it for new side projects :)
Re:A Deep Dive into Solid Queue for Ruby on Rails
by atmosx on Tuesday June 24, 2025 @06:08AM
(#44364532)
Funny part: I initially thought you were referring to the word “Byzantine” itself, which tends to carry a negative connotation in English, mostly due to historical bias. But you’re actually talking about Ruby!
If we were to take Byzantine in a more accurate, historical sense, something truly “Byzantine” should be evolving, enduring, top-tier, and built to last for 1k years.
Re:A Deep Dive into Solid Queue for Ruby on Rails
by nkraft11 on Monday June 23, 2025 @10:41PM
(#44362421)
You're totally correct. It's not a problem of ruby per se, but engineers would basically just throw their hands up and say "ruby can't handle this" and sidekiq became the One True Way™. What ensued was the most byzantine software architecture I've ever seen.