Skip to content

Queue

Design queue-driven background processing with retries, dead-letter strategy, and idempotency guards.

flowchart TD
    A[Trigger] --> B[Function]
    B --> C[Binding or SDK]
    C --> D[Azure service]

Topic/Command Groups

Queue trigger + output

[Function("QueueWorker")]
[QueueOutput("completed-items", Connection = "AzureWebJobsStorage")]
public string QueueWorker(
    [QueueTrigger("work-items", Connection = "AzureWebJobsStorage")] string message)
{
    return $"done:{message}";
}

Queue host settings

{
  "version": "2.0",
  "extensions": {
    "queues": {
      "batchSize": 16,
      "maxDequeueCount": 5
    }
  }
}

Review Matrix

Review area Page-specific check
Scope Confirm the guidance applies to Queue.
Source basis Validate the recommendation against the Microsoft Learn sources in this page.
Evidence Capture command output, portal state, metrics, logs, or screenshots before treating the result as proven.

See Also

Sources