This isn’t quite true. Cloud Run charges for time the container is alive, no matter how many requests it’s handling. With Cloud Functions, each request is billed separately, so a longer time spent waiting for a call to return means you pay more. With Cloud Run, if you’re using a language or framework with good concurrency support, if that call time gets longer, you may be able to increase the number of concurrent requests you can handle, which means your cost will not rise as much.

Cloud Robotics Research Scientist at @iRobot

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store