Amazon Simple Queue Service
Developer Guide

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

The following basic prerequisites 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 T3.

  • 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.

To do this... Use this action

Create a queue


Get the URL of an existing queue


List your queues


Delete a queue


On this page: