2 ms·
We have been using ruby extensively through our org for years. We tried java, go, node, elixir, python. Pretty much it comes down to ruby on rails have a very
by itsthecourier 2y ago
We have been using ruby extensively through our org for years.
We tried java, go, node, elixir, python.
Pretty much it comes down to ruby on rails have a very opitionated way of doing things.
We mix some DDD and recently High Performance PostgreSQL for Ruby on Rails https://www.amazon.com/dp/B0CX876RLY https://www.amazon.com/dp/B0CX876RLY
It is slow. How much? According to tech empowered https://www.techempower.com/benchmarks/#hw=ph&test=query§ion=data-r22 https://www.techempower.com/benchmarks/#hw=ph&test=query&sec... something like 6 times slower than java-vertx-postgres. But we have seen slow and shitty apps coded in go and java too, most of the time slow apps come from people gluing libraries without thinking in the cost each has by doing a profiling.
Me moved to rails and flutter to have a quick coding hot-reloading loop
And we determined it was easier for our devs to all master a tool, instead of jumping between frameworks and DBS (we use rails, Kamal, postgres, redis and clickhouse, datadog)
The result has been awesome. Our web pages pass Google pagespeed in green, we serve millions of requests a day without issues, datadog APM helps a lot and they move between projects easily. The have hotspots like query autocompletion in one of our sites, which we do in memory with a trie library which runs a C library underneath for under 100ms response times.
If your org is competing in a really really competitive field and you need to reduce costs to zero (as whatsapp had to do with Freebsd and erlang) go ahead and do your tradeoffs. But if you don't, rails is the one man army framework. Even more with hotwire/solidqueue. Even more considering my go to calculation is: "infrastructure should be 10% of revenue in SaaS", with rails that stills olds true