Amazon SQS: FIFO Queues


First-In-First-Out (FIFO) queues are fully supported. Any queue name that ends with .fifo is a FIFO queue. Below are some basic examples working with FIFO queues.

Create a FIFO Queue

Amazonsqs sqs = new Amazonsqs(); // ... sqs.CreateQueue("my-queue.fifo");

List FIFO Queues

Amazonsqs sqs = new Amazonsqs(); // ... sqs.OnQueue += (obj, ev) => { if(ev.QueueId.EndsWith(".fifo")) Console.WriteLine(ev.QueueId + " | " + ev.URL); }; sqs.ListQueues();

Create Message in a FIFO Queue

Amazonsqs sqs = new Amazonsqs(); // ... sqs.CreateMessage("my-queue.fifo", "Just a test.");

Delete a Message in a FIFO Queue

Amazonsqs sqs = new Amazonsqs(); // ... sqs.ListMessages("my-queue.fifo"); sqs.DeleteMessage("my-queue.fifo", sqs.Messages[0].ReceiptHandle);

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