简体   繁体   English

在Windows应用商店应用中使用Azure表存储的最佳做法是什么?

[英]What is the best practice to consume Azure table storage in a windows store app?

I'm using PRISM framework to develop my App, there is no Patterns and practice guidance available on consuming Azure table with Windows store app? 我正在使用PRISM框架来开发我的应用程序,在使用Windows商店应用程序消费Azure表时,没有可用的模式和实践指南?

What is the best practice to consume Azure table storage in a windows store app? 在Windows应用商店应用中使用Azure表存储的最佳做法是什么?

  1. App calling WCF REST service which then talks to Azure table through Azure SDK 应用程序调用WCF REST服务,然后通过Azure SDK与Azure表进行通信
  2. App calling Azure table storage REST service 应用程序调用Azure表存储REST服务
  3. App calling Azure mobile service which then talks to Azure table through data script 应用程序调用Azure移动服务,然后通过数据脚本与Azure表进行通信
  4. App consuming Azure table storage through Azure SDK 应用程序通过Azure SDK使用Azure表存储

Any other option? 还有其他选择吗?

I don't think there's any guidance available on the best practices for consuming Azure Table Storage with Windows Store App. 我不认为有关使用Windows应用商店应用程序使用Azure表存储的最佳实践的任何指导。

Given your 4 options above, I would not recommend using #2 and #4 as is for one reason - In order for you to use any of these options, you would need to include your storage credentials (account name/account key) in your application itself which I think is a big security risk. 鉴于您的上述4个选项,我不建议使用#2和#4 原因之一 - 为了您使用这些选项中的任何一个,您需要在您的存储凭据中包含您的存储凭据(帐户名/帐户密钥)应用程序本身,我认为是一个很大的安全风险。

There's one other way by which you can use #2 and #4 and that's by using Shared Access Signature (SAS) functionality. 还有另外一种方法可以使用#2和#4,这是通过使用Shared Access Signature (SAS)功能。 Essentially you create SAS tokens using some kind of server side code (WCF/Mobile Service/Web API etc.) and provide that SAS token to your client application. 基本上,您使用某种服务器端代码(WCF /移动服务/ Web API等)创建SAS令牌,并将SAS令牌提供给您的客户端应用程序。 Then you can use #2 or #4 approach. 然后你可以使用#2或#4方法。

The advantage with this approach to me is that your server-side component is really light weight as all it is doing is creating SAS tokens and your Windows 8 application is directly talking with storage service without the need of an intermediary. 这种方法的优势在于,您的服务器端组件非常轻便,因为它所做的只是创建SAS令牌,而您的Windows 8应用程序直接与存储服务通信,而无需中介。 Given that Windows Azure Table Storage now supports JSON, the data transferred between your app and storage will be very minimal (compared to ATOMPUB XML format which was really bulky). 鉴于Windows Azure表存储现在支持JSON,您的应用程序和存储之间传输的数据将非常小(与ATOMPUB XML格式相比,这非常庞大)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在Windows Store Apps中使用REST服务的最佳方法是什么? - What is the best way to consume REST services in Windows Store Apps? 使用 TableEntity(Azure 表存储)的最佳实践——类的解耦 - Best practice of using TableEntity (Azure table storage) - decoupling of classes Windows Store应用程序Web服务消耗 - Windows Store app webservice consume Windows Phone 8上用于Azure表存储的库是什么? - What library to use for Azure Table Storage on Windows Phone 8? Windows Azure的http重定向的最佳实践 - Best practice for http redirection for Windows Azure Windows Store App的登录屏幕-最好的方法是什么? - Login Screen for Windows Store App - What would be the best approach? 在Windows 8.1应用程序中存储保存的用户帐户的最佳方法是什么 - What is the best method to store saved user accounts in a windows 8.1 app Windows应用商店中下载和上传文件的最佳用途是什么? - What is the best use of download and upload files in a windows store app? Windows Store App中Windows Azure Storage REST API的授权标头 - Authorization Header for Windows Azure Storage REST API from Windows Store App 最佳实践是什么:将数据发布到azure iothub或直接发布到azure tabletorage - What is the best practice : to publish data to azure iothub or directly to azure tablestorage
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM