SQS Queue
Using Amazon SQS in DuploCloud
Last updated
Was this helpful?
Using Amazon SQS in DuploCloud
Last updated
Was this helpful?
Amazon Simple Queue Service (Amazon SQS) offers a secure, durable, and available hosted queue to integrate and decouple distributed software systems and components. It provides a generic web service API that you can access using any programming language that AWS SDK supports.
The following Amazon SQS Queue types are supported.
Standard Queues - Standard queues support a nearly unlimited number of API calls per second, per API action (SendMessage
, ReceiveMessage
, or DeleteMessage
). Standard queues support at-least-once message delivery. However, occasionally (because of the highly distributed architecture that allows nearly unlimited throughput), more than one copy of a message might be delivered out of order. Standard queues provide best-effort ordering which ensures that messages are generally delivered in the same order as they're sent.
FIFO Queues - FIFO queues have all the capabilities of a Standard queue, but are designed to enhance messaging between applications when the order of operations and events is critical, or where duplicates cannot be tolerated.
in the DuploCloud portal, navigate to Cloud Services -> App Integration.
Click the SQS tab.
Click Add. The Create a SQS Queue pane displays.
Enter an SQS Queue Name.
Select Standard from the Queue Type list box.
Enter Message Retention Period (in Seconds). For example, 345600 seconds in the example equates to four days.
Enter the Visibility Timeout in seconds. In the example, we specify 30 seconds.
Optionally, select Configure Dead Letter Queue, select the Target SQS dead letter queue, and specify the number of Message process attempts before dead letter queue.
Click Create.
In the DuploCloud portal, navigate to Cloud Services -> App Integration.
Click the SQS tab.
Click Add. The Create a SQS Queue pane displays.
Enter an SQS Queue Name.
Select FIFO from the Queue Type list box.
Enter Message Retention Period (in Seconds). For example, 345600 seconds in the example below equates to four days.
Enter the Visibility Timeout in seconds. In the example below, we specify 30 seconds.
Optionally, select Content-based deduplication. Selecting this option indicates that message deduplication IDs are used to ensure duplicate messages are not sent. If a message deduplication ID is sent successfully, any messages sent with the same message ID aren't delivered within five minutes.
Select either Queue or Message group from the Deduplication scope list box:
Queue: Deduplication processing occurs at the Queue level. The FIFO throughput limit is automatically set to Per queue.
Message group: Deduplication processing occurs at the Message group level, using Message group IDs. In the FIFO throughput limit list box, select Per queue or Per message group ID to specify whether the FIFO Throughput Quota applies to the entire FIFO Queue or individually to each Message Group.
Optionally, select Configure Dead Letter Queue, select the Target SQS dead letter queue, and specify the number of Message process attempts before dead letter queue.
Click Create.
You can configure a Dead Letter Queue (DLQ) and a redrive policy to manage messages that cannot be processed successfully. A DLQ stores failed messages, preventing them from blocking the normal operation of the queue. The redrive policy allows you to define how many times a message can be retried before it is moved to the DLQ. This feature enhances the reliability and manageability of your message processing system.
You can configure a Dead Letter Queue and redrive policy either when creating a new SQS or SQS FIFO queue or by editing an existing queue:
To configure DLQ and redrive policy during queue creation, follow the instructions above to create an SQS queue or SQS FIFO queue. Select Configure Dead Letter Queue, select the Target SQS dead letter queue, and specify the number of Message process attempts before dead letter queue.
To edit an existing queue and configure the DLQ and redrive policy, use the procedure provided below.
Select the name of the Tenant that contains the SQS or SQS FIFO queue from the Tenant list box.
Navigate to Cloud Services -> App Integration.
Select the SQS tab.
Select the name of the SQS or SQS FIFO queue from the NAME column.
Click on the Actions menu, and select Edit. The Edit SQS Queue or Edit SQS FIFO Queue pane displays.
Enable Configure Dead Letter Queue.
Select the Target SQS dead letter queue.
Specify the number of Message process attempts before dead letter queue.
Click Update. The DQL and redrive settings for the SQS or SQS FIFO queue are configured.