0
votes

Using Azure Functions can I return an accepted http 202 response to the caller (if the request is valid), before then running a longer function asynchronously, without needing to use a durable function in the middle?

The use case for this is for a custom handler function described here.

I want to run a PHP job which may take longer than 30 seconds (as much as 3-4 minutes).

enter image description here

1

1 Answers

0
votes

Apart from using durable functions, you could have a simple function that takes the event data and queues a message for another function to pick up and process.

You could even configure Event Grid to send the event to a queue directly as well.

UPDATE: Another option is to package the PHP script in a container and run it using Azure Container Instances. You could even leverage Azure Logic Apps and the Azure Container Instance Connector to start the container, all without writing any code.