What is the difference between Google App Engine and Google Cloud Run?

家住魔仙堡 提交于 2019-12-07 02:50:36

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!