by jensvdh · 5y ago · 0 comments
Now, Shopify clearly has the capacity to pull this off. But a smaller company that initially bet on Rails and is now facing a mountain of tech debt might not. To be fair: it is possible to write Rails applications in a way that you don't couple every aspect of your application to Rails internals. But in certain crucial ways, Rails encourages doing exactly that - dragging the DB along your whole application, for example.
I've been a Rails developer for a couple of years and I left that ecosystem in no small part because a huge chunk of that community seems to treat "architecture" as a dirty word and monkeypatching as a solution for everything (and also indulges into making fun of PHP or Java a bit too much for my taste). Of course, everyone's experiences are different and you can do great stuff with Rails, but for me it's something I don't really want to go back to.
In hindsight, it was probably a bad choice. At the time however, it was probably a good one.
Besides, things like AirBnB are the exceptions. Most sites don't get anywhere near the traffic they get, and Rails is often a good choice. Is it imperfect and are there trade-offs involved? Of course, but there are with anything.
Source: I worked at Airbnb for five years and a very early team member told me this.
No disagreement here. But the argument was made that Rails "scales pretty well" and I believe this is wrong — and I don't even mean in terms of performance (that probably too), but also in terms of architectural complexity. All these problems are solvable of course, but Rails makes it IMHO harder than some other technologies.