Fetching files from FTP server via Azure webjobs

2019-09-14 20:17发布

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条回答
虎瘦雄心在
2楼-- · 2019-09-14 20:28

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_app_put_message

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.

查看更多
登录 后发表回答