Amazon SQS: Do you support FIFO queues?

First-In-First-Out (FIFO) queues are supported in the SQS component.

Date Entered: 01/20/2017    Last Updated: 01/20/2017

First-In-First-Out (FIFO) queues are supported only in the US West (Oregon) and US East (Ohio) regions, so the URL property must be set to the appropriate endpoint. The HTTP method used when adding FIFO queues must be POST (as opposed to the default GET). This can be set via the HTTPMethod configuration setting. Lastly, FIFO queue names must end with a .fifo postfix. Below is some simple sample code to create a new FIFO queue:

sqs1.Config("HTTPMethod=POST"); sqs1.Config("URL=http://sqs.us-east-2.amazonaws.com"); // US East (Ohio) sqs1.CreateQueue("QueueName.fifo");
FIFO queues support message groups that allow multiple ordered message groups within a single queue. Messages that belong to the same message group are processed in a FIFO manner. Messages in different message groups, however, might be processed out of order.

A message group ID is required to be specified when adding a message to a FIFO queue. This can be set via the MessageGroupId configuration setting.

sqs1.Config("MessageGroupId=messageGroupId"); sqs1.CreateMessage(queueId, "Queue message!");
More information on FIFO queues can be found on Amazon's website here.


We appreciate your feedback.  If you have any questions, comments, or suggestions about this entry please contact our support team at kb@nsoftware.com.