Search code examples
amazon-web-servicesamazon-sqsamazon-sns

Is it possible to integrate AWS SNS and AWS SQS FIFO queue


With the introduction of FIFO queues in SQS we are guaranteed that SQS messages will be delivered in order.

Now, could there be an out-of-order delivery when I publish messages through SNS? Here's what I'm thinking that could happen:

 _____                       _____                       __________
| App |-- Publish msg 1 --> | SNS | --> Queue msg 2 --> | FIFO SQS | --> Consume 2
|     |-- Publish msg 2 --> |     | --> Queue msg 1 --> |          | --> Consume 1
 -----                       -----                       ----------

Is that scenario possible?


Solution

  • SNS FIFO just launched. SNS can now integrate with SQS FIFO https://aws.amazon.com/blogs/aws/introducing-amazon-sns-fifo-first-in-first-out-pub-sub-messaging/