Reputation: 1292
I am trying to determine which Azure Function I should use (between Http Trigger vs. Timer Trigger).
I have SDK which has logic to pull data from a third party API (using Web Service).
Since I only need to pull data once a day, I think Timer Trigger would work.
I am trying to also move data from Azure Function to Azure Data Factory (ADF) for next portion of my project.
My question is, what are best cases to use Http Trigger?
I learned that Http Trigger has a webhook where it automatically triggers ADF (Azure Data Factory).
I have read and watched YouTube videos about Http Trigger, but they did not explain about "When" to use.
It mentioned about "Http Request" which I believe is something made by a client, but I, as a client, do not know when data gets updated, correct?
I am not sure how Http Trigger gets triggered.
Does Http Trigger trigger when data from source changes?
If that is the case, Http Trigger and ADF can run anytime throughout the day, correct?
Thank you.
Upvotes: 2
Views: 1315
Reputation: 1402
In my work, I use Http Trigger when the final user or an API will trigger the action, for example when the user click on a button in the front, it will trigger the azure function that do a certain action.
No, Http trigger will be triggered only when the the http request consumed/called .
Upvotes: 2