News for hackers. Stuff that matters.
Re:DigitalOcean App Platform by nojvek on Wednesday October 07, 2020 @02:18AM (#24705748)
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!

Re:DigitalOcean App Platform by mcintyre1994 on Wednesday October 07, 2020 @07:59AM (#24707316)
What sort of cold start time do you get with that out of interest?
Re:DigitalOcean App Platform by nojvek on Wednesday October 07, 2020 @11:14PM (#24715311)
Even 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.

Re:DigitalOcean App Platform by chishaku on Wednesday October 07, 2020 @09:49AM (#24708148)
Not sure about exact numbers on the cold start but we avoid it altogether with a keep-warm request every minute.
Re:DigitalOcean App Platform by mcintyre1994 on Wednesday October 07, 2020 @09:58AM (#24708250)
Makes sense, and the 10 cents in your above comment is literal with a keep-warm every minute? That's pretty solid!