How Amazon SQS Queues Work
This section describes the types of Amazon SQS queues and their basic properties. It also describes the identifiers of queues and messages, and various queue and message management workflows.
- Basic Prerequisites
- Standard Queues
- FIFO (First-In-First-Out) Queues
- Queue and Message Identifiers
- Resources Required to Process Messages
- Visibility Timeout
- Message Lifecycle
- Using Amazon SQS Dead Letter Queues
- Using Amazon SQS Message Attributes
- Amazon SQS Long Polling
- Amazon SQS Delay Queues
- Amazon SQS Message Timers
- Managing Large Amazon SQS Messages Using Amazon S3
- Using JMS with Amazon SQS
The following basic prerequisites will help you get started with Amazon SQS queues:
You must assign a name to each of your queues. 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 can get a list of all your queues whose names start with
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 can delete a queue at any time, whether it's empty or not. 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 is sent.
Unless your application specifically requires repeatedly creating queues and leaving them inactive or storing large amounts of data in your queue, consider using Amazon S3 for storing your data.
The following table lists the API actions you can use to work with queues.