Microsoft Azure DocumentDB vs Azure Table Storage

后端 未结 5 1775
挽巷
挽巷 2020-12-13 02:02

For several recent years, Microsoft offers a \"NoSQL\" key/value storage, called \"Table Storage\" (http://azure.microsoft.com/en-us/documentation/articles/storage-dotnet-ho

5条回答
  •  生来不讨喜
    2020-12-13 02:38

    Both are NoSQL technologies, but they are massively different. Azure Tables is a simple Key/Value store and does not support complex functionality like complex queries (most of them will require a full partition/table scan anyway, which will kill your performance and your cost savings), custom indexing (indexing is based on PartitionKey and RowKey only, you currently can't index on any other entity property and searching for anything other than PartitionKey/RowKey combination will require a partition/table scan), or stored procedures. You also can't batch read requests for multiple entities (through batch write requests are supported if all the entities belong to the same partition). For a real-life application of Azure Tables, see HERE.

    If your data needs (particularly around querying them) are simple (like in the example above), then Azure Tables provide what you need, you might end up using that in favor of DocDB due to pricing, performance and storage capacity. For example, Azure Tables performance target is 20.000 operations per second. Trying to get that same level of performance on DocDB will have a significantly higher service cost for you. Also, Azure tables are limited by the capacity of your Azure storage account (500TB), whereas DocDB storage is limited by the capacity units you buy.

提交回复
热议问题