👑 Premium Sign in Sign up

AZ05 · Azure cloud engineering

Functions Event-Driven Orders

A queue-triggered function processes orders, retries failures and moves poison messages aside.

📶 L300⏱ 55 min🧪 Live lab

🎯 You will learn to

  • Use queue triggers
  • Retry safely
  • Make handlers idempotent

🧪 Live environment

Runs entirely in your browser: nothing is installed, no real cloud account is used and your code is never sent to our server.

Loading the lab…

✅ Steps & checkpoints

🗺️ Queue-triggered Function

The Function host polls the storage queue; failures retry and after five attempts the message goes to the poison queue.

Queue-triggered FunctionThe Function host polls the storage queue; failures retry and after five attempts the message goes to the poison queue.OrderwebsiteStoragequeueAzureFunctionCosmos /SQLorders-poisonApplicationInsightstrigger5 failurestracesApp / UIQueue / eventsComputeData storeOperations

The 2D diagram shows the exact flow, ports and trust boundaries. The 3D scene is a concept view of the same parts; packets travel along the same arrows.

🤔 Think about it

Why must a retried handler not charge a customer twice?

🛡️ Safety & cost

Mock mode by default. Real Azure practice is opt-in: use your own subscription, a budget alert and the cleanup steps.

🧹 Cleanup

Delete the lab resource group (az group delete) and check Cost Management the next day.

📚 Reference documents

Official sources, checked on 5 Nov 2026. Cloud services change often; check the official page before relying on a feature. All references