question

PythonLearner avatar image
0 Votes"
PythonLearner asked PythonLearner edited

Durable Function in Azure Function

I am trying to figure out requirement for my project.

Based on feedback from the community, if it takes more than 230 seconds, it is better to use Durable function than using a regular HTTP Trigger.

My requirement is just pulling data from other third party API using HTTP, store data inside Azure SQL and use the data for reporting (Power BI) at the end.

Honestly, I am not sure how long it would take to pull data, but I guess I would just start with a safer (Durable function) approach.

So, I thought diving into Durable would be a better option. Is it?

From Youtube that I watched, it appears that it is more like "Http-based Async Long-running APIs" from scenarios of Durable function.

147561-image.png
Am I on the right approach?




Thank you.

azure-functions
image.png (146.7 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

MikeUrnun avatar image
0 Votes"
MikeUrnun answered

Hello @KingJava - You're absolutely on the right approach. Durable Functions is for long-running, stateful workflows and you can utilize the Function Chaining pattern to organize the workflow where each Activity can be: Pull data from API, load data to SQL, etc.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

PythonLearner avatar image
0 Votes"
PythonLearner answered PythonLearner edited

@MikeUrnun Thanks for your response.
I am actually still very lost on my architecture.

So, basically, I am trying to pull data from a third party thru web service only once day.

After discussing with my manager, I think I am currently leaning toward using Timer Trigger (due to smaller size of data) instead of using Durable, but if the coding is not too complicated, maybe using durable is not a bad idea.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.