Hey Gabriel! Thanks again for the awesome videos. Question regarding using SNS and SQS together: Let's say I have a system where I batch data in a queue to be processed every X amount of hours. Instead of having a "queue" per service, would it be possible to put these batches on SQS, then have SNS (or some lambda that connects to SNS) pull these batches from the queue to then notify my service that a batch is ready to be processed?
I haven't seen SQS and SNS used this way, it's usually the reverse, an SNS topic pushing to multiple SQS queues. The biggest reason for this is that SQS is meant for transaction workloads and if you were to use it to fire an SNS message, you'd be giving that up. You're better of posting a message to SNS saying a batch is ready then each service pulls from the SQS queue assigned to it (one service can have multiple instances).