4 ms·
As an illustrative of pricing: If your deployment can run in 256MB of RAM w/ 1 vCPU, handles an average request in under 250ms, transfers 200kb or less per req
by jsjohnst 7y ago
As an illustrative of pricing:
If your deployment can run in 256MB of RAM w/ 1 vCPU, handles an average request in under 250ms, transfers 200kb or less per request on average, and you get 2 requests/minute on average to your site:
The cost is around $2/month USD, which I feel is a more likely scenario for a side project vs the “pennies a month” the OP claims.
- minimaxir 7y ago"2 requests/minute on average to your site" is a bad assumption for a relatively unpopular side project. More importantly, with those hypothetical numbers, you'd stay well within the free tier for compute.
- modzu 7y agopeople seem to forget the usage accrued via the devs themselves..
- chispamed 7y agoA request is not a visit. Each visit might have a up to a hundred requests (or even more when showing live data and caching a PWA on first visit for example). That would translate to one user per hour or two which even unpopular side projects can get. But you're right about the free tier of course.
- minimaxir 7y agoFair, although if the app is architected that way Cloud Run might not be the best option.
- jsjohnst 7y ago2 requests/minute = 86400 requests a month. Plug in the other numbers from my earlier post and you’ll see the calculator say exactly as I said, around $2/month give or take depending on region.
- chispamed 7y agoI have gone serverless for a Vue frontend app I deliver with Cloudflare Workers Sites and with a DigitalOcean S3 Space serving all images. However I'm still very reluctant to use Google Cloud Computing or any similar Azure/AWS solutions for its backend because it just seems pretty expensive to me. I can get a vServer with 48 Gb RAM, 10 vCPUs and a 800 SSD with a 1000 Mbit/s connection and unlimited traffic for 20€ a month and run my MariaDB and Redis database on the same machine as my other containers. Even if the vServer only runs at 25% on average the same performance with GC would cost me 150€ for the CPU, 77€ for the RAM (with free tier already included) and that is still not accounting for the traffic. And I would have to host the MariaDB instance elsewhere (which adds latency). And Google Cloud has very few data centers in Europe so it'd not even be near my main market. In this case Google Cloud Run (with worse performance) would cost me like 15x more than running a vServer. That's not a price I'm willing to pay to go completely serverless or to avoid downtime at all costs. Or am I missing something?
- sweeneyrod 7y ago> I can get a vServer with 48 Gb RAM, 10 vCPUs and a 800 SSD with a 1000 Mbit/s connection and unlimited traffic for 20€ a month and run my MariaDB and Redis database on the same machine as my other containers. Where are you getting all that at that price?!
- jsjohnst 7y agoHetzner has 8 vCPU with 48gb RAM and 2x2TB Enterprise SATA, for 30€ a month with unlimited bandwidth.
- chispamed 7y agoStrato.de (German) has some great plans. Just install docker one their linux vserver and you’re good to go. https://www.strato.de/server/linux-vserver/ https://www.strato.de/server/linux-vserver/
- sweeneyrod 7y agoInteresting! How/why are they so much (~8x) cheaper than e.g. DigitalOcean or Linode? Or am I missing something and they're not comparable in some way?