Soru

Zorluk: KolayImplement Azure Queue Storage Solutions

A developer is designing an integration solution that buffers messages using Azure Queue Storage. The developer expects some message payloads to occasionally exceed the standard size limit of a single queue message.

What is the maximum message size supported for a single message in Azure Queue Storage, and how should payloads exceeding this limit be handled?

  1. 64 KB64\text{ KB}; store the payload in Azure Blob Storage and place the blob reference URI in the queue message.Cevap
  2. B
    256 KB256\text{ KB}; store the payload in Azure Service Bus and place the Service Bus message ID in the queue message.
  3. C
    1 MB1\text{ MB}; split the payload across multiple queue messages and use a correlation ID to reassemble them.
  4. D
    64 KB64\text{ KB}; generate a Shared Access Signature (SAS) token with write permissions to temporarily bypass the limit.

Cevap

The maximum message size limit for Azure Queue Storage is 64 KB64\text{ KB}. Payloads exceeding this limit should be stored in Azure Blob Storage, and the reference URI to the blob should be placed in the queue message.
The correct answer specifies that the maximum message size limit for Azure Queue Storage is 64 KB64\text{ KB}. To handle payloads exceeding this limit, the developer should implement the claim-check pattern. This involves uploading the large payload to Azure Blob Storage and storing only the resulting blob URI in the queue message. The consumer can then read the URI from the queue and download the payload directly from Blob Storage.

Adım Adım Çözüm

1
Determine the maximum size limit for Azure Queue Storage messages.
The limit is identified as 64 KB64\text{ KB}.
Azure Queue Storage restricts individual message payloads to a maximum of 64 KB64\text{ KB}.
2
Select the appropriate storage service for large payloads.
Azure Blob Storage is selected to store the large message payload.
Blob Storage is optimized for unstructured data and large files, making it the ideal store for payloads that exceed the queue limit.
3
Link the queue message to the stored payload.
The queue message is written to contain only the URI pointing to the blob containing the actual payload.
This implements the claim-check pattern, ensuring the queue message remains small and lightweight while still providing access to the full payload.

Anahtar Kavram

Azure Queue Storage message size limit and the claim-check pattern using Azure Blob Storage.
Bu soruyu puanla