Reputation: 687
I am trying to understand the Azure stack, still learning a lot. But i can't understand the logic behind the Azure Data Lake (gen2 storage account). I want to save forms from a website (created in PHP) as a json file in Data Lake.
I got the JSON file ready to upload but how can i upload this to Azure Data Lake? Or would i have to take a other route, Data Factory for example? I am trying to understand how someone would connect a external web application (created in PHP) to a Data Lake storage.
Also interested if it would be better to gather al the form data of one day and then push it to Data Lake instead of pushing each form separately.
I want to accomplish this:
Webpage --> Form posted --> Data Lake (Form data as Json file)
--> Local MySQL database (working already)
Upvotes: 0
Views: 1966
Reputation: 16148
If there is and Data Lake Store SDK for your language available, you can simply use that to write files directly from your code. See here for an example for C#.
Since there is currently no SDK for PHP, the alternative is to use the Blob Storage SDK for PHP. Since it is still the same storage, you can upload the file using the blob interface and still access it using the Data Lake interface.
Upvotes: 1