4 ms·
Cloud Run uses docker containers, so the code can very easily be the same. I'd put a server app up behind a cloud run endpoint, sure, as long as it can fit in
by tln 6y ago
Cloud Run uses docker containers, so the code can very easily be the same.
I'd put a server app up behind a cloud run endpoint, sure, as long as it can fit in a few GBs and start in a few 100 ms. The scale-to-0 aspect is nice, and the scale up aspect is nice too.
- rad_gruchalski 6y agoI’ve seen ory hydra being fir in a lambda function and as awkward as it looks to be, it works reasonably well. Thanks, good to know it’s a common technique.
- eb0la 6y agoFor me the selling point of cloud run is that is easy to develop and debug: make it run locally, test it, then ship it in a container. For GCP cloud functions, AWS lambdas, Azure cloud functions you must fight somehow against the environment (that's the reason frameworks like Zappa exist). If you want/need to use compute instances, you can use KNative in your K8s cluster and enjoy a "similar" scaling experience.