1
votes

I'm migrating to "App Service for Linux". Unfortunately, it doesn't support WebJobs. And here it says it won't. It suggests using Azure Functions instead.

I have a continuous application with no triggers. It should be always running, something like this:

while (true)
{
    // The logic
}

How should I utilize Azure Functions for such an application?

1
It is impossible to give any specific implementation details without knowing more about your application. But if your app that is "always running" has a trigger to execute its functionality, Azure Functions can easily be set up to run that way such as on an HTTPS request, timer, etc. Check this out for more info: docs.microsoft.com/en-us/azure/azure-functions/…samyap

1 Answers

1
votes

Maybe Azure Functions may not be the right tool for your scenario, it's best used for code that runs after some event, not for always running code.

Take a look on Hangfire, it can be executed on Linux and allows your scenario: https://www.hangfire.io/