如何使用逻辑应用与大文件的 azure 函数从 blob 存储上传文件 [英] how can I upload a file from blob storage using logic apps vs azure functions for large files

查看:19
本文介绍了如何使用逻辑应用与大文件的 azure 函数从 blob 存储上传文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要使用逻辑应用将 Azure 文件存储中的一些 csv 文件加载到 blob 存储.在逻辑应用程序中使用什么触发器来访问 Azure 中的文件存储?

这些文件非常大,高达 1 GB,我希望能够将它们发送到 ftp 服务器或用于上传的 restful 端点(使用示例 PUT 动词).

逻辑应用能够做到这一点,还是使用 Azure 函数会更好?任何指向我正确方向的资源或帮助都会很有用.

解决方案

对于您可以在逻辑应用中使用哪个触发器的问题,这取决于您的要求.如果您希望定期触发逻辑应用,可以添加

Azure Blob 存储"连接器也有一些一般限制,如下所示:

FTP 连接器的限制如下所示:

根据上面两张截图,如果你的 1 GB 文件是很多小文件(list blob 的数量不能超过 5000),你的需求可以在逻辑应用中实现.

如果你想将文件从azure文件存储加载到blob存储(你的文件不超过上面的限制),你可以参考下面的逻辑应用:

如果你想将文件从azure blob存储加载到ftp(你的文件不超过上面的限制),你可以参考下面的逻辑应用:

对了,我觉得有必要提一下逻辑app的价格.它按动作执行次数计费,我们可以通过这个 链接.所以如果你有太多的文件,会导致你的逻辑应用执行太多的动作,你需要注意逻辑应用和天蓝色函数之间的成本.也许函数会比逻辑应用便宜.

I need to use logic app to load some csv files in a files storage in Azure to a blob storage. what trigger to use in logic app to access the files storage in Azure?

The files are quite large up to 1 GB and I'd like to be able to send them to an ftp server or to a restful endpoint for upload (using example PUT verb).

Is logic apps able to do this or would it be better to use Azure functions? Any resources or help pointing me in right direction would be useful.

解决方案

For your question about which trigger you can use in logic app, it depends on your requirements. If you want the logic app be triggered periodically, you can add a "Recurrence" schedule. If you want to trigger it manually, you can add a request trigger, then you can trigger the logic app by calling the request url.

For your concern about if logic app can do this, I'm a little confused about what you want to do by logic app, you want to load csv files from azure file storage to blob storage in logic app? Or load csv files from blob storage to ftp? Both of them can be implemented by logic app if your files don't exceed its limits.

The "Azure File Storage" connector has general limits below:

The "Azure Blob Storage" connector also has some general limits, shown as below:

Ftp connector's limits are shown as below:

According to the two screenshots above, if your 1 GB files are lots of small files(the number of list blobs can't exceed 5000), your requirements can be implemented in logic app.

If you want to load files from azure file storage to blob storage(your files don't exceed the limits above), you can refer to the logic app below:

If you want to load files from azure blob storage to ftp(your files don't exceed the limits above), you can refer to the logic app below:

By the way, I think it is necessary to mention the price of logic app. It is billed by number of actions' execution, we can know more information about logic app price by this link. So if you have too many files and it will lead to too many action executions in you logic app, you need to notice the cost between logic app and azure function. Maybe function will be cheaper than logic app.

这篇关于如何使用逻辑应用与大文件的 azure 函数从 blob 存储上传文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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