问题
Does anyone know, difference between Google App Engine Flex and Google Cloud Run?
Thanks
回答1:
The Cloud Run documentation is not yet very informative but the new video Where Should I Run My Code? Choosing From 5+ Compute Options (Cloud Next '19) compares Cloud Run with App Engine and also Cloud Functions, Google Kubernetes Engine, and Google Compute Engine.
- You can choose to deploy your Cloud Run app on fully managed infrastructure ("serverless", pay per use, auto-scaling) or on a Google Kubernetes Engine cluster. App Engine is always fully managed, with auto-scaling. App Engine Flex auto-scales gradually and down to 1. App Engine Second Generation auto-scales up rapidly and down to 0.
- Cloud Run requires your app to run in a container. App Engine Flex runs your container for any language runtime. App Engine Second Generation provides a few language runtimes.
- Cloud Run runs "HTTP request/response" workloads, not necessarily for web browser requests. It's allowed to take a long time to process a request. App Engine runs HTTP web apps. It has modest request timeouts; different timeouts for App Engine Classic, Standard, and Flex.
- Cloud Run is designed for teams that include both software developers and ops experts. App Engine is designed for developers.
- Cloud Run is beta software. App Engine is battle tested and serving many billions of requests per day.
回答2:
Google cloud runs utilizes stateless applications inside docker containers. The service can scale up and down automatically and will scale to 0 when not in use. From what I understand app engine flex cannot scale to 0 and is generally not considered a stateless architecture.
来源:https://stackoverflow.com/questions/55619286/what-is-the-difference-between-google-app-engine-and-google-cloud-run