Which Azure compute option is best suited for running a short-lived, stateless background job that only executes for a few seconds in response to a queue message?

Microsoft Azure Fundamentals Medium

Microsoft Azure Fundamentals — Medium

Which Azure compute option is best suited for running a short-lived, stateless background job that only executes for a few seconds in response to a queue message?

Key points

  • Azure Functions (Consumption plan) scales automatically based on demand
  • Azure Functions only charges for actual execution time
  • Azure Virtual Machine and Azure Kubernetes Service are better for longer tasks
  • Azure App Service WebJob (always-on) may result in unnecessary costs

Ready to go further?

Related questions