News for hackers. Stuff that matters.
Re:AWS SNS vs. SQS – Main Differences by andrew_ on Friday May 27, 2022 @09:34AM (#31529451)
You can subscribe multiple lambdas to an SQS queue. It's not recommended, but it's doable. many-to-many or many-to-one depends on your choices of infrastructure.
Re:AWS SNS vs. SQS – Main Differences by specialp on Friday May 27, 2022 @10:27AM (#31530045)
I guess we can debate the semantics of it because it is technically possible. But it is terrible design to have a SQS to many different consumers. If someone did that I would reject it on review. In any proper usage of SQS it is many to one.
Re:AWS SNS vs. SQS – Main Differences by andrew_ on Friday May 27, 2022 @10:40AM (#31530196)
there are edge cases where that's desirable. I won't enumerate them here but they're discoverable on the Googles. I also would advise against that kind of passionate adherence to infrastructure dogma, taking a more analytical approach to review.
Re:AWS SNS vs. SQS – Main Differences by specialp on Friday May 27, 2022 @10:44AM (#31530238)
If you could name even one I would remove the "dogma". I cannot think of why anyone would want to do that. And if someone did want to do that they would have to have a very compelling reason to complicate what is usually an easy thing (One action listening on a queue)
Re:AWS SNS vs. SQS – Main Differences by afandian on Friday May 27, 2022 @02:52PM (#31533368)
How do you scale out processing if you can't have more than one consumer?
Re:AWS SNS vs. SQS – Main Differences by specialp on Tuesday May 31, 2022 @10:01AM (#31569582)
I am not referring to multiple homogeneous consumers processing a queue. That is fine. You have a pool of consumers that can pick up from the queue. That is still considered one entity/actor. The people here are proposing having multiple heterogeneous consumers consume from the queue. That is bad.
Re:AWS SNS vs. SQS – Main Differences by elsurudo on Friday May 27, 2022 @10:05AM (#31529777)
Yes, but only one of them will receive the message.
Re:AWS SNS vs. SQS – Main Differences by andrew_ on Friday May 27, 2022 @10:40AM (#31530202)
Only one would receive a particular message, but all will receive messages.
Re:AWS SNS vs. SQS – Main Differences by elsurudo on Friday May 27, 2022 @11:02AM (#31530436)
That's true, but I wouldn't say that fits the definition of 1:N messaging. Just as the name says, it's a queue.