AlgoViz

Azure Functions

medium 31 min

Azure Functions runs small pieces of code when something happens: a request, a message, a timer, a stored file.

Where it shows up

The same pattern appears across everyday software.

  • Clean-up on a timer

    Microsoft's overview lists timed data clean-up first among its scenarios: a timer trigger and a storage binding.

  • Responding to database changes

    A Cosmos DB trigger receives changed documents and updates a search index or a second view.

  • Reliable message systems

    Queue Storage, Service Bus and Event Hubs triggers process messages, with poison or dead-letter handling.

  • Serverless workflows

    Durable Functions coordinates steps such as an approval that waits for days without an instance running.

  • Functions in containers

    The same programming model runs on Azure Container Apps beside other containers, including with GPUs.

  • Durable Task outside Functions

    The Durable Task SDKs use the same orchestration ideas in ordinary programs, backed by the managed Durable Task Scheduler.