V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
jeeson
V2EX  ›  分享发现

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

  •  
  •   jeeson · 2013-07-16 00:01:27 +08:00 · 3861 次点击
    这是一个创建于 3935 天前的主题,其中的信息可能已经有所发展或是发生改变。
    最近因为一个项目评估 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 就更便宜了



    不知道是不是我理解有问题,有点离谱
    5 条回复    1970-01-01 08:00:00 +08:00
    jeeson
        1
    jeeson  
    OP
       2013-07-16 00:13:06 +08:00
    觉得上边没说清楚,补充一下:

    假设一个类似 Google Reader 的应用,客户端一次同步请求 200 篇文章,GAE 费用是 Azure 上的 1200 倍
    min
        2
    min  
       2013-07-16 00:17:35 +08:00
    刚刚申请了msdn订阅用户的免费额度,等我玩熟了azure再来回复lz ^_^
    jeeson
        3
    jeeson  
    OP
       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
        4
    ytzong  
       2013-07-16 10:02:56 +08:00
    支持 .NET 几?
    min
        5
    min  
       2013-07-16 10:27:11 +08:00
    @ytzong 4.5
    azure上还可以试用windows 2012 r2,总归是支持最新的版本
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5385 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 05:51 · PVG 13:51 · LAX 22:51 · JFK 01:51
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.