by oopsthrowpass · 2y ago · 0 comments
Then to handle any load we need to build autoscaling and spin up the toaster to medium potato and 20 instances (this costs 60k a month, but no worries we only pay for what we use so we will only run this for 27 minutes during our big sale).
Oh what wonderful world we live in and the pain we inflict on ourselves.
GJ Shopify for running a sane (tm) tech stack :)
(btw of course Rails scales it's shared nothing setup, spin up infinite app servers as long as the db can handle it. It's pretty expensive for compute though)
But we continue to see cost / performance improving. Ignoring the Rails framework and Ruby VM both together has likely gotten 2x speed improvement. We will get 96 Core Graviton v3 or 128 Core Zen 4 EPYC. Cost / Core performance is coming down and will continue to do so at least until Zen 6.
Depending on your App, somewhere along the line it will surely lean towards Ruby Rails's flavour. Assuming you do value what Rails have to offer.
I am just waiting for fibre/ async ( or something similar ) to be built into Rails and Active Record, along with even faster RubyJIT.
If you have a thriving business already using Rails, it's difficult to justify moving off of Rails...now that painful upgrades seem to be mostly in the past. However, I do find isomorphic JS components & state management to be a pleasure to develop & maintain compared developing an app in two languages.
Upgraded a .NET 4.7 project to .NET 6 in 3 days and haven’t touched it since. And the .NET project was larger.
I haven’t done rails since that upgrade and I hope i never have to touch it again.
If you squint, yes. Erlang has had NIFs and ports since forever precisely because it isn't great at CPU intensive tasks.
In most cases however, you're still looking at an order of magnitude less servers than the equivalent Rails/Django application.
b) They run multiple app servers so each component can in fact be scaled separately.
c) They built their own PaaS which runs on Kubernetes.
d) You would have to be utterly incompetent to not care about optimising costs.
But I am glad we both agree that Shopify is doing a great job running a sane stack.