什麼是 Azure 佇列?What are Azure Queues?

Azure 佇列儲存體是一項儲存大量訊息的服務,全球任何地方都可利用 HTTP 或 HTTPS 並透過驗證的呼叫來存取這些訊息。Azure Queue storage is a service for storing large numbers of messages that can be accessed from anywhere in the world via authenticated calls using HTTP or HTTPS. 單一佇列訊息的大小上限為 64 KB,而一個佇列可以包含數百萬個訊息,以儲存體帳戶的總容量為限。A single queue message can be up to 64 KB in size, and a queue can contain millions of messages, up to the total capacity limit of a storage account.

常見用途Common uses

佇列儲存體的一般用途包括:Common uses of Queue storage include:

  • 建立積存的工作供非同步處理Creating a backlog of work to process asynchronously
  • 將訊息從 Azure Web 角色傳遞至 Azure 背景工作角色Passing messages from an Azure web role to an Azure worker role

佇列服務概念Queue service concepts

佇列服務包含下列元件:The Queue service contains the following components:

佇列概念

  • URL 格式: 可利用下列 URL 格式來定址佇列:URL format: Queues are addressable using the following URL format:
    https://<storage account>.queue.core.windows.net/<queue>https://<storage account>.queue.core.windows.net/<queue>

    下列 URL 可定址圖中的佇列:The following URL addresses a queue in the diagram:

    https://myaccount.queue.core.windows.net/images-to-download

  • 儲存體帳戶: 所有對 Azure 儲存體的存取都是透過儲存體帳戶進行。Storage account: All access to Azure Storage is done through a storage account. 如需關於儲存體帳戶容量的詳細資訊,請參閱< Azure 儲存體延展性和效能目標 >(英文)。See Azure Storage Scalability and Performance Targets for details about storage account capacity.

  • 佇列: 佇列包含一組訊息。Queue: A queue contains a set of messages. 所有訊息都必須放在佇列中。All messages must be in a queue. 請注意,佇列名稱必須是小寫。Note that the queue name must be all lowercase. 如需為佇列命名的詳細資訊,請參閱 為佇列和中繼資料命名For information on naming queues, see Naming Queues and Metadata.

  • 訊息: 大小上限為 64 KB 的訊息 (任何格式)。Message: A message, in any format, of up to 64 KB. 訊息可保留在佇列中的時間上限為 7 天。The maximum time that a message can remain in the queue is seven days.

後續步驟Next steps