Configure Queues

Configure Amazon SQS queues, access, handlers, metrics, and retention.

Queue components create Amazon SQS queues for asynchronous work and event-driven integrations.

Create a Queue

  1. Open an infrastructure configuration and select Add component > Queue.
  2. Enter a descriptive name.
  3. Set the visibility timeout in minutes. It should exceed the normal processing time for one message.
  4. Set the message retention period.
  5. Enable FIFO when messages must be processed in order within a message group. Optionally enable content-based deduplication.
  6. Select quick metrics and any additional operational metrics.
  7. Grant read or write access to the services that require it.
  8. Add handlers or alternate routes when the workflow needs them.
  9. Choose Keep or Delete for each environment and save.

Visibility Timeout

After a consumer receives a message, SQS hides it for the visibility timeout. If processing does not complete and delete the message before that period ends, another consumer may receive it. Consumers must therefore tolerate duplicate delivery.

FIFO Queues

FIFO queues preserve order and support deduplication within each message group. Producers must send a MessageGroupId. Enable content-based deduplication when you do not want to supply an explicit deduplication id.

Changing a queue between standard and FIFO after deploy replaces the AWS queue. In-flight messages on the previous queue are not retained.

Connect Producers and Consumers

  • Producers generally need write access.
  • Consumers need read access and must delete successfully processed messages.
  • Use the queue-derived URL or name in service environment variables.

Grant only the required action to each service. Storage components can also be granted queue write access for configured event flows.

Removal Policy

Use Keep when pending messages must survive an infrastructure change. Select Delete only when losing the queue and its remaining messages is acceptable.