[英]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表存储的最佳做法是什么?
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.