I have an application that fetches data from a remote server and sends the data to my server (ASP.NET 6). I want the application to run once every 24 hours, and ideally at the same time every day.
My initial thought was to host it using Azure App Service and keep the app running, but the free tier doesn’t support the Always On Feature.
Assuming I host my app using Azure App Service, is it possible to invoke it using an Azure Function that would ping the app service once every 24 hours, allowing it to run?
What is the best service or combination of free services that I can use to achieve that?
Note: I am new to Azure
2
Answers
What I ended up doing is splitting the app into smaller azure functions, each with its own purpose. I also created an azure logic app that handles the rest of the logic and calls the azure functions when required.
Your situation totally suit for Azure Function. There are two options
Time Tigger Azure Function
:- logic write this azure function and Schedule for every 24.Durable Azure Function
:-Durable one use for complex logicClick Here For More Details for Azure Function
Move your all logic fro app service to azure function then host and schedule azure function.
Please let me know if you need further assistance.