简体   繁体   中英

How to subscribe an SQS FIFO queue to a standard SNS topic?

Several different questions have been asked on how to subscribe an SQS FIFO queue to an SNS topic and their answers were " it's impossible " or, more recently, " it's now possible using an SNS FIFO topic ".

This question is a bit more specific in its premises:

  • Using an SNS FIFO topic is not a viable option, it has to be a "standard" topic
  • Using a "standard" SQS queue is not a viable option, it has to be a FIFO queue

As of time of writing, AWS does not support a direct subscription.

How to achieve it in the next best way possible? Using an AWS Lambda? EventBridge?

As you said, this is currently not possible through direct subscription. A work around to achieve that is to subscribe a lambda to the standard topic and have that lambda sending to the FIFO Queue. It's not ideal since it adds an extra hop, but it does unblock your use-case

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM