Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Configure and optimize Azure Storage accounts, Blob, Queue, Table, and File services
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
references/sdk/azure-storage-queue-py.md
1# Queue Storage — Python SDK Quick Reference23> Condensed from **azure-storage-queue-py**. Full patterns (async client,4> base64 encoding, queue properties, message updates)5> in the **azure-storage-queue-py** plugin skill if installed.67## Install8pip install azure-storage-queue azure-identity910## Quick Start1112> **Auth:** `DefaultAzureCredential` is for local development. See [auth-best-practices.md](../auth-best-practices.md) for production patterns.1314```python15from azure.storage.queue import QueueClient16from azure.identity import DefaultAzureCredential17queue_client = QueueClient("https://<account>.queue.core.windows.net", "myqueue", DefaultAzureCredential())18```1920## Best Practices21- Delete messages after processing to prevent reprocessing22- Set appropriate visibility timeout based on processing time23- Handle `dequeue_count` for poison message detection24- Use async client for high-throughput scenarios25- Use `peek_messages` for monitoring without affecting queue26- Set `time_to_live` to prevent stale messages27- Consider Service Bus for advanced features (sessions, topics)28