Posted On: Nov 18, 2021
Amazon Simple Notification Service (Amazon SNS) now supports message batching for the publish action, which let’s you publish up to 10 messages in a single batch request to either Standard Topics or FIFO Topics. Batching messages into a single API request is intended for those who want to reduce their costs associated with connecting decoupled applications with Amazon SNS. Previously, Amazon SNS required individual API requests for every published message.
Amazon SNS is a fully managed, reliable, and highly available messaging service that enables you to connect decoupled microservices or send messages directly to users via SMS, mobile push, and email. Amazon SNS offers flexible pricing and you only get charged for what you use. Publish batch API requests cost the same as individual publish API requests. This means that you can reduce the costs of using Amazon SNS by a factor of 10 if you batch the maximum amount of 10 messages per request.
Amazon SNS message batching is available in all public AWS Regions and AWS GovCloud (US).
Start batching messages with Amazon SNS in minutes using the AWS Software Development Kit (SDK) or AWS Command Line Interface (CLI).
To learn more about how to publish messages in batches with Amazon SNS, see the following:
- Publishing messages in batch to Amazon SNS topics blog post
- Amazon SNS Batch Actions in the Developer Guide
- Amazon SNS PublishBatch in the API Reference
- Amazon SNS quotas