定期获取和处理外部数据?

Fetch and process external data periodically?

我正在使用 ASP.NET 5 MVC 6 开发一个 ASP.NET 网站。

我需要从公开 GetTransaction(DateTime startDate) 函数的外部 Web 服务读取数据。
此 returns 有关自请求日期以来发生的最近交易的数据。

我想在我的网站上制作一个 'service' 顺序(每 x 分钟),从网络服务收集最近的交易并相应地在我网站的数据存储中设置数据.

推荐什么技术? 我应该使用 Windows Workflow Foundation 吗?

我打算在 Windows Azure 上托管我的网站。

Shimmy,用Quartz.Net或Hangfire做这个很简单。

问题是由于 IIS 每隔一段时间(默认为 20 分钟)关闭一次。如果您的网站流量很大,那可能不是问题,但在云中,这可能是个大问题,因为您无法定义 实例需要 运行 这项工作。

也许你可以选择 Azure Web Jobs that you configure pointing to an endpoint that does the work or with Parse,它也有 Web Jobs。