与 Google App Engine 相比,Windows Azure 的存储便宜的离谱

2013-07-16 00:01:27 +08:00
 jeeson
最近因为一个项目评估 Windows Azure,发现 Azure 的存储费用和 GAE 相比真的是便宜的离谱

==========
存储空间费用
GAE Datastore(High Replication):
$0.006/ GByte-day

Azure Table Storage:
$0.095/GB-月(GEOGRAPHICALLY REDUNDANT) $0.07/GB-月(LOCALLY REDUNDANT)

GAE Datastore 费用大概是 Azure Storage 的 2-2.5 倍

==========
操作费用(这部分费用是重点):
GAE Datastore:
Datastore Write Operations $0.90/ Million Ops
Datastore Read Operations $0.60/ Million Ops

Azure Table Storage:
$0.01 per 100,000 transactions,相当于1000万次读写操作 $1

假设 写操作次数:读操作次数 = 1:2, GAE Datastore 相当于 Azure Table Storage 7 倍费用

另外,GAE Datastore 创建/修改/删除时,key 另算 1 次写入,索引字段算 2 次写入,即便没有索引字段,一条记录也至少算 2 次写入。Azure Table Storage 这部分没有单独计费

然后,Azure 是按照 transaction 计费的,一直不确定一个批量操作算一个 transactions 还是多个,直到找到这篇文章:http://blogs.msdn.com/b/windowsazurestorage/archive/2010/07/09/understanding-windows-azure-storage-billing-bandwidth-transactions-and-capacity.aspx

“Both of these types of batch operations result in a single REST request to the storage service. Therefore, they count as a single transaction for each request.”

"Table Save Changes (with SaveChangesOptions.Batch) with 100 entities = 1 transaction"

"Table query doing a single storage request to return 500 entities (with no continuation tokens encountered) = 1 transaction"

Batch 操作可以一次最多可以获得 1000 个记录,或者更新 100 条记录,按照一个 transaction 计算,相比 GAE Datastore 就更便宜了



不知道是不是我理解有问题,有点离谱
3965 次点击
所在节点    分享发现
5 条回复
jeeson
2013-07-16 00:13:06 +08:00
觉得上边没说清楚,补充一下:

假设一个类似 Google Reader 的应用,客户端一次同步请求 200 篇文章,GAE 费用是 Azure 上的 1200 倍
min
2013-07-16 00:17:35 +08:00
刚刚申请了msdn订阅用户的免费额度,等我玩熟了azure再来回复lz ^_^
jeeson
2013-07-16 09:46:45 +08:00
@min 谢谢。

今天正好会遇到微软这方面的人,有些细节再咨询看看

AzureBench: Benchmarking the Storage Services of the Azure Cloud Platform:
http://www.cs.gsu.edu/~dagarwal2/sites/default/files/cloud%20Benchmark.pdf
ytzong
2013-07-16 10:02:56 +08:00
支持 .NET 几?
min
2013-07-16 10:27:11 +08:00
@ytzong 4.5
azure上还可以试用windows 2012 r2,总归是支持最新的版本

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/75903

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX