简体   繁体   English

从REST API填充SQL Azure

[英]Populate SQL Azure from REST API

I'm a newbie in this field, but my goal is to import data from a 3rd party API to my SQL Server hosted in Azure. 我是该领域的新手,但我的目标是将数据从第三方API导入到Azure中托管的SQL Server中。 To access the data from the API and clean it I'm using an R script. 要使用API​​访问数据并清理数据,我使用了R脚本。

My idea would be to schedule a job on a Virtual Machine that runs the R script and prepares the data so it can be imported to SQL Server and automate this process too. 我的想法是在运行R脚本的虚拟机上计划作业并准备数据,以便可以将其导入SQL Server并自动执行此过程。

Is this a good approach? 这是一个好方法吗? Since Visual Studio "accepts" R would it be possible to automate everything there? 由于Visual Studio“接受” R,是否可以自动化那里的所有内容? Any direction is much appreciated. 任何方向都非常感谢。

A more industry standard approach would be to use Azure Data Factory to operationalize these types of processes: https://azure.microsoft.com/en-us/services/data-factory/ 一种更行业标准的方法是使用Azure数据工厂来实现以下类型的过程: https : //azure.microsoft.com/zh-cn/services/data-factory/

You can import data and merge it from any where, schedule the job, and integrate custom code including R and Azure Machine Learning. 您可以从任何位置导入数据并将其合并,安排作业,并集成自定义代码(包括R和Azure机器学习)。 Its built for exactly this sort of workload. 它专为此类工作负载而构建。

Not sure why this is getting down-voted, but I'll provide a few more methods that are fairly common using these same tools: 1. Azure Batch 2. U-SQL 3. Hadoop (with R on top) 不知道为什么这会被否决,但是我将提供一些使用这些相同工具的相当普遍的方法:1. Azure Batch 2. U-SQL 3. Hadoop(R放在最前面)

DataFactory can be scheduled and integrated into the fully ecosystem, hence why I use this instead of a VM. 可以调度DataFactory并将其集成到完整的生态系统中,因此为什么我使用它代替VM。 You could use a VM, but then you are writing a lot more code. 您可以使用VM,但随后编写了更多代码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM