29.07.2020 Views

sqs-dg-2009-02-01

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Amazon Simple Queue Service Developer Guide

How SQS Queues Work

How SQS Queues Work

Topics

• About SQS Queues (p. 4)

• Properties of Distributed Queues (p. 5)

• Queue and Message Identifiers (p. 6)

• Resources Required to Process Messages (p. 7)

• Visibility Timeout (p. 8)

• Message Lifecycle (p. 9)

This section describes the basic properties of Amazon SQS queues, identifiers for queues and messages,

how you determine the general size of the queue, and how you manage the messages in a queue.

About SQS Queues

You can have as many queues with as many messages as you like in the Amazon SQS system. A queue

can be empty if you haven't sent any messages to it or if you have deleted all the messages from it.

You assign a name to each of your queues (for more information, see Queue URLs (p. 6)). You can get

a list of all your queues or a subset of your queues that share the same initial characters in their names

(for example, you could get a list of all your queues whose names start with "T3").

You can delete a queue at any time, whether it is empty or not. Be aware, however, that queues retain

messages for a set period of time. By default, a queue retains messages for four days. However, you

can configure a queue to retain messages for up to 14 days after the message has been sent.

We reserve the right to delete a queue without notification if one of the following actions hasn't been

performed on it for 30 consecutive days: SendMessage, ReceiveMessage, DeleteMessage,

GetQueueAttributes, SetQueueAttributes, AddPermission, and RemovePermission.

Important

It is a violation of the intended use of Amazon SQS if you repeatedly create queues and then

leave them inactive.

API Version 2009-02-01

4

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!