2

任何人都知道如何使用 Google App Engine 实现差异化服务?我有两种类型的用户。一个是高级用户,另一个是免费用户。我想在两者之间设置不同的最小延迟来启动新的 GAE 实例。换句话说,我愿意为高级用户产生的流量支付额外费用。尽管如此,对于免费用户,我更愿意至少或在谷歌提供的每日免费配额内付费。就我而言,我希望免费用户能够容忍比高级用户更高的延迟。我相信这个案例应该是比较笼统的,适用于很多人。

假设我可以通过用户使用的 URL 或其他机制来识别用户类型。我能想到的唯一方法是创建两个独立的应用程序,让高级用户访问启用计费的应用程序,而免费用户访问不启用计费的应用程序。但是,我的免费和高级用户需要共享数据存储,因为他们还必须在应用程序内进行通信。不幸的是,目前似乎不可能在不影响性能的情况下跨应用程序共享数据存储。

4

1 回答 1

1

No, this is not possible right now. App Engine gives you a few knobs to balance cost vs. response time: instance class (applies to all versions), min/max pending latency, and min/max idle instances. The latter two sets of knobs only apply to the default version of your app.

There are other ways you can try to lower cost for free users though. e.g. give them limited storage, limit the number of logins or page views over a period of time, serve them lower quality images (if your app is image intensive), etc.

I'm not sure "cut costs for free users" is a useful strategy though. The conventional wisdom is that you want to turn your free users into paying customers (known as "conversion" in the biz). This is more or less what App Engine itself tries to do :P. There is no magic bullet that instantly turns free users into paying customers. The "trick" (if you can call it that) is to make the paid version of your app so compelling that people would rather part with their money in order to have it.

于 2012-09-27T07:23:52.870 回答