How to upload large file to azure using typescript - node.js

I was looking for a way to upload large big files to azure data lake store using typescript but end up with no answer, have any one done this? Thanks in advance.
------------EDITED----------------
I found a way to give REST API calls to send data to azure data lake, this is the link i'm following https://learn.microsoft.com/en-us/azure/data-lake-store/data-lake-store-data-operations-rest-api.
It is successful through PostMan, but now the big hurdle i am facing is the way to make these requests in typescript. Have anyone did this?

I am not aware of samples for Typescript. However, if you are trying to upload large files using the REST API, you will need to handle errors, retries, etc in your code. Instead of the REST API, can you use the SDKs that we provide? https://learn.microsoft.com/en-us/azure/data-lake-store/data-lake-store-get-started-java-sdk - This is link to Java SDK. We also have Python SDK and .NET SDK. These SDKs handle a lot of the heavylifting for you that needs to be done when using the REST APIs.
Thanks,
Sachin Sheth
Program Manager, Azure Data Lake.

Related

how to convert azure app insights api response to C# models

so i am able to call app insight's api "https://api.applicationinsights.io/v1/apps/xx/xx/xx" from my C# code.
i can get the json response.
i have this response in json and i want to serialize it into C# objects. do i have to create matching C# classes my self or is there any built in c# models i can use and serialize them?
Not really a direct answer to your question, but instead of consuming REST API directly and doing the conversion/serialization yourself you can simply use Application Insights .Net SDK.
The SDK will do all the necessary conversions for you and give you nice C# objects. The source code for this is also open source and is available here: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/applicationinsights/Microsoft.Azure.ApplicationInsights.Query.
You can take a look here for all the models available to you for direct use here: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/applicationinsights/Microsoft.Azure.ApplicationInsights.Query/src/Generated/Models.
In my opinion, if you choose to use app insights api, that means you didn't add any other sdk into your project, that means there's no any built in models for you.
And if you choose to use sdk instead, here's a sample for it, and per my testing, it only provides QueryResults as the response, here's my testing result, and this is the introduction for preparation. Pls note, you need wait for a while to make the newly added role to take effect. If you can't find the api permission mentioned in the document, you can search for it like what I did.

Upload/Encode files via REST API

I can't seem to find any documentation for uploading and encoding on the microsoft docs for AMS. All I see is live stuff. I do see this on the dotnet SDK, but not for node.js, so I'm trying to find something using the REST API. Does anyone have any microsoft docs or tutorials for uploading and encoding Azure Media Services v3 using the REST API?
Thanks for any help (I'm a newbie here)
For REST see the following: https://learn.microsoft.com/en-us/azure/media-services/latest/stream-files-tutorial-with-rest
For Node.js see the following: https://learn.microsoft.com/en-us/azure/media-services/latest/stream-files-nodejs-quickstart
We are adding more and more Node.js content now that the newer Typescript SDK is out there.
Keep an eye on samples here.
I built a simple upload and encode sample here.
https://github.com/Azure-Samples/media-services-v3-node-tutorials/tree/main/AMSv3Samples/StreamFilesSample
Let me know if that gets you started and if that is enough information to understand the basics.
I would avoid trying to roll your own REST based SDK client, since there is very helpful retry logic built into the official NOde.js/TypeScript SDK for Media Services.

Set read status of getstream.io notification feed via rest api or php sdk

I need to update read/ seen status of getstream notification feed via rest api or php sdk. Would be a great help if someone can help me out on this.
Reason is, I'm using rest api to integrate getstream with a flutter app Im developing. I though it would be easier than using native sdk as Im only using small amount of features
Answering my own questions as this was real tough to find,
https://getstream.io/docs/flat_feeds/?language=php&q=mark_seen#notification_feeds

Nodejs send metrics of how many people are using my app

So i'm designing a new application with Nodejs and packaging into an executable then putting a release in github, I want to be able to monitor how many people are using my executable?
I was thinking about creating an api server and my application just make a call to that API service but I thought there might be something already out there any help?
The easiest way is to connect third party services that do that. The most famous one is Google Analytics
You just need to create your developer account and embed a few lines of tracking code. After that you can see full info about your visitors including their location.

What are the steps for migrating from Parse to Azure Mobile Services?

For those who've already migrated from Parse's Cloud Code to Azure's Mobile Services or those who have a good enough grasp of both to know how this would be done: Can you outline the high-level steps for migrating off of Parse and into Azure?
My concerns:
Parse has an excellent ACL system but I wonder if there are scripts to translate it into Azure's DBs and tables.
I wonder what's a close mock-equivalent of Parse's JS SDK so that I could Simply swap out Parse.. with Azure.. and still have code running seamlessly.
Is this a pipe-dream?
Parse enables you to export files in a JSON format. You will find this feature under the Settings tab for your Parse app.
Since the announcement of the Parse shutdown, Microsoft has posted guidance on migrating from Parse here: https://azure.microsoft.com/en-us/blog/azure-welcomes-parse-developers/
Perhaps a bit too late for the OP but hope it helps.

Resources