Configuring queue parameters (console) - Amazon Simple Queue Service

Configuring queue parameters (console)

When you create or edit a queue, you can configure the following parameters:

  • Visibility timeout - The length of time that a message received from a queue (by one consumer) won't be visible to the other message consumers. For more information, see Visibility timeout.


    Using the console to configure the visibility timeout configures the timeout value for all of the messages in the queue. To configure the timeout for single or multiple messages, you must use one of the AWS SDKs.

  • Message retention period - The amount of time that Amazon SQS retains messages that remain in the queue. By default, the queue retains messages for four days. You can configure a queue to retain messages for up to 14 days. For more information, see Message retention period.

  • Delivery delay - The amount of time that Amazon SQS will delay before delivering a message that is added to the queue. For more information, see Delivery delay.

  • Maximum message size - The maximum message size for this queue. For more information, see Maximum message size.

  • Receive message wait time - The maximum amount of time that Amazon SQS waits for messages to become available after the queue gets a receive request. For more information, see Amazon SQS short and long polling.

  • Content-based deduplication - Amazon SQS can automatically create deduplication IDs, based on the body of the message. For more information, see FIFO queues.

To configure queue parameters for an existing queue (console)

  1. Open the Amazon SQS console at

  2. In the navigation pane, choose Queues. Choose a queue and choose Edit.

  3. Scroll to the Configuration section.

  4. For Visibility timeout , enter the duration and units. The range is 0 seconds to 12 hours. The default value is 30 seconds.

  5. For Message retention period, enter the duration and units. The range is 1 minute to 14 days. The default value is 4 days.

  6. For Delivery delay, enter the duration and units. The range is 0 seconds to 15 minutes. The default value is 0 seconds.

  7. For Maximum message size, enter a value. The range is 1 byte to 256 KB. The default value is 256 KB.

  8. For a standard queue, enter a value for Receive message wait time. The range is 0 to 20 seconds. The default value is 0 seconds, which sets short polling. Any non-zero value sets long polling.

  9. For a FIFO queue, choose Content-based deduplication to enable content-based deduplication. The default setting is disabled.

  10. When you finish configuring the queue parameters, choose Save.