Google App Engine标准或灵活的环境? [英] Google App Engine Standard or Flexible environment?

查看:384
本文介绍了Google App Engine标准或灵活的环境?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在选择Google App Engine Standard Vs.灵活的现实世界生产环境。我想确定使用Java。需要使用Firebase(最新版本)进行身份验证和推送通知;我不确定新Firebase是否兼容标准或灵活。在以下链接中,请注意,我的印象是,最近的Firebase兼容性是灵活的只有环境。





...作为标准的env有一个免费的每日实例小时数配额,但是计算引擎定价使用机器类型结算模式,并且不会除了最初的限制免费试用版。



总体来说,本教程中使用的是标准环境:

配置App Engine后台以使用手动缩放部分,因为应用程序的配置文件中没有< vm> true< / vm> 用于选择灵活的环境


I am stuck in deciding between choosing Google App Engine Standard Vs. Flexible environment for a real world production. I want to use Java definitely. Need to use Firebase(latest version) for Authentication and Push notification; I'm not sure whether new Firebase is compatible with standard or flexible.

per the caution note in the following link, my impression is that recent Firebase is compatible is with Flexible Environment only.

https://cloud.google.com/solutions/mobile/firebase-app-engine-android-studio

解决方案

All things being equal any standard environment app can also run in a flexible environment with minimal app changes. The reverse is not true - the standard environment restrictions are stricter than those for the flexible environment (hence the flexible in its name).

UPDATE: the above is not correct, the language specific section of the Migrating an Existing App Engine App guide should be checked for which standard env APIs are explicitly listed as compatible or incompatible. In some cases that could clarify the decision right away. Assuming for the remaining of the answer that the choice between environments remains open after this check.

So - to get unstuck - I'd initially shoot for the standard environment (simpler to setup/manage and also potentially free, depending on the app's usage) and only decide to switch to flexible-only env if/when I hit an unavoidable issue caused by one of a standard environment restrictions and which is not an issue in the flex environment. If no such issue is hit you practically maintain the option to switch between the 2 deployment options as you desire.

As for your impression from the tutorial doc - I think it's unfounded, based on the Costs section...

Both Firebase and App Engine have free levels of usage. If your usage of these services is less than the limits specified in the Firebase free plan and the App Engine free quota, there is no charge for doing this tutorial.

... in combination with the Pricing row Comparing environments table...

... as the standard env has a free daily Instance hours quota but the Compute Engine Pricing uses the Machine type billing model and doesn't have a free quota except for the initial limited free trial.

Which overall tells me that the standard environment is used in the tutorial :)

Confirmed in the Configuring the App Engine backend to use manual scaling section as the app's config doesn't have the <vm>true</vm> setting used to select the flexible environment.

这篇关于Google App Engine标准或灵活的环境?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆