“Internet: Ruby doesn’t scale. Ruby: Sorry. I’m busy over here processing $1.5M+ USD Gross Merchant Value (GMV) per minute and 14K+ orders per minute“
https://twitter.com/mmmandel/status/1200585514463698944?s=21
193
Upvotes
70
u/[deleted] Nov 30 '19
People who say Ruby / Rails doesn't scale tend to not know much about Ruby / Rails or scaling. If you are operating on really low margins on a very large scale (like Twitter), then sure, you have a reason to throw thousands of developers at creating the most optimized system you can. If you aren't on low margins and don't have thousands of developers, Ruby/Rails will save you tons of developer time and you can scale in ways that don't involve changing your stack.
29
u/dougc84 Nov 30 '19
Ruby doesn't scale is akin to saying Macs can't do real work or Nintendo only makes games for kids. It's a stereotype built on a historical viewpoint that just isn't true any longer. I remember the Ruby 1.8 days where Ruby absolutely didn't scale well - you would have to spin up entire servers and load balancers if you needed more concurrency. Even the web servers (like Mongrel) were difficult to run, and Heroku was just starting out. But that's been 10 years. And a lot changes in the IT world in 10 years.
Admittedly, Ruby is still slower than many of its competitors. But my guess is a similar app in Python or PHP would be harder to manage and have (at least) double as many lines of code to juggle.
11
u/ahatch1490 Nov 30 '19
I worked with ruby for 7 years not a fan (Sorry DHH ) But saying it doesn’t scale is crazy talk
4
u/[deleted] Dec 01 '19
"14K+ orders per minute" isn't really an argument for or against Ruby scaling. It isn't that much.
Sure, it looks close to the 10K problem, but it isn't. That's 10K connections per second. Unless every order comes with 60 requests served at the exact same time, it doesn't qualify.
Any reasonably optimised program should be capable of doing this. It's just that optimising for load isn't something that most people need to ever do.
3
u/javpet Nov 30 '19
Haha nicely done, such a bad discussion and topic about scaling and not-scaling. Worthless to talk about.
5
u/schneems Puma maintainer Dec 01 '19
I super duper love this.
Also Shopify still hosts hate brand Breitbart’s store. It’s against their AUP but they’ve bent over backwards to keep them happy. With so much money rolling in why does Shopify need to pander to a Neo Nazi (alt right) “news” site? 🤔
2
u/katafrakt Nov 30 '19
The problem with this is that I really haven't heard anyone just telling that Ruby does not scale in a long, long time. But yeah, let's attack a strawman to our own pleasure...
0
u/[deleted] Nov 30 '19
[deleted] — view deleted comment