News for hackers. Stuff that matters.
Re:From Node to Ruby on Rails by proxyon on Thursday December 16, 2021 @10:44AM (#29579323)
I simply cannot understand why people care about "fast" anymore with cheap containerization, CI/CD infra and no more dedicated servers. Who cares if its fast? Just add another box. I have this suspicion that anyone who still cares about backend speeds is stuck in the vertical scaling mindset where they need to keep adding cores and processes to a single machine
Re:From Node to Ruby on Rails by cultofmetatron on Thursday December 16, 2021 @11:54AM (#29580348)
Not everything scales horizontally. Your database for instance is going to be scaled vertically to its max long before you think about using federated write servers. Sure you can use planetscale but that comes with its own considerations and tradeoffs.

Also, higher performance translates to lower machine costs. Our server costs would easily be 4x if we ran rails. given that elixir is 80-90% as productive for writing code in the short term, its a fair deal. Over the long term, we've found elixir to be more maintainable since there's very little magic and the immutable data structures and lack of magic make it super easy to debug.

Thanks to the performance of our system, we've also managed to get by without setting up caching. (we'll probably need it eventually but our performance gains have come mostly though fine tuning our sql queries. Ecto gives us way better control over the output sql than active record or sequalize)

Re:From Node to Ruby on Rails by montblanc on Thursday December 16, 2021 @12:11PM (#29580611)
A lot of engineers take great pride in improving performance even if it's mostly meaningless to the company. The users don't really care if the number of instances went down from 30 to 20. It is what it is, engineers will be engineers.
Re:From Node to Ruby on Rails by coldtea on Thursday December 16, 2021 @11:06AM (#29579604)
>I simply cannot understand why people care about "fast" anymore with cheap containerization, CI/CD infra and no more dedicated servers. Who cares if its fast?

People who pay for those extra boxes? Not everybody has your budget (especially when they're building things themselves, on the side, so they aren't even paid).

Re:From Node to Ruby on Rails by montblanc on Thursday December 16, 2021 @12:12PM (#29580617)
Getting to that scale on the side is a nice problem to have. Maybe it shouldn't be on the side anymore.
Re:From Node to Ruby on Rails by proxyon on Thursday December 16, 2021 @01:24PM (#29581772)
A cheap micro container is $5 a month. A cheap dedicated server can be had for $20 a month. Budget is not the issue here.
Re:From Node to Ruby on Rails by true_religion on Thursday December 16, 2021 @02:36PM (#29582764)
An expensive dedicated server can also be had for $1300 a month.

Scaling vertically can take you a long long way before you actually have to start separating services.

Re:From Node to Ruby on Rails by proxyon on Thursday December 16, 2021 @07:16PM (#29585933)
Ok? That's a non sequitur. No one is forcing you to buy a dedicated server for $1300 a month which probably has the same performance as $250 worth of separate boxes. And separating services isn't what we're talking about here. It's adding horizontal processes across machines instead of on one machine.
Re:From Node to Ruby on Rails by manmal on Thursday December 16, 2021 @02:45PM (#29582890)
Doesn’t „fast“ directly translate into shorter page loading times? Static pages (JAMStack) load so fast it’s delightful everytime.
Re:From Node to Ruby on Rails by proxyon on Thursday December 16, 2021 @07:19PM (#29585955)
It doesn't. They mean "fast" as in one box can handle more load which in their opinion is cheaper because you don't need to containerize and horizontally scale. I find that unlikely.