在Azure的文件COM pression /加密工作 [英] Working with file compression/encryption in Azure

查看:124
本文介绍了在Azure的文件COM pression /加密工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

时的Azure为接收各种加密和/或COM pressed文件,提取它们的方法适当/可行的平台,并操纵他们?

Is Azure an appropriate/viable platform for a process that receives various encrypted and/or compressed files, extracts them, and manipulates them?

例如,我现在有一个使用SSIS如上所述平面文件并加载它们下载到数据库的过程。那么新的文件解压缩和gzip压缩或加密的PGP和FTP'd了。

For example, I currently have a process that uses SSIS to download flat files as described above and loads them to a database. New files are then extracted and gzipped or PGP encrypted and FTP'd out.

如果我是这个过程中迁移到Azure的+ SQL Azure的,什么是去最好的方法?我有一个前端,允许文件被张贴到Blob存储 - 我在哪里何去何从? VM角色?工人的角色?

If I was to migrate this process to Azure + SQL Azure, what is the best way to go about this? I have a front end that allows files to be posted to blob storage - where do I go from here? VM role? Worker role?

推荐答案

我认为,Azure是非常适合这种情况。

I think that Azure is a good fit for this situation.

当你已经有了一个前端,我会做给它一个小的改动,这样,当它已经完成存储在Blob存储文件写入的消息与路径中的队列中要处理的文件和信息有关如何,它已经加密的(如果你有这样的信息,这将使得后期处理更容易)。

As you already have a front end, I would make a minor change to it so that when it has finished storing the file in blob storage it writes a message to a queue with the the path to the file to be processed and information about how it's been encrypted (if you have this information and it would make latter processing easier).

我会写一个类,它能够监视此队列传入的工作。它得到消息从队列(你要确保可见性超时,你下车时队列中的消息就足以使其到期之前就能完成这一处理),这是否你已经指定的工作集,然后删除队列中的消息说,它的完成那件的工作。

I would write a class that is able to monitors this queue for incoming work. It gets the message off the queue (you'll want to ensure that the visibility timeout that you set when you get the message off the queue is sufficient so that you can finish this processing before it expires), does the work that you've already specified, then deletes the queue message to say that it's finished that piece of work.

在一个基本设置,编写使用上述类辅助角色。如果你能同时​​在一个实例来处理多个文件,有工作者角色上启动自己的线程创建该类的多个实例。

In a basic setup, write a worker role that uses the class above. If you're able to process multiple files at once on an instance, have the worker role create multiple instances of this class on its own thread on startup.

如果您需要更多的处理能力,部署更多的工人实例。

If you need more processing power, deploy more worker instances.

这篇关于在Azure的文件COM pression /加密工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆