Shimmy Weitzhandler
Shimmy Weitzhandler

Reputation: 104821

Fetch and process external data periodically?

I'm developing an ASP.NET website using ASP.NET 5 MVC 6.

I need to read data from an external web-service that exposes a GetTransaction(DateTime startDate) function.
This returns data about the recent transactions that occurred since the requested date.

I want to make in my website a 'service' that sequentially (every x minutes), collects the recent transactions from the web-service and sets up data in my website's data-store accordingly.

What technique is recommended? Should I use Windows Workflow Foundation?

I'm planning to host my website on Windows Azure.

Upvotes: 1

Views: 288

Answers (1)

Luiz
Luiz

Reputation: 542

Shimmy, doing this is very simple with Quartz.Net or Hangfire.

The problem is due to IIS that goes down every some time, by default 20 minutes. If your site have heavy traffic it could not be a problem, but in cloud it could be a big problem since you cannot define witch instance need to run this job.

Maybe you can go with Azure Web Jobs that you configure pointing to an endpoint that does the work or with Parse that has Web Jobs too.

Upvotes: 1

Related Questions