通过Azure WebJob从FTP服务器获取文件 [英] Fetching files from FTP server via Azure webjobs

查看:114
本文介绍了通过Azure WebJob从FTP服务器获取文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近,我遇到了从FTP服务器读取.csv文件并将其提供给外部系统进行处理的一项要求. FTP服务器上的文件可用后,系统应立即进行读取.

Recently I came across one of the requirements to read .csv files from FTP server and made them available to external system for processing. The system should read as soon as file is available on FTP server.

我想到了解决方案, 1. FTP服务器-> 2.自定义Windows服务用作轮询器,以了解是否有新文件出现-> 3.将消息放入队列-> 4.外部系统作为订户排队.

I thought about the solution, 1. FTP Server --> 2. Custom Windows service used as poller to know whether a new file has came--> 3. Put a message in a queue --> 4. external system as subscriber to queue.

现在我正在考虑是否可以在此处使用Azure webjobs/功能代替自定义Windows服务,因为外部系统已经在Azure中.

Now I am thinking that whether Azure webjobs/functions can be used here in place of custom windows service as external system is already in Azure.

需要/期望有关配置设置的任何说明.

Any explanation with configuration setting are needed/expected..

推荐答案

可以. WebJobs可以连续运行,也可以按类似cron的时间表进行运行.编写控制台应用程序而不是Windows服务.话虽这么说,但是有一种实现工作流程的简便方法- 逻辑应用 :

Sure you can. WebJobs can either run continuously or on a cron-like schedule. Write a Console Application instead of a Windows Service. That being said, there's an easier way to implement your workflow - Logic Apps:

如果您需要在Logic Apps中无法实现的步骤,只需使用 HTTP连接器,然后调用

If you need a step that you can't implement in Logic Apps, just use the HTTP connector and call an Azure Function or check this out for a more elaborate flow.

这篇关于通过Azure WebJob从FTP服务器获取文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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