One of the key features of Amazon SQS is that it can easily be integrated with other AWS services, such as Amazon SNS. Why would I need something like that? To begin with, let us quickly recap the things we have learned so far about both SNS and SQS:
Amazon SNS |
Amazon SQS |
Leverages the push mechanism |
Leverages the polling mechanism |
Amazon SNS messages can push messages to mobile devices or other subscribers directly |
Amazon SQS needs a worker to poll the messages |
Persistence of messages is not supported |
Amazon SQS supports message persistence which can come in really handy if you can't reach your consumers due to a network failure |
From the table, it is easy to see that both ...