4 ms·
I’m waiting for digital ocean to have something like google cloud run. Google cloud run is essentially here is a docker image that listens on the $PORT env var
by nojvek 6y ago
I’m waiting for digital ocean to have something like google cloud run.
Google cloud run is essentially here is a docker image that listens on the $PORT env variable. Spin it up when you get requests. It will handle X queries per second (you can set limit). If more than X, scale it up to this many replicas.
I pay about 10 cents for my site. Zero maintenance. I push code to GitHub, GitHub builds an image, pushes to GCR and tells cloud run to use new image.
This is how things ought to work for simple web server like functionality. “Here’s a dockerfile and source tree, build it, run it and auto scale it with this https domain” Boom!
- mcintyre1994 6y agoWhat sort of cold start time do you get with that out of interest?
- chishaku 6y agoNot sure about exact numbers on the cold start but we avoid it altogether with a keep-warm request every minute.
- mcintyre1994 6y agoMakes sense, and the 10 cents in your above comment is literal with a keep-warm every minute? That's pretty solid!
- nojvek 6y agoEven with no cron, it was <500ms cold start. With a cron that hit every 5 mins, I saw less <100ms to hit US central and back (from Seattle). I pay 10 cents a month to google. They have no shame charging me 3 cents on my credit card.