Fetching files from FTP server via Azure webjobs

扶醉桌前 提交于 2019-12-25 09:09:50

问题


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.

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.

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..


回答1:


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:

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.



来源:https://stackoverflow.com/questions/41888542/fetching-files-from-ftp-server-via-azure-webjobs

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!