Search code examples
amazon-web-servicesamazon-sqsamazon-sns

Can I send batch message to AWS SNS


I am developing an application in which I need to send multiple events to SNS. Is there any way to send all the events in batch or do I need to send/ publish using a for-loop (I'm using Java) one by one to the SNS.


Solution

  • The publish() API call only sends one message.

    You will need to loop through your data and call publish() for each message.