by syspec · 5y ago · 0 comments
> Any Cloud Run service, by default, can scale up to 1,000 instances. (However, by opening a support ticket, you can get this number elevated.) This means we can support 250,000 clients simultaneously without having to worry about infrastructure and scaling!
Aren't these statements at odds with one another?
I think this is a far more valuable model than Function-as-a-service, where the runtime environment is strictly defined. Since “it’s just containers” you could write a web server in brainfvck if you felt like it, write a tiny dockerfile, then ‘git push origin/main’ and Cloud Run gives you a running endpoint. Okay, there is some devops work to set up that pipeline, but that is mostly boilerplate.
It’s Heroku but it scales down to zero (ie free) and up to 1000+ instances of your server in ms.
I don't personally find the two statements at odds. If you have 250k connections 24/24 7/7 for a whole month, that should mean your business is generating more than enough money to cover the cost.
Or, at the very least, that the losses by not being able to scale are higher than the cost of the infrastructure.
If this is false and you'll be bankrupt by those 250k connections, you should obviously not let your instances to scale that much.