Getting started with Amazon SQS FIFO queues - Amazon Simple Queue Service

Getting started with Amazon SQS FIFO queues

FIFO (First-In-First-Out) queues have all the capabilities of the standard queues, but are designed to enhance messaging between applications when the order of operations and events is critical, or where duplicates can't be tolerated.

Examples of situations where you might use FIFO queues include the following:

  • E-commerce order management system where order is critical

  • Integrating with a third-party systems where events need to be processed in order

  • Processing user-entered inputs in the order entered

  • Communications and networking – Sending and receiving data and information in the same order

  • Computer systems – Making sure that user-entered commands are run in the right order

  • Educational institutes – Preventing a student from enrolling in a course before registering for an account

  • Online ticketing system – Where tickets are distributed on a first come first serve basis

Note

FIFO queues also provide exactly-once processing, but have a limited number of transactions per second (TPS). You can use Amazon SQS high throughput mode with your FIFO queue to increase your transaction limit. For details on using high throughput mode, see High throughput for FIFO queues. For information on throughput quotas, see Quotas related to messages.

Amazon SQS FIFO queues are available in all Regions where Amazon SQS is available.

For more on using FIFO queues with complex ordering, see Solving Complex Ordering Challenges with Amazon SQS FIFO Queues.

For information about how to create and configure queues using the Amazon SQS console, see Create a queue (console). For Java examples, see Amazon SQS Java SDK examples.

For best practices of working with FIFO queues, see Additional recommendations for Amazon SQS FIFO queues and Recommendations for Amazon SQS standard and FIFO queues.