简体   繁体   中英

Are AWS SQS queues isolated from each other?

Say that I have two separate services, A and B, with SQS queues that are both subscribed to SNS topic "topic-foo". Then I publish a message m1 to the SNS topic "topic-foo".

If the SQS queue owned by service A (sqs-A) sees message m1 and processes it (ie pops it off the queue and processes the message so that it's no longer on sqs-A), will I still be guaranteed that the separate SQS queue owned by service B (sqs-B) will always be able to see and process message m1? (in other words, does AWS SNS publishing guarantee multiple delivery to SQS queues and isolation of separate SQS queue processing?)

In your situation, you have two SQS queues, each one is subscribed to an SNS topic.

In this case, when you send a message to the SNS topic, an item is added to each of the SQS queues. The two queues are distinct and independent, so processing the item in one queue will not affect the item in the other queue.

This has nothing to do with SNS and is purely because your two SQS queues are two separate SQS queues. The fact that SNS is publishing to them doesn't change how the queues behave.

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